diff --git a/stock_reporting_margin.py b/stock_reporting_margin.py index b17a4b2669..a5efc33237 100644 --- a/stock_reporting_margin.py +++ b/stock_reporting_margin.py @@ -26,3 +26,7 @@ class Context(metaclass=PoolMeta): __name__ = 'stock.reporting.margin.context' include_shipment_cost = fields.Boolean("Include Shipment Cost") + + @classmethod + def default_include_shipment_cost(cls): + return Transaction().context.get('include_shipment_cost', False)