Set default value from context for stock reporting margin context
issue11765 review419891003
This commit is contained in:
1 parent
7be6f054aa
commit
82d1b69b9f
1 file changed
+4
@@ -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)
|
||||
Reference in new issue
Block a user