Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
6361 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Mai 24
13047
2
Mai 15
4904
4
Okt. 22
10460
1
Juni 15
6780
1
März 15
4502