Skip to content

Commit

Permalink
[14.0][IMP] account_asset_line_menu: Add code to account asset line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berezi authored and Berezi committed Dec 3, 2024
1 parent faf6a25 commit 4e0d493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions account_asset_line_menu/models/account_asset_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ class AccountAssetLine(models.Model):
related="asset_id.account_analytic_id",
store=True,
)
code = fields.Char(
related="asset_id.code",
store=True,
)
2 changes: 2 additions & 0 deletions account_asset_line_menu/views/account_asset_line_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
create="false"
>
<field name="asset_id" readonly="1" optional="show" />
<field name="code" />
<field name="type" optional="show" />
<field name="profile_id" optional="show" />
<field name="account_analytic_id" optional="show" />
Expand Down Expand Up @@ -67,6 +68,7 @@
<field name="arch" type="xml">
<search string="Search Assets Lines">
<field name="asset_id" />
<field name="code" />
<field name="type" />
<field name="line_date" />
<group expand="0" string="Group By">
Expand Down

0 comments on commit 4e0d493

Please sign in to comment.