Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3051 Widoki

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

Awatar
Odrzuć
Autor

thank you kiran but this is not work for me

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

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

shivoham.odoo@gmail.com

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 23
1404
1
cze 25
1547
3
lip 25
3216
1
maj 25
1368
1
maj 25
1617