summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2015-10-05 17:21:51 +0200
committerDavid Monjoie <dmo@odoo.com>2015-10-06 10:59:46 +0200
commit6b6d7310c0cd37a461ee25b33ea7ff70ea468740 (patch)
treec4f5c66ba92f4c24da1c750a4663d1d75a6fb941 /addons/analytic_user_function
parent25ea23eb318ab414cb4e468498c02dc194a1fa63 (diff)
[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.
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions