[FIX] mrp: in mrp orders, you may want to build occasionally products that are set with a different supply method than 'produce'. In particular, in a multi-company invironement where a company is manufacturing products for another... As suggested in the bug report, i replaced the domain to filer only products that have at least one BoM defined

lp bug: https://launchpad.net/bugs/936865 fixed

bzr revid: qdp-launchpad@openerp.com-20120727085245-jp8zw8ub01rp9oj3
This commit is contained in:
Quentin (OpenERP) 2012-07-27 10:52:45 +02:00
parent 6ea91b3635
commit 6e625b12b7
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@
<sheet>
<label for="product_id" class="oe_edit_only"/>
<h1>
<field name="product_id" on_change="product_id_change(product_id)" domain="[('supply_method','=','produce')]" class="oe_inline"/>
<field name="product_id" on_change="product_id_change(product_id)" domain="[('bom_ids','&lt;&gt;',False)]" class="oe_inline"/>
</h1>
<label for="product_qty" class="oe_edit_only"/>
<h2>