Merge PR #646 into 12.0

Signed-off-by dreispt
This commit is contained in:
OCA-git-bot
2021-07-04 02:01:26 +00:00
2 changed files with 8 additions and 0 deletions

View File

@@ -29,3 +29,6 @@ class AgreementStage(models.Model):
stage_type = fields.Selection(
[('agreement', 'Agreement')],
string='Type', required=True)
active = fields.Boolean(
string="Active",
default=True)

View File

@@ -21,6 +21,11 @@
<field name="arch" type="xml">
<form string="Agreements Stage Form">
<sheet>
<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" options="{&quot;terminology&quot;: &quot;archive&quot;}"/>
</button>
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only" string="Stage Name"/>
<h1><field name="name" string="Stage Name"/></h1>