Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3054 Weergaven

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
Annuleer
Auteur

thank you kiran but this is not work for me

Beste antwoord

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
Annuleer
Beste antwoord

Hello,

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

shivoham.odoo@gmail.com

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 23
1405
1
jun. 25
1554
3
jul. 25
3218
1
mei 25
1368
1
mei 25
1620