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.
Please, i use the class "account_invoice_line" and i want to add a new field. I have tried but nothing appear in the invoice.
Here is my code:
#Inhertis the model account.invoice.line
_inherit = 'account.invoice.line'
callim_id = fields.Many2one('account.invoice', string= 'Invoice Id ', required= False)
product_id = fields.Integer( help = 'Product', default=1 , required= False)
quantity = fields.Float(help='Quantity', default=2, required= False)
price_unit = fields.Integer(help='Unit Price', required= False)
name = fields.Char(help='Tax Description', required= False)
uos_id = fields.Many2one('product.uom', string='Unit of Measure', required= False)
invoice_line_tax_id = fields.Many2many('account.tax','account_invoice_line_tax', 'invoice_line_id', 'tax_id',string='Taxes', required= False)
project_name = fields.Char(string = 'Project Name', help= 'Project_Name')
<xpath expr="//field[@name='product_id']" position="before">
Thanks in advance.
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/14/15, 5:13 AM|
|Seen: 858 times|
|Last updated: 7/14/15, 5:13 AM|