コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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?

アバター
破棄
最善の回答

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.


アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 24
13003
2
5月 15
4860
4
10月 22
10432
1
6月 15
6769
1
3月 15
4472