Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
***js**
model.call('action_wizardd',[context]).then(function(result){
web_client.do_action(result, {
});
});
***********python Script****
def action_wizardd(self,cr,uid,cc,context=None):
view_ids = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'draft_quote_wf', 'sale_expire_date_view') view_id = view_ids[1]
cc.update({'active_id':cc['params']['id']}) # context = {'active_id': context['params']}
return {
'name': _("Extend Expire Date"),
'view_type': 'form',
'view_mode': 'form',
'view_id': view_id,
'views': [(False, 'form', False)],
'res_model': 'sale.extend.expire.date',
'type': 'ir.actions.act_window',
'target': 'new',
'context': cc }
Hope This will make you understand the use of do_action()
Simple question but takes lot to explain :), better dig & find it up yourself.
But for a start let me say do_action is a method in Jquery which performs sets of activities. So yeah both JS & JQuery are been used in Odoo, slightly confusing if you are unable to distinguish b/w those two.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
มิ.ย. 23
|
1940 | ||
|
1
พ.ค. 23
|
1885 | ||
|
1
ต.ค. 22
|
4045 | ||
|
0
พ.ค. 20
|
3137 | ||
|
2
ม.ค. 20
|
8685 |