跳至内容
菜单
此问题已终结
2 回复
3047 查看

my flow is 

select res.partner -> click on button which add by me -> after clicking button show my smart button -> and click this smart button and get me sale.order of which res.partner i selected.


The res.partner I select gives me the count of the number of sale.order in the smart buttton.



thank you in advance

ans me please !!!

形象
丢弃
编写者

thank you kiran but this is not work for me

最佳答案

Hi  Ra_one_1_11,

There is already a compute field 'sale_order_count' in 'res.partner' which shows the number of SO created for the partner.

Please Check,

https://github.com/odoo/odoo/blob/15.0/addons/sale/models/res_partner.py

形象
丢弃
最佳答案

Hello,

You have to write the compute method for get the sale orders in partner form view.

shivoham.odoo@gmail.com

形象
丢弃
相关帖文 回复 查看 活动
1
12月 23
1402
1
6月 25
1537
3
7月 25
3211
1
5月 25
1362
1
5月 25
1609