Skip to content

Commit

Permalink
FIX: view error on suspended product
Browse files Browse the repository at this point in the history
  • Loading branch information
mboscolo committed Apr 25, 2024
1 parent 8cd9457 commit 5e8fad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plm/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ def populate(product_id):
#
populate(self)
return out


class PlmTemporayMessage(models.TransientModel):
_name = "plm.temporary.message"
Expand Down
4 changes: 2 additions & 2 deletions plm_suspended/views/product_product.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
type="object"
string="Suspend"
class="oe_highlight"
invisible="engineering_state=='suspended'"
attrs="{'invisible':[('engineering_state','=','suspended')]}"
/>
<button name="action_unsuspend"
type="object"
string="Un-Suspend"
class="oe_highlight"
invisible="engineering_state not in ['suspended']"
attrs="{'invisible':[('engineering_state','not in','suspended')]}"
/>
</xpath>
</field>
Expand Down

0 comments on commit 5e8fad5

Please sign in to comment.