تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4603 أدوات العرض

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
مارس 15
3105
0
مارس 15
2972
0
مارس 25
1303
2
مايو 24
6439
4
أبريل 24
174126