Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4681 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3180
0
มี.ค. 15
3044
0
มี.ค. 25
1493
2
พ.ค. 24
6577
4
เม.ย. 24
174346