Files
stock-logistics-warehouse/stock_location_tray/tests
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
..