Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
3049 Tampilan

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 !!!

Avatar
Buang
Penulis

thank you kiran but this is not work for me

Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

Hello,

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

shivoham.odoo@gmail.com

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 23
1402
1
Jun 25
1544
3
Jul 25
3214
1
Mei 25
1364
1
Mei 25
1615