parent
0f1cbebd3e
commit
f4fbde9086
|
@ -150,10 +150,11 @@ class mrp_bom(osv.osv):
|
|||
def _compute_type(self, cr, uid, ids, field_name, arg, context):
|
||||
res = dict(map(lambda x: (x,''), ids))
|
||||
for line in self.browse(cr, uid, ids):
|
||||
if line.bom_lines or line.type=='phantom':
|
||||
continue
|
||||
if line.type=='phantom' and not line.bom_id:
|
||||
res[line.id] = 'set'
|
||||
continue
|
||||
if line.bom_lines or line.type=='phantom':
|
||||
continue
|
||||
if line.product_id.supply_method=='produce':
|
||||
if line.product_id.procure_method=='make_to_stock':
|
||||
res[line.id] = 'stock'
|
||||
|
|
|
@ -262,7 +262,6 @@
|
|||
<field name="date_start"/>
|
||||
<field name="date_stop"/>
|
||||
<field name="method"/>
|
||||
<field name="type"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue