mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_menu: Migration to 13.0
This commit is contained in:
committed by
GuillemCForgeFlow
parent
a8cccc3145
commit
bd76821c2c
@@ -14,19 +14,25 @@ Account - Missing Menus
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/account-financial-tools/tree/12.0/account_menu
|
||||
:target: https://github.com/OCA/account-financial-tools/tree/13.0/account_menu
|
||||
:alt: OCA/account-financial-tools
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_menu
|
||||
:target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_menu
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/92/12.0
|
||||
:target: https://runbot.odoo-community.org/runbot/92/13.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module adds all missing menu entries for **Account** module.
|
||||
|
||||
* Chart of Account Templates
|
||||
* Account Types
|
||||
* Account Tags
|
||||
* Account Group
|
||||
* Bank Statements
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
@@ -42,30 +48,13 @@ To see all the menus, make sure:
|
||||
|
||||
* The page is running in debug mode
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
In v12, this module installs 4 modules :
|
||||
|
||||
* ``account_coa_menu``
|
||||
* ``account_group_menu``
|
||||
* ``account_tag_menu``
|
||||
* ``account_type_menu``
|
||||
|
||||
* Adds menu for bank statements.
|
||||
|
||||
For V13+, we could imagine to have a single module that creates all the
|
||||
missing menus (and actions).
|
||||
|
||||
Ref : https://github.com/OCA/account-financial-tools/issues/857
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_menu%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_menu%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -81,6 +70,7 @@ Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Sylvain LE GAL <https://twitter.com/legalsylvain>
|
||||
* Raf Ven <raf.ven@dynapps.be>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
@@ -95,6 +85,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/12.0/account_menu>`_ project on GitHub.
|
||||
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/13.0/account_menu>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
|
||||
@@ -3,26 +3,26 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
'name': 'Account - Missing Menus',
|
||||
'version': '12.0.1.0.0',
|
||||
'category': 'Accounting',
|
||||
'license': 'AGPL-3',
|
||||
'summary': "Adds missing menu entries for Account module",
|
||||
'author': "GRAP, Odoo Community Association (OCA)",
|
||||
'website': 'https://github.com/OCA/account-financial-tools',
|
||||
'depends': [
|
||||
'account',
|
||||
'account_coa_menu',
|
||||
'account_group_menu',
|
||||
'account_tag_menu',
|
||||
'account_type_menu',
|
||||
"name": "Account - Missing Menus",
|
||||
"version": "13.0.1.0.0",
|
||||
"category": "Accounting",
|
||||
"license": "AGPL-3",
|
||||
"summary": "Adds missing menu entries for Account module",
|
||||
"author": "GRAP, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
"depends": ["account"],
|
||||
"data": [
|
||||
"views/menu.xml",
|
||||
"views/view_account_account_template.xml",
|
||||
"views/view_account_bank_statement.xml",
|
||||
"views/view_account_chart_template.xml",
|
||||
"views/view_account_fiscal_position_template.xml",
|
||||
"views/view_account_group.xml",
|
||||
"views/view_account_tag.xml",
|
||||
"views/view_account_tax_group.xml",
|
||||
"views/view_account_tax_template.xml",
|
||||
"views/view_account_type.xml",
|
||||
],
|
||||
'data': [
|
||||
'views/menu.xml',
|
||||
'views/view_account_bank_statement.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/res_groups.xml',
|
||||
],
|
||||
'installable': True,
|
||||
"demo": ["demo/res_groups.xml"],
|
||||
"installable": True,
|
||||
}
|
||||
|
||||
@@ -11,4 +11,3 @@
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
|
||||
3
account_menu/models/__init__.py
Normal file
3
account_menu/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import account_group
|
||||
from . import account_tag
|
||||
from . import account_tax_group
|
||||
15
account_menu/models/account_group.py
Normal file
15
account_menu/models/account_group.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright 2018 FOREST AND BIOMASS ROMANIA SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountGroup(models.Model):
|
||||
_inherit = "account.group"
|
||||
|
||||
account_ids = fields.One2many(
|
||||
comodel_name="account.account",
|
||||
inverse_name="group_id",
|
||||
string="Accounts",
|
||||
help="Assigned accounts.",
|
||||
)
|
||||
21
account_menu/models/account_tag.py
Normal file
21
account_menu/models/account_tag.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# Copyright 2018 FOREST AND BIOMASS ROMANIA SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountAccountTag(models.Model):
|
||||
_inherit = "account.account.tag"
|
||||
|
||||
account_ids = fields.Many2many(
|
||||
comodel_name="account.account",
|
||||
relation="account_account_account_tag",
|
||||
string="Accounts",
|
||||
help="Assigned accounts for custom reporting",
|
||||
)
|
||||
tax_ids = fields.Many2many(
|
||||
comodel_name="account.tax",
|
||||
relation="account_tax_account_tag",
|
||||
string="Taxes",
|
||||
help="Assigned taxes for custom reporting",
|
||||
)
|
||||
15
account_menu/models/account_tax_group.py
Normal file
15
account_menu/models/account_tax_group.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# Copyright 2018 FOREST AND BIOMASS ROMANIA SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountTaxGroup(models.Model):
|
||||
_inherit = "account.tax.group"
|
||||
|
||||
tax_ids = fields.One2many(
|
||||
comodel_name="account.tax",
|
||||
inverse_name="tax_group_id",
|
||||
string="Taxes",
|
||||
help="Assigned taxes.",
|
||||
)
|
||||
@@ -1 +1,2 @@
|
||||
* Sylvain LE GAL <https://twitter.com/legalsylvain>
|
||||
* Raf Ven <raf.ven@dynapps.be>
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
This module adds all missing menu entries for **Account** module.
|
||||
|
||||
* Chart of Account Templates
|
||||
* Account Types
|
||||
* Account Tags
|
||||
* Account Group
|
||||
* Bank Statements
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
In v12, this module installs 4 modules :
|
||||
|
||||
* ``account_coa_menu``
|
||||
* ``account_group_menu``
|
||||
* ``account_tag_menu``
|
||||
* ``account_type_menu``
|
||||
|
||||
* Adds menu for bank statements.
|
||||
|
||||
For V13+, we could imagine to have a single module that creates all the
|
||||
missing menus (and actions).
|
||||
|
||||
Ref : https://github.com/OCA/account-financial-tools/issues/857
|
||||
@@ -3,7 +3,7 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
|
||||
<title>Account - Missing Menus</title>
|
||||
<style type="text/css">
|
||||
|
||||
@@ -367,18 +367,24 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_menu"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_menu"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_menu"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_menu"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/92/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module adds all missing menu entries for <strong>Account</strong> module.</p>
|
||||
<ul class="simple">
|
||||
<li>Chart of Account Templates</li>
|
||||
<li>Account Types</li>
|
||||
<li>Account Tags</li>
|
||||
<li>Account Group</li>
|
||||
<li>Bank Statements</li>
|
||||
</ul>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
|
||||
<li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -392,50 +398,37 @@ ul.auto-toc {
|
||||
<li>The page is running in debug mode</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="known-issues-roadmap">
|
||||
<h1><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h1>
|
||||
<p>In v12, this module installs 4 modules :</p>
|
||||
<ul class="simple">
|
||||
<li><tt class="docutils literal">account_coa_menu</tt></li>
|
||||
<li><tt class="docutils literal">account_group_menu</tt></li>
|
||||
<li><tt class="docutils literal">account_tag_menu</tt></li>
|
||||
<li><tt class="docutils literal">account_type_menu</tt></li>
|
||||
<li>Adds menu for bank statements.</li>
|
||||
</ul>
|
||||
<p>For V13+, we could imagine to have a single module that creates all the
|
||||
missing menus (and actions).</p>
|
||||
<p>Ref : <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/857">https://github.com/OCA/account-financial-tools/issues/857</a></p>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
|
||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_menu%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_menu%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
|
||||
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
|
||||
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>GRAP</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
|
||||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Sylvain LE GAL <<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>></li>
|
||||
<li>Raf Ven <<a class="reference external" href="mailto:raf.ven@dynapps.be">raf.ven@dynapps.be</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
|
||||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/12.0/account_menu">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/13.0/account_menu">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,9 +6,14 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<menuitem id="menu_accounting_bank_and_cash"
|
||||
name="Bank and Cash"
|
||||
parent="account.menu_finance_entries"
|
||||
sequence="15"/>
|
||||
<menuitem id="menu_accounting_bank_and_cash"
|
||||
name="Bank and Cash"
|
||||
parent="account.menu_finance_entries"
|
||||
sequence="15"/>
|
||||
|
||||
<menuitem id="menu_account_coa_settings"
|
||||
sequence="50"
|
||||
name="Templates"
|
||||
parent="account.menu_finance_configuration"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
14
account_menu/views/view_account_account_template.xml
Normal file
14
account_menu/views/view_account_account_template.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<menuitem id="menu_account_account_template"
|
||||
action="account.action_account_template_form"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="20"/>
|
||||
|
||||
</odoo>
|
||||
@@ -7,13 +7,13 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
<odoo>
|
||||
|
||||
<menuitem id="menu_accounting_statement_bank"
|
||||
action="account.action_bank_statement_tree"
|
||||
parent="menu_accounting_bank_and_cash"
|
||||
sequence="10"/>
|
||||
action="account.action_bank_statement_tree"
|
||||
parent="menu_accounting_bank_and_cash"
|
||||
sequence="10"/>
|
||||
|
||||
<menuitem id="menu_accounting_statement_cash"
|
||||
action="account.action_view_bank_statement_tree"
|
||||
parent="menu_accounting_bank_and_cash"
|
||||
sequence="20"/>
|
||||
action="account.action_view_bank_statement_tree"
|
||||
parent="menu_accounting_bank_and_cash"
|
||||
sequence="20"/>
|
||||
|
||||
</odoo>
|
||||
|
||||
14
account_menu/views/view_account_chart_template.xml
Normal file
14
account_menu/views/view_account_chart_template.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<menuitem id="menu_account_chart_template"
|
||||
action="account.action_account_chart_template_form"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="10"/>
|
||||
|
||||
</odoo>
|
||||
19
account_menu/views/view_account_fiscal_position_template.xml
Normal file
19
account_menu/views/view_account_fiscal_position_template.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<!-- Renaming this action because this default name is not the correct one -->
|
||||
<record id="account.action_account_fiscal_position_template_form" model="ir.actions.act_window">
|
||||
<field name="name">Fiscal Position Templates</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_account_fiscal_position_template"
|
||||
action="account.action_account_fiscal_position_template_form"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="40"/>
|
||||
|
||||
</odoo>
|
||||
26
account_menu/views/view_account_group.xml
Normal file
26
account_menu/views/view_account_group.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_group_form" model="ir.ui.view">
|
||||
<field name="name">account.group.form</field>
|
||||
<field name="model">account.group</field>
|
||||
<field name="inherit_id" ref="account.view_account_group_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group" position="after">
|
||||
<group>
|
||||
<group id="links">
|
||||
<label for="account_ids"/>
|
||||
<field name="account_ids" widget="many2many" nolabel="1"
|
||||
options="{'no_create_edit': True}"/>
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="account_group_menu"
|
||||
action="account.action_account_group_tree"
|
||||
sequence="50"
|
||||
parent="account.account_account_menu"/>
|
||||
|
||||
</odoo>
|
||||
38
account_menu/views/view_account_tag.xml
Normal file
38
account_menu/views/view_account_tag.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="account_tag_view_form" model="ir.ui.view">
|
||||
<field name="name">tag_addd_accounts_taxes</field>
|
||||
<field name="model">account.account.tag</field>
|
||||
<field name="inherit_id" ref="account.account_tag_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group" position="after">
|
||||
<group>
|
||||
<group id="aplicability">
|
||||
<field name="applicability" widget="selection"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group id="links">
|
||||
<label for="account_ids"
|
||||
attrs="{'invisible':[('applicability','!=', 'accounts')]}"/>
|
||||
<field name="account_ids" widget="many2many_tags" nolabel="1"
|
||||
attrs="{'invisible':[('applicability','!=', 'accounts')]}"
|
||||
options="{'no_create_edit': True}"/>
|
||||
<label for="tax_ids"
|
||||
attrs="{'invisible':[('applicability','!=', 'taxes')]}"/>
|
||||
<field name="tax_ids" widget="many2many_tags" nolabel="1"
|
||||
attrs="{'invisible':[('applicability','!=', 'taxes')]}"
|
||||
options="{'no_create_edit': True}"/>
|
||||
</group>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="account_tag_menu"
|
||||
action="account.account_tag_action"
|
||||
sequence="40"
|
||||
parent="account.account_account_menu"/>
|
||||
|
||||
</odoo>
|
||||
66
account_menu/views/view_account_tax_group.xml
Normal file
66
account_menu/views/view_account_tax_group.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_tax_group_form" model="ir.ui.view">
|
||||
<field name="name">account.tax.group.form</field>
|
||||
<field name="model">account.tax.group</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Account Tax Group">
|
||||
<group>
|
||||
<group id="name">
|
||||
<field name="name"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group id="sequence">
|
||||
<field name="sequence"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group id="links">
|
||||
<label for="tax_ids"/>
|
||||
<field name="tax_ids" widget="one2many_list" colspan="4" nolabel="1"
|
||||
mode="tree"
|
||||
options="{'no_create_edit': True}"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_tax_group_search" model="ir.ui.view">
|
||||
<field name="name">account.tax.group.search</field>
|
||||
<field name="model">account.tax.group</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Account Tax Groups">
|
||||
<field name="name"
|
||||
filter_domain="['|', ('sequence', '=like', str(self) + '%'), ('name', 'ilike', self)]"
|
||||
string="Account Tax Group"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_tax_group_tree" model="ir.ui.view">
|
||||
<field name="name">account.tax.group.tree</field>
|
||||
<field name="model">account.tax.group</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree name="account_tax_group">
|
||||
<field name="sequence"/>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_account_tax_group_tree" model="ir.actions.act_window">
|
||||
<field name="name">Account Tax Groups</field>
|
||||
<field name="res_model">account.tax.group</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="search_view_id" ref="view_account_tax_group_search"/>
|
||||
</record>
|
||||
|
||||
<menuitem id="account_tax_group_menu"
|
||||
action="action_account_tax_group_tree"
|
||||
sequence="51"
|
||||
parent="account.account_account_menu"/>
|
||||
|
||||
</odoo>
|
||||
14
account_menu/views/view_account_tax_template.xml
Normal file
14
account_menu/views/view_account_tax_template.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
|
||||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
<menuitem id="menu_account_tax_template"
|
||||
action="account.action_account_tax_template_form"
|
||||
parent="menu_account_coa_settings"
|
||||
sequence="30"/>
|
||||
|
||||
</odoo>
|
||||
9
account_menu/views/view_account_type.xml
Normal file
9
account_menu/views/view_account_type.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<menuitem id="account_type_menu"
|
||||
action="account.action_account_type_form"
|
||||
sequence="30"
|
||||
parent="account.account_account_menu"/>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user