Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
17545 Zobrazení

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.

Thanks

Avatar
Zrušit

Hi, ralph, can you tell me how you make a export file of youre opencart records, and can you import them without editing in openerp? Thanks in advance you can send a reply to nathan at dbbi.nl

It doesn't look like you are using the opencart-openerp bridge from webkul - this makes quotations which you then have to manually process through all the stages to invoicing. Hopefully in future they'll be able to generate sales orders and payment transactions like the native ecommerce function of odoo v8 now does. Good to find another uk user of opencart and openerp/odoo - drop me a line if you want to share the pain (kurt (at) cmr dash direct dot com)

Nejlepší odpověď

Hello Ralph,

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.

Avatar
Zrušit
Nejlepší odpověď

hi,

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"

Example:

Sequence: 10

Source Activity: sent

Destination Activity: router

Condition: True

 

Regards.

Avatar
Zrušit
Nejlepší odpověď

What is your current export/import setup? Is this an XMLRPC bridge? Also, would you prefer a mass action on imported items or a global action? 

In any way, a solution might be https://www.odoo.com/apps/7.0/base_action_rule/

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 24
7423
2
bře 24
2918
1
bře 15
4142
1
bře 15
5035
0
srp 25
3916