コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
3177 ビュー

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
1487
1
6月 25
1876
3
7月 25
3483
1
5月 25
1609
1
5月 25
1855