Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3407 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
pro 15
5212
0
čvn 17
2509
1
bře 15
6185
1
bře 15
5361
1
kvě 25
895