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

Dear all,

Is there anyway that we can display full Invoice and Delivery addresses on Quotation/Sales Order, without having to click the customer name in order to see the address details?

Avatar
Cancelar
Melhor resposta

Create auxiliary fields.

Since addresses are made of several fields, you should probably do something like this:


invoice_address = fields.Text('Invoice address', compute='_get_invoice_address')


... and then, obviously, write the _get_invoice_address method.

Finally, add the field to the view.


Perhaps another approach could be using on_change. When you change the partner_id field, the invoice_address one gets populated.


Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mai. 24
13005
2
mai. 15
4872
4
out. 22
10441
1
jun. 15
6769
1
mar. 15
4472