Odoo Help


How To Update Field In Another Module ?

Ali Abdelmonem Mustafa Amer
on 2/24/14, 7:58 AM 710 views

Hi Guys

I Need To Update Field In Another Module I Tried cr.execute('update statement') but It Doesn't work For Example : I Have Asset Module And The Other Is TestModule (They Have Relation) How Can I Update Field in Asset Module Through TestModule By Code

Thanks A lot

Using 'write' method to update field in another module. You can see lot of examples in default openerp module

on 2/24/14, 8:32 AM

I Tried But It Didn't Work And My Code Is Like That assets_obj = self.pool.get('account.asset.asset') assets_obj.write(cr,uid,[asset_ids.id],{'last_fixing' : Execution_date},context=context)

Ali Abdelmonem Mustafa Amer
on 2/24/14, 10:19 AM

This Code Is Below Button In Work Flow

Ali Abdelmonem Mustafa Amer
on 2/24/14, 10:20 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/24/14, 7:58 AM
Seen: 710 times
Last updated: 3/16/15, 8:10 AM