Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/11/15, 4:07 AM|
|Seen: 1122 times|
|Last updated: 7/11/15, 7:41 AM|