01ffba86955d681d71efef67e585fb516729e502
pos*: point_of_sale,pos_hr,pos_loyalty,pos_restaurant, pos_sale, In this commit we refactor some parts of the pos ui with the interest of providing a simpler and cleaner codebase. One pattern that is heavily used in the pos ui is that in which views are changed based on the screen size at the component level. This means that it becomes very difficult to understand what parts of a specific template will be seen in mobile or in desktop views. In most cases, the pos adapts for mobile screens by using the same main components, but in different configurations. For example, a component that was visible in desktop mode, might become accesible through a menu in mobile mode. In order to improve the situation, the proposed solution is to separate the logical parts of the ui into `owl templates` and to inject this templates wherever the need arises. Thus, instead of constantly using `t-if="ui.isSmall"` in all places where there is a difference between the mobile and desktop views, we have a main conditional branch at the root level of the component representing a certain screen and then build 2 separate views, one for mobile and one for desktop, each calling the needed templates. In this commit we implement this pattern for the `payment_screen`. This will allow us to observe this pattern over a period of time, before implementing it on the other screens. In this commit we also: - add small fixes and improvements relating to the previous commit, in which the pos was refactored to bootstrap; - replace the `<br>` tags in the numpad component with the bootstrap grid system; - adapt the `cash_move_popup` to rely more on `t-model` and less on `t-on-change` Part-of: odoo/odoo#129544 Co-authored-by: vlst <vlst@odoo.com> Co-authored-by: Xavier Luyckx (xlu) <xlu@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%