Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2430 Vizualizări

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

Imagine profil
Abandonează
Autor

thank you kiran but this is not work for me

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hello,

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

shivoham.odoo@gmail.com

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 23
963
1
mai 25
521
4
mai 25
1828
2
mai 25
1987
1
feb. 25
5261