Odoo Help

Welcome!

This community 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.

0

How To Update Field In Another Module ?

By
Ali Abdelmonem Mustafa Amer
on 2/24/14, 7:58 AM 644 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

Prakash
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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