base_sale_multichannels : auto-reconcile stucks the workflow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magento OpenERP Connector |
Fix Released
|
Undecided
|
Guewen Baconnier @ Camptocamp |
Bug Description
Hi,
This bug report is for record and if in case of someone has already fixed such issue or had a great idea.
I put my bug report in the magentoerpconnect project because I think it'll have more visibility than in extra-trunk.
I already lost my day on this bug so I'm crazy and depressed about it.
As you can see, I had to comment a feature while we do not have any solution :
http://
The issue appears when we use the auto-reconcile and post-paid on a base sale payment type.
A scenario :
- Import an order from magento, it has one product to deliver, it is already paid on magento
- The delivery order is created
- A customer payment (voucher) is created
- I deliver all the delivery order
***
- According to my base sale payment type configuration, the created invoice is automatically opened
- The previously created payment is automatically reconciled with the invoice
***
The steps between the stars are done in an inherit of action_
When I check my sale order, I see it is :
- Paid
- Delivered
But the workflow of my sale order stay in "progress".
Now a second scenario, also post-paid but I do not check the auto-reconcile :
A scenario :
- Import an order from magento, it has one product to deliver, it is already paid on magento
- The delivery order is created
- A customer payment (voucher) is created
- I deliver all the delivery order
***
- According to my base sale payment type configuration, the created invoice is automatically opened
***
- I reconcile the previously created payment with the invoice (I call the method auto_reconcile() to be sure that the problem don't come from this method)
The steps between the stars are done in an inherit of action_
When I check my sale order, I see it is :
- Paid
- Delivered
But the workflow of my sale order is well "done".
The problem comes from the fact that action_
It think that it does not accept that the sub-workflow (so the invoice one) changes its state directly from the action of the activity "invoice". It should be done afterwards only.
The activity "invoice_end" of the sale order workflow is never called, it stays in "invoice" even if the "invoice" workflow is complete.
I don't know if it is something that can be changed (corrected? bug or feature? ;-)) in the workflow engine, or if we can find a way to reconcile the payment with the invoice later.
If someone find a solution, even if it is just a beginning, I will be so grateful!
Guewen
Changed in magentoerpconnect: | |
assignee: | nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c) |
Changed in magentoerpconnect: | |
status: | New → Fix Released |
Posted a bug report on openobject-server: https:/ /bugs.launchpad .net/openobject -server/ +bug/961919