Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7983 Näkymät

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. 

Avatar
Hylkää
Paras vastaus


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


Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 25
1430
0
tammik. 25
3531
1
elok. 23
14881
1
elok. 23
13542
1
heinäk. 23
10518