Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I import new customers and sales orders from my OpenCart store, on a daily basis, into OpenERP which I use for accounting and manufacturing requirements and given that my "Sale" has already occurred in OpenCart, I want all imported Sales Quotations to automatically be confirmed as Sales Orders without having to do this manually.
Could somebody provide me with a step by step guide on how to use the Automatic or Scheduled Actions to do this, without me having to manually confirm each order via the client interface. All of my "pseudo" manufacturing works on consumables so hopefully there should be nothing stopping automatic confirmation of the sales quotation.
I have tried to work this out myself but to no avail.
If you want to confirm the sales quotation automatically, you can validate/confirm order using workflow. Add below two line in code where your order is created in openerp.
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'sale.order', order_id, 'order_confirm', cr)
Here, 'order_id' is the created sale order id.
With the Technical Features enabled, you can modify the workflow, by following the Path: Settings -> Workflows, flag the option "sale.order.basic", and click the view "Diagram" button.
Double click on the "Router" node, go to "Transitions" tab, and Add an Item on "Source Activity"
Source Activity: sent
Destination Activity: router
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 11/4/13, 4:48 PM|
|Seen: 7062 times|
|Last updated: 4/11/15, 7:32 PM|