From 07ee8b4f99aa2519a8ef01065da82e273c28aa35 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Tue, 14 Jul 2026 11:39:39 +0200 Subject: [PATCH] Bug lot.qt --- modules/purchase_trade/__init__.py | 6 ++++-- modules/purchase_trade/stock.py | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/purchase_trade/__init__.py b/modules/purchase_trade/__init__.py index f52d2fe..e11277b 100755 --- a/modules/purchase_trade/__init__.py +++ b/modules/purchase_trade/__init__.py @@ -207,10 +207,12 @@ def register(): stock.AccountMoveLine, stock.AccountMove, stock.ContainerType, - stock.ShipmentContainer, + stock.ShipmentContainer, lot.Lot, lot.LotQt, - stock.LotQt, + # Temporarily disabled: added by 1b292e4 for linkage reports, but it + # may leave lot.qt without the base ModelSQL fields in some pools. + # stock.LotQt, lot.LotReport, lot.LotContext, lot.LotShippingStart, diff --git a/modules/purchase_trade/stock.py b/modules/purchase_trade/stock.py index cff242b..c6053f6 100755 --- a/modules/purchase_trade/stock.py +++ b/modules/purchase_trade/stock.py @@ -27,7 +27,6 @@ import re import html from trytond.exceptions import UserError from trytond.modules.stock.shipment import SupplierShipping as BaseSupplierShipping -from . import lot as purchase_trade_lot logger = logging.getLogger(__name__) @@ -2899,7 +2898,7 @@ class FindVessel(Wizard): return action, {} -class LotQt(purchase_trade_lot.LotQt): +class LotQt(metaclass=PoolMeta): __name__ = 'lot.qt' @staticmethod