Set default value from context for stock reporting margin context
issue11765 review419891003 (grafted from 9b78ba030c62e8cd02efcc7294101f00aa0647d3) --HG-- branch : 6.0
This commit is contained in:
1 parent
1fabd76dfb
commit
9c8ef5f4fd
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