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">
There could be more than one product in the invoice line which product you want to store in the account.invoice. If you just want to search the product in accout.invoice then look in to sale.order model for reference, which includes product_id as a related field.
Yes I want to search product on account.invoice but the the account module is writen in differnet APÏ
May I know, what you exactly want to get as value in that column "name_product"
I updated my question