Similar to exec_workflow, is there there a call that would execute actions or/and methods? For example, actions and methods tied to buttons. More specifically Converting to Opportunity, Mark Won, Mark Lost, etc.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Similar to exec_workflow, is there there a call that would execute actions or/and methods? For example, actions and methods tied to buttons. More specifically Converting to Opportunity, Mark Won, Mark Lost, etc.
Thanks
Yes, you could trigger actions and methods using XMLRPC (Webservices), just be sure to pass the corresponding parameters to the method or action method. For example:
#Using direct XMLRPC using xmlrpclib
oerp_common = xmlrpclib.ServerProxy('{}/xmlrpc/2/common'.format(url))
for d in dbs:
password = dbs[d].get('admin_pass','admin')
uid = oerp_common.authenticate(db, 'admin', password, {})
oerp_models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
action = oerp_models.execute_kw(db, uid, password,'ir.module.module', 'update_list',[])
#this is using Zato ESB for Odoo:
with self.outgoing.odoo.get('solt-open').conn.client() as zoe:
voucher_pool = zoe.get_model('account.voucher')
voucher_pool.button_proforma_voucher([voucher_id], context=ctx)result = voucher_pool.onchange_journal([],journal_id[0], [], False, partner_info ['id'], False, float(vals.get('monto_pago')), 'receipt', invoice_info['company_id'][0], context={'invoice_id': invoice_info['id']})
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
0
نوفمبر 25
|
7 | |||
|
2
أكتوبر 21
|
4511 | |||
|
1
مايو 16
|
4349 | |||
|
1
مارس 15
|
11318 | |||
|
2
مارس 15
|
5255 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.