跳至内容
菜单
此问题已终结

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
13180
2
5月 15
4969
4
10月 22
10504
1
6月 15
6856
1
3月 15
4531