Skip to content

Commit

Permalink
FIX: problem on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Oct 15, 2024
1 parent d4aac31 commit 3d59c5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plm/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
##############################################################################
{
"name": "Product Lifecycle Management",
"version": "16.0.30",
"version": "16.0.31",
"author": "OmniaSolutions",
"website": "https://odooplm.omniasolutions.website",
"category": "Manufacturing/Product Lifecycle Management (PLM)",
Expand Down
16 changes: 13 additions & 3 deletions plm/models/plm_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,16 @@ def get_all_translation(self, object_id, fields):
propKey = f"{field_name}@-@-@{code}"
out[propKey] = getattr(obj.with_context(lang=code), field_name)
return out




@api.model
def get_possible_status(self):
out=[]
for model_id in self.env['ir.model'].sudo().search([('model','=', self._name)]):
for filed_id in self.env['ir.model.fields'].sudo().search([('model_id','=', model_id.id),
('name', '=', 'engineering_state')]):
for ir_model_fields_selection in self.env['ir.model.fields.selection'].sudo().search([('field_id','=',filed_id.id)]):
out.append((ir_model_fields_selection.name,
ir_model_fields_selection.value))
return out


0 comments on commit 3d59c5f

Please sign in to comment.