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

I want to set the default tax in action record, I can set other values through context field, but I have no idea what to fill for the taxes_id since it is a many2many field. I want to set the default value to 0 or empty the tax field. My module is inherited from product base module.

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

Dear Fransisco Wijaya,

You can over-ride the customer tax field and set default value on the inherited module

my_taxes = fields.Many2many(default=get_taxes, ...)


Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
апр. 17
5079
3
мая 16
7811
Why XML in odoo ? Решено
3
мар. 25
1034
Odoo action error Решено
1
окт. 24
5465
0
дек. 22
1917