Odoo Help


How to add partner_id copy to account_invoice

on 12/18/15, 8:50 AM 715 views

How can I add a new field named partner_id_shipping to the account_invoice. It is the same like partner_id but with an other name.

How Can I implement this with a new modul?

I try this:

from import openerp.osv fields, osv

class account_invoice(osv.osv):
_inherit = 'account.invoice'

_columns = {

'partner_id_shipping': fields.Many2one(, string='Partner', change_default=True,
required=True, readonly=True, states={'draft''readonly': [(, False)]},
Ray Carnes
On 12/18/15, 12:27 PM

Have you seen https://apps.openerp.com/apps/modules/8.0/account_invoice_shipping_address/

This module adds a shipping address field to the invoice, also it fills it in sale and picking invoicing

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 12/18/15, 8:50 AM
Seen: 715 times
Last updated: 12/18/15, 12:27 PM