set default reimbursable related on product
parent
dee7b80640
commit
bac6fc081d
|
@ -292,6 +292,10 @@ class HDCase(Model):
|
|||
line=get_data_path(data,path,parent=True)
|
||||
product_id=line.get('product_id')
|
||||
prod=get_model("product").browse(product_id)
|
||||
if prod.can_sell:
|
||||
line['reimbursable']='no'
|
||||
else:
|
||||
line['reimbursable']='yes'
|
||||
line['uom_id']=prod.uom_id.id
|
||||
line['description']=prod.name
|
||||
line['product_categ_id']=prod.categ_id.id
|
||||
|
|
Loading…
Reference in New Issue