Commit 1a421002 by aa.gusti

css idg_account

1 parent b8e764c2
...@@ -7,14 +7,16 @@ ...@@ -7,14 +7,16 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Account"> <form string="Account">
<sheet> <sheet>
<!-- <div class="oe_button_box" name="button_box">--> <!-- <div class="oe_button_box" name="button_box">-->
<!-- <button class="oe_stat_button" name="account.action_move_line_select"--> <!-- <button class="oe_stat_button" name="account.action_move_line_select"-->
<!-- string="Journal Items" type="action" icon="fa-bars"/>--> <!-- string="Journal Items" type="action" icon="fa-bars"/>-->
<!-- </div>--> <!-- </div>-->
<div class="oe_title"> <div class="oe_title">
<h1 class= "oe_read_only"> <h1 class="oe_read_only">
<field name="code" placeholder="code"/> - <field name="name" placeholder="name"/> <field name="code" placeholder="code"/>
<!-- <field name="company_id" invisible="1"/>--> -
<field name="name" placeholder="name"/>
<!-- <field name="company_id" invisible="1"/>-->
</h1> </h1>
<div class="oe_inline oe_edit_only"> <div class="oe_inline oe_edit_only">
<label for="code"/> <label for="code"/>
...@@ -25,22 +27,23 @@ ...@@ -25,22 +27,23 @@
</div> </div>
<group> <group>
<group name="left_main_group"> <group name="left_main_group">
<!-- <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>--> <!-- <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>-->
<field name="user_type_id" widget="account_hierarchy_selection"/> <field name="user_type_id" widget="account_hierarchy_selection"/>
<field name="group_id"/> <field name="group_id"/>
<field name="internal_type" invisible="1" readonly="1"/> <field name="internal_type" invisible="1" readonly="1"/>
<field name="internal_group" invisible="1" readonly="1"/> <field name="internal_group" invisible="1" readonly="1"/>
</group> </group>
<group name="right_main_group"> <group name="right_main_group">
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/> <field name="currency_id" options="{'no_create': True}"
groups="base.group_multi_currency"/>
<field name="deprecated"/> <field name="deprecated"/>
</group> </group>
<group string="Account Options" name="options_group"> <group string="Account Options" name="options_group">
<!-- <field name="tax_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]" attrs="{'invisible': [('internal_group', '=', 'off_balance')]}"/>--> <!-- <field name="tax_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]" attrs="{'invisible': [('internal_group', '=', 'off_balance')]}"/>-->
<!-- <field name="tag_ids" widget="many2many_tags" domain="[('applicability', '!=', 'taxes')]" context="{'default_applicability': 'accounts'}" options="{'no_create_edit': True}"/>--> <!-- <field name="tag_ids" widget="many2many_tags" domain="[('applicability', '!=', 'taxes')]" context="{'default_applicability': 'accounts'}" options="{'no_create_edit': True}"/>-->
</group> </group>
<group string="Security" name="security_group"> <group string="Security" name="security_group">
<!-- <field name="allowed_journal_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]" options="{'no_create_edit': True}"/>--> <!-- <field name="allowed_journal_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]" options="{'no_create_edit': True}"/>-->
</group> </group>
</group> </group>
</sheet> </sheet>
...@@ -59,13 +62,13 @@ ...@@ -59,13 +62,13 @@
<field name="group_id" optional="hide"/> <field name="group_id" optional="hide"/>
<field name="internal_type" invisible="1"/> <field name="internal_type" invisible="1"/>
<field name="internal_group" invisible="1"/> <field name="internal_group" invisible="1"/>
<field name="reconcile" widget="boolean_toggle" attrs="{'invisible': ['|', ('internal_type','=','liquidity'), ('internal_group', '=', 'off_balance')]}"/> <!-- <field name="reconcile" widget="boolean_toggle" attrs="{'invisible': ['|', ('internal_type','=','liquidity'), ('internal_group', '=', 'off_balance')]}"/>-->
<!-- <field name="tax_ids" optional="hide" widget="many2many_tags"/>--> <!-- <field name="tax_ids" optional="hide" widget="many2many_tags"/>-->
<!-- <field name="tag_ids" optional="hide" widget="many2many_tags"/>--> <!-- <field name="tag_ids" optional="hide" widget="many2many_tags"/>-->
<!-- <field name="allowed_journal_ids" optional="hide" widget="many2many_tags"/>--> <!-- <field name="allowed_journal_ids" optional="hide" widget="many2many_tags"/>-->
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/> <!-- <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="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>-->
<button name="action_read_account" type="object" string="Setup" class="float-right btn-secondary"/> <!-- <button name="action_read_account" type="object" string="Setup" class="float-right btn-secondary"/>-->
</tree> </tree>
</field> </field>
</record> </record>
...@@ -83,14 +86,19 @@ ...@@ -83,14 +86,19 @@
<div t-attf-class="oe_kanban_global_click"> <div t-attf-class="oe_kanban_global_click">
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
<strong><field name="name"/></strong> <strong>
<field name="name"/>
</strong>
</div> </div>
<div class="col-6 text-right"> <div class="col-6 text-right">
<span class="badge badge-pill"><t t-esc="record.code.value"/></span> <span class="badge badge-pill">
<t t-esc="record.code.value"/>
</span>
</div> </div>
</div> </div>
<div> <div>
<strong>Type: </strong><t t-esc="record.user_type_id.value"/> <strong>Type:</strong>
<t t-esc="record.user_type_id.value"/>
</div> </div>
</div> </div>
</t> </t>
...@@ -104,8 +112,10 @@ ...@@ -104,8 +112,10 @@
<field name="model">account.account</field> <field name="model">account.account</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="Accounts"> <search string="Accounts">
<field name="name" filter_domain="['|', ('name','ilike',self), ('code','=like',str(self)+'%')]" string="Account"/> <field name="name" filter_domain="['|', ('name','ilike',self), ('code','=like',str(self)+'%')]"
<filter string="Receivable Accounts" name="receivableacc" domain="[('internal_type','=','receivable')]"/> string="Account"/>
<filter string="Receivable Accounts" name="receivableacc"
domain="[('internal_type','=','receivable')]"/>
<filter string="Payable Accounts" name="payableacc" domain="[('internal_type','=','payable')]"/> <filter string="Payable Accounts" name="payableacc" domain="[('internal_type','=','payable')]"/>
<filter string="Equity" name="equityacc" domain="[('internal_group','=', 'equity')]"/> <filter string="Equity" name="equityacc" domain="[('internal_group','=', 'equity')]"/>
<filter string="Assets" name="assetsacc" domain="[('internal_group','=', 'asset')]"/> <filter string="Assets" name="assetsacc" domain="[('internal_group','=', 'asset')]"/>
...@@ -118,7 +128,8 @@ ...@@ -118,7 +128,8 @@
<separator/> <separator/>
<field name="user_type_id"/> <field name="user_type_id"/>
<group expand="0" string="Group By"> <group expand="0" string="Group By">
<filter string="Account Type" name="accounttype" domain="" context="{'group_by':'user_type_id'}"/> <filter string="Account Type" name="accounttype" domain=""
context="{'group_by':'user_type_id'}"/>
</group> </group>
<searchpanel class="account_root"> <searchpanel class="account_root">
<field name="root_id" icon="fa-filter" limit="0"/> <field name="root_id" icon="fa-filter" limit="0"/>
...@@ -136,7 +147,8 @@ ...@@ -136,7 +147,8 @@
<field name="help" type="html"> <field name="help" type="html">
<p class="o_view_nocontent_smiling_face"> <p class="o_view_nocontent_smiling_face">
Add a new account Add a new account
</p><p> </p>
<p>
An account is part of a ledger allowing your company An account is part of a ledger allowing your company
to register all kinds of debit and credit transactions. to register all kinds of debit and credit transactions.
Companies present their annual accounts in two main parts: the Companies present their annual accounts in two main parts: the
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!