Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4618 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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)

Tác giả

This Code Is Below Button In Work Flow

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3106
0
thg 3 15
2975
0
thg 3 25
1319
2
thg 5 24
6451
4
thg 4 24
174167