diff --git a/purchase.py b/purchase.py index 93056f8c61..07b90fe650 100644 --- a/purchase.py +++ b/purchase.py @@ -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: