← Back to team overview

openerp-connector-community team mailing list archive

Re: Sales Order state

 

Hi,

On Sat, Jan 31, 2015 at 9:59 AM, Qing Wang <wang.qing@xxxxxxxxxxxxxx> wrote:

>  Hi, community:
>
>     I have a question about magento sale order state,   in the magento
> connector it only import the sales order once by  the order created time in
> magento.
>
> But in the real life :
>
> first step: a customer buy something in the magento website, magento will
> create a sale order
> second step:  odoo import the sale order
> third step:  customer paid the sale order on magento through online
> payment method.
>
> and then connector can't update sale order again. and magento how to
> notify odoo this order is paid or not.  because this is important for the
> odoo accountant to register payment.
>
> so I want why using this design? how to solve my problem.
>

This is a matter of configuration of the sales payment methods.
You have to choose the correct "Import Rule" [0] on each payment method.
The methods such as bank / check will usually have the rule "always"
(because you would want to import them directly then confirm them manually
in odoo when you receive the payment), and the methods that are paid on
Magento directly such as cards should be configured with the rule
"authorized" or "paid".


>
>
> and in my custom extension of standard connector I want to import sales
> order by magento order update time, but I found this will cause other
> issue, for exmaples:  order shipping cost will generate two lines in odoo
> sales order.
>

> So I think the standard connector how to using by your customer,  I want
> to know reason design the connector using this structure.
>
> Best Regards.
>
> --
>
> Qing Wang*Technical Engineer*
>
>
Guewen

[0]
https://github.com/OCA/connector-ecommerce/blob/7.0/connector_ecommerce/payment_method.py#L28-L49

References