Remove salable from context
issue2514 review887002
This commit is contained in:
1 parent
c451ad0fc9
commit
007f299220
1 file changed
-5
@@ -924,7 +924,6 @@ class SaleLine(ModelSQL, ModelView):
|
||||
'locations': If(Bool(Eval('_parent_sale', {}).get('warehouse')),
|
||||
[Eval('_parent_sale', {}).get('warehouse', 0)], []),
|
||||
'stock_date_end': Eval('_parent_sale', {}).get('sale_date'),
|
||||
'salable': True,
|
||||
'stock_skip_warehouse': True,
|
||||
}, depends=['type'])
|
||||
product_uom_category = fields.Function(
|
||||
@@ -1404,10 +1403,6 @@ class Template:
|
||||
if 'salable' not in cls.account_revenue.depends:
|
||||
cls.account_revenue.depends.append('salable')
|
||||
|
||||
@staticmethod
|
||||
def default_salable():
|
||||
return True if Transaction().context.get('salable') else False
|
||||
|
||||
@staticmethod
|
||||
def default_delivery_time():
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user