summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-02-27 16:22:46 +0100
committerGoffin Simon <sig@odoo.com>2017-02-28 10:20:12 +0100
commitad2982308d21d9adec48ffe6927a6a1f0540ce96 (patch)
tree013a607952d325a6c50d8f53d789999b8ad080f5 /addons/web/static/src/js/views/basic/basic_controller.js
parent12c51cd847745017f9ee82db405443eea042ee25 (diff)
[FIX] sale: _get_sale_order_line with order in state='done'
Steps to reproduce in runbot 10.0: 1.Create a new sale order and use the Odoo Monthly quotation template. It will set the Odoo SAAS product on the sale order. 2.Go to the Odoo SAAS product form view, check "Can be expensed", then on Invoicing tab, choose "At Cost" for the "Re-Invoice Expenses" field. 3.Confirm the sale order so it is in done (Locked) state. 4.Create an invoice, try to validate it, a UserError is raised: 'The Sale Order SO0158 linked to the Analytic Account must be validated before registering expenses.' This UserError only makes sens when new SO lines are created. NB:Now it's possible possible to update an analytic line linked to SO in other state than 'sale' but it's still forbidden to create a SO line when the state is different than 'sale'. opw:708661
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions