odoo/addons/purchase/data/purchase_data.yml

6 lines
144 B
YAML

-
!python {model: stock.warehouse, id: stock.warehouse0}: |
#enable purchase on main warehouse
self.write({'buy_to_resupply': True})