Skip to content

Commit

Permalink
Merge pull request #1 from guewen/hibou-io-mig/13.0/base_exception
Browse files Browse the repository at this point in the history
Add a couple of cosmetic improvements
  • Loading branch information
jaredkipe authored Jul 14, 2020
2 parents bd21688 + 32f0361 commit cd14bc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base_exception/models/base_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _detect_exceptions_by_domain(self, rule):
return self.search(domain)


class BaseException(models.AbstractModel):
class BaseExceptionModel(models.AbstractModel):
_inherit = "base.exception.method"
_name = "base.exception"
_order = "main_exception_id asc"
Expand Down
11 changes: 7 additions & 4 deletions base_exception/views/base_exception_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,28 @@
<field name="arch" type="xml">
<form string="Exception Rule Setup" name="exception_rule">
<sheet>
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button"/>
</button>
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
</div>
<group>
<group>
<field name="active" invisible="1"/>
<field name="description"/>
</group>
</group>
<group>
<group colspan="4" groups="base.group_system">
<field name="model"/>
<field name="exception_type" widget="radio"/>
<field name="domain" attrs="{'invisible': [('exception_type','!=','by_domain')], 'required': [('exception_type','=','by_domain')]}"/>
<field name="domain"
attrs="{'invisible': [('exception_type','!=','by_domain')], 'required': [('exception_type','=','by_domain')]}"
widget="domain"
options="{'model': 'model'}"
/>
</group>
</group>
<notebook>
Expand Down

0 comments on commit cd14bc9

Please sign in to comment.