[IMP] boms on products

bzr revid: fp@tinyerp.com-20120831075505-n3478j5h7jqsu72j
This commit is contained in:
Fabien Pinckaers 2012-08-31 09:55:05 +02:00
parent 4639967d0c
commit 40339ae025
2 changed files with 1 additions and 2 deletions

View File

@ -1006,7 +1006,6 @@
<field name="bom_ids" widget="one2many_list" mode="tree" context="{'default_product_id': active_id}">
<tree string="Bill of Materials">
<field name="name" string="Component Name"/>
<field name="bom_id"/>
<field name="product_qty" string="Quantity of Product"/>
<field name="type"/>
<field name="date_start"/>

View File

@ -26,7 +26,7 @@ from tools.translate import _
class product_product(osv.osv):
_inherit = "product.product"
_columns = {
"bom_ids": fields.one2many('mrp.bom', 'product_id','Bill of Materials'),
"bom_ids": fields.one2many('mrp.bom', 'product_id','Bill of Materials', [('bom_id','=',False)]),
}
def copy(self, cr, uid, id, default=None, context=None):
if not default: