Odoo Help

0

How to add partner_id copy to account_invoice

By
wizardz
on 12/18/15, 8:50 AM 655 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)]},
track_visibility='always'),
}
0
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.

Register

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)

Stats

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