Skip to content

Commit

Permalink
Merge PR #655 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
OCA-git-bot committed Dec 11, 2024
2 parents 792c2c4 + 52e7dde commit 97576c1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions mis_builder_budget/models/mis_budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ class MisBudget(models.Model):
item_ids = fields.One2many(
comodel_name="mis.budget.item", inverse_name="budget_id", copy=True
)
active = fields.Boolean(default=True, copy=False)
13 changes: 13 additions & 0 deletions mis_builder_budget/views/mis_budget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<field name="state" widget="statusbar" />
</header>
<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="%(mis_budget_item_act_window)d"
Expand All @@ -41,6 +47,7 @@
</div>
<group>
<field name="name" />
<field name="active" invisible="True" />
<field name="description" />
<field name="report_id" />
<field name="company_id" groups="base.group_multi_company" />
Expand All @@ -65,6 +72,12 @@
<search>
<field name="name" />
<field name="state" />
<separator />
<filter
string="Archived"
name="inactive"
domain="[('active', '=', False)]"
/>
</search>
</field>
</record>
Expand Down
6 changes: 6 additions & 0 deletions mis_builder_budget/views/mis_budget_by_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<field name="state" widget="statusbar" />
</header>
<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="%(mis_budget_by_account_item_act_window)d"
Expand Down

0 comments on commit 97576c1

Please sign in to comment.