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

better colors for accounts based on type #4

Open
wants to merge 1 commit into
base: 10.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
33 changes: 32 additions & 1 deletion account_parent/views/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@
<odoo>
<data>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove redundant data tag


<record id="view_account_withparent_list" model="ir.ui.view">
<field name="name">account.account.list</field>
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_list"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="replace">
<tree
decoration-bf="balance != 0"
zdecoration-info="(balance == 0 and (debit != 0 or credit != 0)) or reconcile == True"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typo. Change zdecoration-info to decoration-info

decoration-warning="reconcile == True"
decoration-primary="internal_type == 'view'"
decoration-muted="deprecated == True"
decoration-danger="internal_type in ['receivable','payable']"
decoration-success="internal_type == 'liquidity'"
string="Chart of accounts" toolbar="1">
<field name="code"/>
<field name="name"/>
<field name="user_type_id"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="internal_type"/>
<field name="credit" />
<field name="debit" />
<field name="balance" />
<field name="deprecated" invisible="1"/>
<field name="reconcile" invisible="1"/>
</tree>
</xpath>
</field>
</record>

<record id="view_account_withparent_form" model="ir.ui.view">
<field name="name">account.account.form</field>
<field name="model">account.account</field>
Expand Down Expand Up @@ -98,4 +129,4 @@
</record>

</data>
</odoo>
</odoo>