Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
12842
2
maj 15
4757
4
paź 22
10320
1
cze 15
6655
1
mar 15
4408