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 would like to add new column to the table account_invoice
I tried using:
from openerp import fields as fieldss
product_id= fieldss.related('order_line', 'product_id', type='many2one', relation='product.product', string='Product'),
the purpose: add product in the view account invoice view search <record id="view_account_invoice_filter" model="ir.ui.view">
from openerp import models,fields,api
_inherit = 'account.invoice'
Your xml file
<record id="view_account_invoice_filter_inherit" model="ir.ui.view">
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
<field name="arch" type="xml">
<field name="period_id" position="after">
Hope this helps !!.
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: 1/10/15, 3:33 PM|
|Seen: 2022 times|
|Last updated: 3/16/15, 8:10 AM|