Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
5 Replies
17540 Tampilan

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
Buang

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)

Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mar 24
7419
Sales quotation Diselesaikan
2
Mar 24
2895
1
Mar 15
4139
1
Mar 15
5034
0
Agu 25
3907