[IMP] account: add domain on products accessible to invoices

Customer invoices: products to sell
Supplier invoices: products to buy
This commit is contained in:
mmo
2017-01-13 14:49:42 +01:00
committed by Thibault Delavallée
parent bf82638bb0
commit cd45a1acb4
@@ -261,7 +261,7 @@
<tree string="Bill lines" editable="bottom">
<field name="sequence" widget="handle" />
<field name="product_id"
context="{'partner_id': parent.partner_id}"/>
context="{'partner_id': parent.partner_id}" domain="[('purchase_ok','=',True)]"/>
<field name="name"/>
<field name="company_id" invisible="1"/>
<field name="account_id" groups="account.group_account_user"
@@ -399,7 +399,7 @@
<field name="invoice_line_ids" nolabel="1" widget="one2many_list" mode="tree,kanban" context="{'type': type, 'journal_id': journal_id, 'default_invoice_id': id}">
<tree string="Invoice Lines" editable="bottom">
<field name="sequence" widget="handle"/>
<field name="product_id"/>
<field name="product_id" domain="[('sale_ok','=',True)]"/>
<field name="origin" invisible="1"/>
<field name="name"/>
<field name="company_id" invisible="1"/>