Connectors mailing list archives

connectors@odoo-community.org

Avatar

Re: Magento Connector & Synching order status

by
Guewen Baconnier
- 09/03/2016 13:15:34
Hi,

The base behavior is to let Magento handles its state itself: when all
is invoiced and delivered, Magento changes the order's state to done.
There is nothing to force another status so'd have to implement it by yourself.

You can have a look at the export of invoices and pickings:
* event declaration:
https://github.com/OCA/connector-ecommerce/blob/f3a4debd0ae53084695d720ebcf0aaac90bd3479/connector_ecommerce/event.py#L52
* event trigger:
https://github.com/OCA/connector-ecommerce/blob/f3a4debd0ae53084695d720ebcf0aaac90bd3479/connector_ecommerce/invoice.py#L36
* event consumer:
https://github.com/OCA/connector-magento/blob/e5e43a458af8c5cf280280764de0375e10c3f6c0/magentoerpconnect/invoice.py#L213

--
Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/


On Wed, Mar 9, 2016 at 1:08 PM, Justin Scott
<j.scott@spontaneousorder.de> wrote:
> Hi everyone,
>
> I am hoping to cause a status change on the Magento side when a sales order
> in Odoo is set to status "done". I've seen that there are already bits of
> code for changing the status in Magento based on the one in Odoo, but I
> don't see an option to use that functionality.
>
> Failing that, is there a recommendation (or perhaps a sample module) for
> attaching to events like sales order status changes such that I could make
> the API call to Magento when that happens?
>
> Any ideas about that? Thanks for any input!
>
> Cheers, Justin
>
> _______________________________________________
> Mailing-List: http://odoo-community.org/groups/connectors-30
> Post to: mailto:connectors@odoo-community.org
> Unsubscribe: http://odoo-community.org/groups?unsubscribe

Reference