Remove purchasable from context
issue2514 review887002
This commit is contained in:
1 parent
75dc2e07a0
commit
78246799fd
1 file changed
-5
@@ -838,7 +838,6 @@ class PurchaseLine(ModelSQL, ModelView):
|
||||
[]),
|
||||
'stock_date_end': Eval('_parent_purchase', {}).get(
|
||||
'purchase_date'),
|
||||
'purchasable': True,
|
||||
'stock_skip_warehouse': True,
|
||||
}, depends=['type'])
|
||||
product_uom_category = fields.Function(
|
||||
@@ -1320,10 +1319,6 @@ class Template:
|
||||
if 'purchasable' not in cls.account_expense.depends:
|
||||
cls.account_expense.depends.append('purchasable')
|
||||
|
||||
@staticmethod
|
||||
def default_purchasable():
|
||||
return Transaction().context.get('purchasable') or False
|
||||
|
||||
def on_change_with_purchase_uom(self):
|
||||
if self.default_uom:
|
||||
if self.purchase_uom:
|
||||
|
||||
Reference in new issue
Block a user