Skip to content

Commit

Permalink
Merge pull request #654 from acsone/mis_builder_budget_by_account_active
Browse files Browse the repository at this point in the history
[ADD] mis_builder_budget: active field for `mis.budget.by.account`
  • Loading branch information
sbidoul authored Dec 10, 2024
2 parents 75690a1 + 2753707 commit 95c426c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions mis_builder_budget/models/mis_budget_by_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ class MisBudgetByAccount(models.Model):
allow_items_overlap = fields.Boolean(
help="If checked, overlap between budget items is allowed"
)
active = fields.Boolean(default=True, copy=False)
7 changes: 7 additions & 0 deletions mis_builder_budget/views/mis_budget_by_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
</div>
<group>
<field name="name" />
<field name="active" invisible="True" />
<field name="description" />
<field name="company_id" groups="base.group_multi_company" />
</group>
Expand All @@ -65,6 +66,12 @@
<search>
<field name="name" />
<field name="state" />
<separator />
<filter
string="Archived"
name="inactive"
domain="[('active', '=', False)]"
/>
</search>
</field>
</record>
Expand Down

0 comments on commit 95c426c

Please sign in to comment.