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

I inherit the pos.order and added new field on that model but now i need to call that field to pos receipt how to do that?

Аватар
Отменить
Лучший ответ

Hi,

To load a custom field into the POS, you need to define a new function called _loader_params_custom_model(). This function should return a dictionary with a key called search_params. The value of search_params should be a dictionary with two keys. They are domains and fields. The domain should be a list with a tuple specifying filters, and fields should be a list of field names that you want to load into the POS.

For more information refer the blog:

https://www.cybrosys.com/blog/how-to-load-models-and-fields-to-pos-in-odoo-17#:~:text=To%20load%20a%20custom%20field,They%20are%20domains%20and%20fields.


Hope it helps

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
апр. 25
3216
2
сент. 25
1517
4
сент. 25
6517
0
авг. 25
680
4
мая 25
3218