Odoo 10 Wep api order in cart

0

We have created an external application that uses the odoo Web API 10 and works perfectly.

The problem appears when the odoo ecommerce part adds the products to the cart (standard functionality), since it does not identify that a draft order already exists (created by our application) and always creates a new one.

Conversely, we from the application if we are able to identify the draft order launched from the ecommerce to which we add the lines (products) we consider.

The basic logic of the application is the following:

If there is an order with

state='draft',
team_id=2,
partner_id='usuario del carrito'

then I add lines.

The question is: What verification does the odoo 10 standard do to create a new order?

Thanks in advance.

    
asked by Datanalisis 13.06.2018 в 17:45
source

0 answers