跳至内容
菜单
此问题已终结
4629 查看

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

编写者

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)

编写者

This Code Is Below Button In Work Flow

相关帖文 回复 查看 活动
0
3月 15
3107
0
3月 15
2976
0
3月 25
1330
2
5月 24
6469
4
4月 24
174188