Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][IMP] analytic_activity_based_cost: improve analytic line view #695

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 32 additions & 18 deletions analytic_activity_based_cost/views/account_analytic_line.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
/>
<field name="arch" type="xml">

<xpath expr="//group[not(@name) and not(node())]" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>

<group name="amount" position="after">
<group
name="activity_cost"
Expand All @@ -43,27 +47,37 @@
>
<field name="unit_abcost" />
<field name="amount_abcost" />
<field
name="parent_id"
readonly="True"
attrs="{'invisible': ('parent_id', '=', False)}"
/>
<field
name="child_ids"
readonly="True"
attrs="{'invisible': ('child_ids', '=', False)}"
>
<tree name="child_ids_tree">
<field name="name" />
<field name="unit_amount" />
<field name="amount" />
<field name="unit_abcost" />
<field name="amount_abcost" />
</tree>
</field>
</group>
</group>

<sheet position="inside">
<notebook
attrs="{'invisible': [('parent_id', '=', False),('child_ids', '=', [])]}"
>
<page string="Related Analytic Items">
<group>
<field
name="parent_id"
readonly="True"
attrs="{'invisible': [('parent_id', '=', False)]}"
/>
<field
name="child_ids"
readonly="True"
attrs="{'invisible': [('child_ids', '=', [])]}"
>
<tree name="child_ids_tree">
<field name="name" />
<field name="unit_amount" />
<field name="amount" />
<field name="unit_abcost" />
<field name="amount_abcost" />
</tree>
</field>
</group>
</page>
</notebook>
</sheet>
</field>
</record>

Expand Down
Loading