diff options
| author | nie <nie@odoo.com> | 2021-02-03 12:36:32 +0000 |
|---|---|---|
| committer | nie <nie@odoo.com> | 2021-02-03 12:37:07 +0000 |
| commit | f8cecfcc95fb46b0ea1c265e18c49769cb785784 (patch) | |
| tree | 83f7a4fcad1ac6bd5bc7e4474d932d5fd6ccdea1 /odoo/addons/test_new_api/tests/test_new_fields.py | |
| parent | 2e5b9666af88908dcad8e3ab7e635b8a30c0f3fd (diff) | |
[FIX] stock: sort move without description
Steps:
- Go to Inventory > Configuration > Warehouse Management / Operations
Types
- Edit Delivery Orders:
- Show Detailed Operations: Checked
- Go to Overview
- Create a new Delivery Order:
- Detailed Operations tab:
- Add a product (1)
- Operations tab:
- Add the same product (1) and make sure it has a description
- Save
Bug:
Traceback here:
https://github.com/odoo/odoo/blob/82b188a090aa34c258840343cbf594969489dd6b/addons/stock/models/stock_move.py#L807
TypeError: '<' not supported between instances of 'str' and 'bool'
Explanation:
A detailed operation has no description. Calling the description returns
`False`. When trying to save the delivery order with both detailed
operations and "normal" operations, the system tries to sort them out.
You cannot sort between different types (here, `str` and `bool`).
opw:2447720
closes odoo/odoo#65452
Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'odoo/addons/test_new_api/tests/test_new_fields.py')
0 files changed, 0 insertions, 0 deletions
