-
- Downloads
[IMP] point_of_sale: improve consistencies between models
The deletion of some records can create inconsistencies in the
point_of_sale.
It can create inconsistencies when a session is open, for example if you
delete a partner that can be set on a pos order. You'll also got
problems if you remove an employee and this employee can be used in an
open session.
We also avoid to get point_of_sale config inconsistencies, by deleting
models required by it. If you delete a picking type used in a pos
config or a sequence.
To avoid all this consistencies, we have restricted the deletion of some
records in specific cases.
TASK-ID: 1879971
closes odoo/odoo#35793
Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
Showing
- addons/account/models/account.py 3 additions, 2 deletionsaddons/account/models/account.py
- addons/point_of_sale/models/pos_config.py 3 additions, 2 deletionsaddons/point_of_sale/models/pos_config.py
- addons/point_of_sale/models/pos_session.py 2 additions, 1 deletionaddons/point_of_sale/models/pos_session.py
- addons/point_of_sale/models/res_partner.py 11 additions, 1 deletionaddons/point_of_sale/models/res_partner.py
- addons/pos_hr/models/hr_employee.py 16 additions, 1 deletionaddons/pos_hr/models/hr_employee.py
- addons/pos_restaurant/models/pos_restaurant.py 20 additions, 1 deletionaddons/pos_restaurant/models/pos_restaurant.py
Loading
Please register or sign in to comment