0f0b471c4cd8b3c6a885de580cffb12d9f99fbc7
7bbec42 removes the 'pos_done' state without providing a substitute.
A discrepancy arises between the states defined in pos.order and sale.report.
While pos.order can have a 'done' state, this state is not defined in
sale.report. Consequently, it is possible to encounter a situation where a
state exists in 'sale.report' without being defined in its state field.
This inconsistency leads to an error in the web client when attempting to
display the state 'done' from 'pos.order', as the system cannot locate a
corresponding label for it.
Since we can't add a new state in stable, we'll re-use the sale.order 'sale'
state which is the sale.order counterpart of pos.order 'done'.
steps to reproduce:
- go to sales / reporting / sales and go to pivot view
- remove all filters
- on the pivot view, select 'product category'
- click on a cell corresponding to POS (ex: all/saleable/pos)
- click on a line in the list view
before this commit:
Caused by: TypeError: Cannot read properties of undefined (reading '1')
at get string (https://60795873-17-0-all.runbot129.odoo.com/web/assets/af70128/web.assets_web.min.js:8393:281)
at SelectionField.template (eval at compile (https://60795873-17-0-all.runbot129.odoo.com/web/assets/af70128/web.assets_web.min.js:1500:374), <anonymous>:15:21)
at Fiber._render (https://60795873-17-0-all.runbot129.odoo.com/web/assets/af70128/web.assets_web.min.js:940:96)
at Fiber.render (https://60795873-17-0-all.runbot129.odoo.com/web/assets/af70128/web.assets_web.min.js:939:6)
at ComponentNode.initiateRender (https://60795873-17-0-all.runbot129.odoo.com/web/assets/af70128/web.assets_web.min.js:1007:47)
after this commit:
the form view is rendered
opw-3816652
closes odoo/odoo#161065
X-original-commit: 483c49ba1fd2ef3a6986f77fbc622d19c93cc55c
Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%