Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3173 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 23
1484
1
มิ.ย. 25
1874
3
ก.ค. 25
3481
1
พ.ค. 25
1605
1
พ.ค. 25
1850