Skip to content

Commit

Permalink
[IMP] sale_exception: hide banner if de sale es cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
lav-adhoc committed Sep 24, 2024
1 parent e8941d7 commit 9be5c33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sale_exceptions_ignore_approve/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Exceptions Ingore Approve Directly',
'version': "17.0.1.1.0",
'version': "17.0.1.2.0",
'category': 'Sale',
'sequence': 14,
'author': 'ADHOC SA',
Expand Down
4 changes: 4 additions & 0 deletions sale_exceptions_ignore_approve/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<field name="arch" type="xml">
<xpath expr="//button[@name='action_ignore_exceptions']" position="attributes">
<attribute name="groups">base_exception.group_exception_rule_manager,sales_team.group_sale_manager</attribute>
<attribute name="invisible">state == 'cancel'</attribute>
</xpath>
<xpath expr="//div[contains(@class, 'alert-danger')]" position="attributes">
<attribute name="invisible">not exceptions_summary or state == 'cancel'</attribute>
</xpath>
</field>
</record>
Expand Down

0 comments on commit 9be5c33

Please sign in to comment.