i create sale order with xmlrpc w now i want create action_confirm().
how i can create this action
sale_id = models.execute_kw(db,uid,password,'sale.order','create',[vals])
sale_id.action_confirm() not work
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i create sale order with xmlrpc w now i want create action_confirm().
how i can create this action
sale_id = models.execute_kw(db,uid,password,'sale.order','create',[vals])
sale_id.action_confirm() not work
Hello Mohamed,
Hope you doing good.
When you use XMLRPC and create a new record then it will returns the id of that record.
And if you want to call the method of object then you have to search the record it will returns the recordset and afterwards you can call the method of the object.
Find Code in comment.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Here is the example:
sale_id = models.execute_kw(db,uid,password,'sale.order','create',[vals])
sale_rec = models.execute_kw(db, uid, password, 'res.partner', 'search', [[['id', '=', sale_id]]])
sale_rec.action_confirm()
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
Odoo XMLRPC
تم الحل
|
|
1
أكتوبر 21
|
5067 | |
|
1
سبتمبر 22
|
1901 | ||
|
3
يوليو 25
|
767 | ||
|
3
فبراير 25
|
3591 | ||
|
0
مايو 24
|
46 |