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
6220 Zobrazení

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

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 24
12853
2
kvě 15
4759
4
říj 22
10328
1
čvn 15
6655
1
bře 15
4411