İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6285 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
May 24
12937
2
May 15
4822
4
Eki 22
10376
1
Haz 15
6702
1
Mar 15
4440