I have added a new field in product template like below
'buy_price' : fields.float('Prix Achat',digits_compute=dp.get_precision('Price')),}
now in the supplier invoice I want to call this field so I have use this code:
'product_tmpl_id': fields.many2one('product.template', 'Product'),
when I update my module and create a new supplier invoice I get nothing in the new added field as shown in the picture
Any help please
Try in this way:
Just use product_id field which is already there in account.invoice.line.
Rather than managing a separate many2one field product_tmpl_id , product_id will solve your problem.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 7/11/15, 4:07 AM|
|Seen: 638 times|
|Last updated: 7/11/15, 7:41 AM|