Skip to content

Commit

Permalink
[REF] account: remove unused views and model
Browse files Browse the repository at this point in the history
This commit deletes all unsused views from the following models:
- `account.chart.template`
- `account.account.template`
- `account.common.report`

We also take the oppoturnity to remove ´account.common.report´.
This model is unused since odoo@b7232b1#diff-61c2936e0566472acce71f3bb90f47ca5a709680322621dbcb735e3e2bd92f7eL11

This is a preliminary work in order to convert form views into grid.

Related commit:
odoo@c04065a#diff-f292b09f5efe026c65c27c5f0175b719a5d66999cbb15832c211796617ac082dL1976

closes odoo#99810

Related: odoo/upgrade#3875
Signed-off-by: William André (wan) <wan@odoo.com>
  • Loading branch information
adr-odoo committed Sep 8, 2022
1 parent c1051a1 commit 4202009
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 204 deletions.
1 change: 0 additions & 1 deletion addons/account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
'views/report_invoice.xml',
'report/account_invoice_report_view.xml',
'views/account_cash_rounding_view.xml',
'wizard/account_report_common_view.xml',
'views/ir_module_views.xml',
'views/res_config_settings_views.xml',
'views/partner_view.xml',
Expand Down
1 change: 0 additions & 1 deletion addons/account/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ access_account_resequence,access.account.resequence.wizard,model_account_reseque
access_validate_account_move,access.validate.account.move,model_validate_account_move,account.group_account_invoice,1,1,1,0
access_cash_box_out,access.cash.box.out,model_cash_box_out,account.group_account_user,1,1,1,0
access_account_move_reversal,access.account.move.reversal,model_account_move_reversal,account.group_account_invoice,1,1,1,0
access_account_common_report,access.account.common.report,model_account_common_report,account.group_account_user,1,1,1,0
access_account_financial_year_op,access.account.financial.year.op,model_account_financial_year_op,account.group_account_manager,1,1,1,0
access_account_setup_bank_manual_config,access.account.setup.bank.manual.config,model_account_setup_bank_manual_config,account.group_account_manager,1,1,1,0
access_account_invoice_send,access.account.invoice.send,model_account_invoice_send,account.group_account_invoice,1,1,1,0
Expand Down
121 changes: 0 additions & 121 deletions addons/account/views/account_chart_template_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,127 +2,6 @@
<odoo>
<data>

<!-- Chart of Accounts Templates -->

<record id="view_account_chart_template_form" model="ir.ui.view">
<field name="name">account.chart.template.form</field>
<field name="model">account.chart.template</field>
<field name="arch" type="xml">
<form string="Chart of Accounts Template">
<group col="4">
<field name="name"/>
<field name="parent_id" />
<field name="bank_account_code_prefix"/>
<field name="cash_account_code_prefix"/>
<field name="transfer_account_code_prefix"/>
<field name="code_digits" />
<field name="visible" />
</group>
<separator string="Default Taxes" colspan="4"/>
<field name="tax_template_ids" colspan="4" nolabel="1"/>
<separator string="Properties" colspan="4"/>
<group col="4">
<field name="property_account_receivable_id"/>
<field name="property_account_payable_id"/>
<field name="property_account_expense_categ_id"/>
<field name="property_account_income_categ_id"/>
<field name="property_account_expense_id"/>
<field name="property_account_income_id"/>
</group>
</form>
</field>
</record>

<record id="view_account_chart_template_seacrh" model="ir.ui.view">
<field name="name">account.chart.template.search</field>
<field name="model">account.chart.template</field>
<field name="arch" type="xml">
<search string="Search Chart of Account Templates">
<field name="name" string="Account Template"/>
<field name="bank_account_code_prefix"/>
<field name="cash_account_code_prefix"/>
<field name="transfer_account_code_prefix"/>
<group expand="0" string="Group By">
<filter string="Receivable Account" name="receivalbeacc" domain="[]" context="{'group_by':'property_account_receivable_id'}"/>
<filter string="Payable Account" name="payableacc" domain="[]" context="{'group_by':'property_account_payable_id'}"/>
<filter string="Income Account" name="incomeacc" domain="[]" context="{'group_by':'property_account_income_categ_id'}"/>
<filter string="Expense Account" name="expenseacc" domain="[]" context="{'group_by':'property_account_expense_categ_id'}"/>
</group>
</search>
</field>
</record>

<record id="view_account_chart_template_tree" model="ir.ui.view">
<field name="name">account.chart.template.tree</field>
<field name="model">account.chart.template</field>
<field name="arch" type="xml">
<tree string="Chart of Accounts Template">
<field name="name"/>
<field name="property_account_receivable_id" invisible="1"/>
<field name="property_account_payable_id" invisible="1"/>
<field name="property_account_expense_categ_id" invisible="1"/>
<field name="property_account_income_categ_id" invisible="1"/>
</tree>
</field>
</record>
<record id="action_account_chart_template_form" model="ir.actions.act_window">
<field name="name">Chart of Accounts Templates</field>
<field name="res_model">account.chart.template</field>
<field name="view_mode">tree,form</field>
</record>


<!-- Account Templates -->

<record id="view_account_template_form" model="ir.ui.view">
<field name="name">account.account.template.form</field>
<field name="model">account.account.template</field>
<field name="arch" type="xml">
<form string="Account Template">
<group col="4">
<field name="name"/>
<field name="code"/>
<newline/>
<field name="account_type" widget="account_type_selection"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="tag_ids" domain="[('applicability', '=', 'accounts')]" widget="many2many_tags" context="{'default_applicability': 'accounts'}"/>
<field name="reconcile"/>
<field name="chart_template_id"/>
</group>
<separator string="Default Taxes"/>
<field name="tax_ids"/>
<separator string="Notes"/>
<field name="note" placeholder="Internal notes..."/>
</form>
</field>
</record>

<record id="view_account_template_tree" model="ir.ui.view">
<field name="name">account.account.template.tree</field>
<field name="model">account.account.template</field>
<field name="arch" type="xml">
<tree string="Account Template">
<field name="code"/>
<field name="name"/>
<field name="account_type" invisible="1"/>
</tree>
</field>
</record>

<record id="view_account_template_search" model="ir.ui.view">
<field name="name">account.account.template.search</field>
<field name="model">account.account.template</field>
<field name="arch" type="xml">
<search string="Search Account Templates">
<field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Account Template"/>
<field name="account_type"/>
<group expand="0" string="Group By">
<filter string="Account Type" name="accounttype" domain="[]" context="{'group_by':'account_type'}"/>
</group>
</search>
</field>
</record>

<!-- Account Tax Templates -->

<record id="view_account_tax_template_form" model="ir.ui.view">
Expand Down
1 change: 0 additions & 1 deletion addons/account/wizard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from . import account_validate_account_move
from . import pos_box
from . import account_move_reversal
from . import account_report_common
from . import account_resequence
from . import setup_wizards
from . import account_invoice_send
Expand Down
54 changes: 0 additions & 54 deletions addons/account/wizard/account_report_common.py

This file was deleted.

26 changes: 0 additions & 26 deletions addons/account/wizard/account_report_common_view.xml

This file was deleted.

0 comments on commit 4202009

Please sign in to comment.