odoo/addons/website_sale/models
David Monjoie 6b6d7310c0 [FIX] website_sale: sale_get_order force_create
Previously, if there was a sale_order_id but it was wrong,
like when the sale order was deleted for example, the function
didn't return a sale order, even with force_create=True.

It used to pass the first 'if' as sale_order_id had a value, so
no new sale order was created. However, as sometimes the id was
referring to a non-existant sale_order, a sale_order.exists() test
was used later, resulting in the function sometimes returning None,
even with force_create = True.

Proposed solution is to test the existence of the browse record with
the given id earlier, instead of testing the existence of the id itself.
2015-10-06 10:59:46 +02:00
..
__init__.py [IMP] website_sale: confirm quotation only when the payment is done, not directly when hitting 'pay now'. 2014-09-29 11:12:37 +02:00
payment.py [FIX] sale, website_sale: quotation email. 2015-07-14 11:11:55 +02:00
product.py [FIX] website_sale: very slow name_get for product public categories 2015-01-09 14:22:54 +01:00
sale_order.py [FIX] website_sale: sale_get_order force_create 2015-10-06 10:59:46 +02:00