Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

how to calculate sale order in smart button

形象
odoo
1 备注
形象
丢弃
形象
odoo
-

thank you kiran but this is not work for me

2 答案
0
形象
odoo
最佳答案

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

1 备注
形象
丢弃
形象
odoo
-
0
形象
odoo
最佳答案

Hello,

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

shivoham.odoo@gmail.com

形象
丢弃