Skip to Content
Menú
This question has been flagged

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 24
13040
2
de maig 15
4896
4
d’oct. 22
10457
1
de juny 15
6778
1
de març 15
4499