diff options
| author | Josse Colpaert <jco@odoo.com> | 2017-01-10 18:37:53 +0100 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2017-01-10 18:37:53 +0100 |
| commit | 2f66e7abde072f100ef06c3a91fc416676f200bc (patch) | |
| tree | c6c1d56137e7a050f7016443c8e591cfe71168bf /addons/web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less | |
| parent | 909ce5175f2816ec732b1205fecf03c29dbed3d2 (diff) | |
[FIX] mrp: handle the case of empty routings
Before, when the routing of a production order was empty (no operations),
it got into an inconsistent state (you click on "plan" and nothing happens).
Empty routings were used before to do subcontracting or 2-steps inventeory
(we did not set any operations on the routing but we set a location).
Here, we change the related routing field on the production order into a
calculated field which becomes empty when the routing has no operations.
This way, the "produce" button is displayed (as for production orders
without routing) and working/
This is a temporary patch to workaround the issuein a stable release.
In master, we might remove the location on routing and place it on the
workcenters and put a constraint that does not allow an empty routing.
Diffstat (limited to 'addons/web/static/lib/bootstrap-datetimepicker/src/less/_bootstrap-datetimepicker.less')
0 files changed, 0 insertions, 0 deletions
