Nils Hamerlinck
|
febbf77f7a
|
[IMP] stock_location_tray: remove dead code in the continuity of https://github.com/OCA/stock-logistics-warehouse/pull/987
There is change in odoo/odoo for both 13.0 and 14.0 at
b6ba6038ad (diff-0b83f13eeb39606e0cc2ebe1443b40c01c19bf49ec16ab100dbcb0d0f4c9e4b6R99-R106).
With the change, `UserError(_('You still have some product in locations
%s')` is always risen before the two `ValidationError(_("Tray locations
cannot be archived when they contain products.")` and
`UserError(_("Trays cannot be modified when they contain products.")` of
this module. Therefor, the #987 changes tests to meet that flow change.
To prove the dead code, we have two hacks: change context to bypass
odoo/odoo checking as
79fa70556a (diff-ce46c42b625b31fbfc9cd2646ccfe9d647a894001a331cd54d3ce0cf04b466a3R161-R163)
and
79fa70556a (diff-ce46c42b625b31fbfc9cd2646ccfe9d647a894001a331cd54d3ce0cf04b466a3R183-R187).
We believe that in daily use, there is no hack like that.
|
2021-08-17 16:45:26 +07:00 |
|
Hai Lang
|
79fa70556a
|
[IMP] stock_location_tray: increase test coverage
|
2021-08-17 16:15:23 +07:00 |
|
Héctor Villarreal Ortega
|
abad67be50
|
[13.0][FIX] stock_location_tray: Fix exceptions message in tests
|
2021-08-17 16:14:19 +07:00 |
|
Guewen Baconnier
|
ab90eedbe2
|
Migrate stock_location_tray to 13.0
|
2021-08-17 11:54:33 +07:00 |
|
Guewen Baconnier
|
5b172758c8
|
Add methods to get the center position of a cell
|
2021-08-17 11:54:32 +07:00 |
|
Guewen Baconnier
|
4ad48463c2
|
Add stock_location_tray
Extracted from stock_vertical_lift
(https://github.com/OCA/stock-logistics-warehouse/pull/633)
Add tray types to stock locations, automatically generates
sub-locations. Present them nicely with a custom widget.
|
2021-08-17 11:54:32 +07:00 |
|