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

Hi,

I created this model and setup its context so i can call values when overwritting the default_get method and works perfectly, but when i want to create a record from a different model using a many2one field to that first record the context appears as by default and the field doesn't get the default values i want.

How can i pass on the context when calling the create method from a related field on a different model?

Thanks in advance and have a happy new year all.

Аватар
Отменить

Hello Carlos, Have u found any solution to this issue? If yes please post it as i am facing similar problem(While setting context to related field it's value is false by default). Regards,

Related Posts Ответы Просмотры Активность
3
сент. 21
9487
0
мар. 21
3355
4
янв. 20
3301
0
нояб. 18
4536
0
апр. 17
3751