Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3493 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
dez. 15
5297
0
jun. 17
2589
1
mar. 15
6320
1
mar. 15
5503
1
mai. 25
1049