تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2723 أدوات العرض

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
ديسمبر 23
1166
1
يونيو 25
840
3
مايو 25
2570
1
مايو 25
811
1
مايو 25
994