Skip to Content
Menú
This question has been flagged
1 Respondre
3379 Vistes

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'),
}
Avatar
Descartar
Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de des. 15
5179
0
de juny 17
2477
1
de març 15
6140
1
de març 15
5303
1
de maig 25
830