Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3067 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 23
1415
1
июн. 25
1617
3
июл. 25
3263
1
мая 25
1407
1
мая 25
1655