Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3045 Zobrazení

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
Zrušit
Autor

thank you kiran but this is not work for me

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Hello,

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

shivoham.odoo@gmail.com

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 23
1397
1
čvn 25
1506
3
čvc 25
3200
1
kvě 25
1336
1
kvě 25
1590