Skip to content
Snippets Groups Projects
Commit 5d161fc5 authored by Tiffany Chang (tic)'s avatar Tiffany Chang (tic)
Browse files

[FIX] mrp: always assign allowed_mo_ids


PR: odoo/odoo#113475 replaced the computation of allowed_mo_ids with a
`pass` since this field was no longer needed anymore but could not be
removed in a stable version. This breaks the unbuild flow since this
value must be assigned and throws a ValueError without it, therefore
we now default allowed_mo_ids = False to avoid this error. (i.e. cannot
open any existing unbuild records + cannot validate new unbuilds)

closes odoo/odoo#113824

Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
parent 7e22d166
Branches
Tags
No related merge requests found
......@@ -78,7 +78,7 @@ class MrpUnbuild(models.Model):
def _compute_allowed_mo_ids(self):
# the function remains as a stable fix patch that was removed in master
pass
self.allowed_mo_ids = False
@api.onchange('company_id')
def _onchange_company_id(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment