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

Am using Odoo V8. I created custom module inside the journal entry form and creating one date field when the user comes to enter the date automatically update the date value to the another model form date field. Any idea about updating values of another model within the current form. 

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


Hi,

you can use related fields. Another method you can write a code in create and write methods to update the value.

another_model_obj = self.pool.get('another.model').search(cr, uid, [(condition)])
if another_model_obj:
another_model_object = self.pool.get('another.model').browse(cr, uid, another_model_obj, context=None)
another_model_object.date = current_model.date


Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
мар. 25
1430
0
янв. 25
3528
1
авг. 23
14880
change password Решено
1
авг. 23
13541
1
июл. 23
10517