Skip to content

Commit

Permalink
[14.0][IMP][l10n_eu_oss] Add form/tree/search view to account.tax mod…
Browse files Browse the repository at this point in the history
…el to show oss_country_id field
  • Loading branch information
robyf70 committed Jun 25, 2024
1 parent 6ec2933 commit 50249cc
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 6 deletions.
2 changes: 1 addition & 1 deletion l10n_eu_oss/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ L10n EU OSS
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:165a538057e0fb7b6741bf436cb7b463ecaeb86921840868245879e9ac507482
!! source digest: sha256:543965eb78ef954195c90846b9de540bfaf369831f96abb16493afe639753166
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
Expand Down
1 change: 1 addition & 0 deletions l10n_eu_oss/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"data/oss.tax.rate.csv",
"wizard/l10n_eu_oss_wizard.xml",
"views/res_config_settings.xml",
"views/account_tax_view.xml",
],
}
13 changes: 8 additions & 5 deletions l10n_eu_oss/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -366,7 +367,7 @@ <h1 class="title">L10n EU OSS</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:165a538057e0fb7b6741bf436cb7b463ecaeb86921840868245879e9ac507482
!! source digest: sha256:543965eb78ef954195c90846b9de540bfaf369831f96abb16493afe639753166
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/account-fiscal-rule/tree/14.0/l10n_eu_oss"><img alt="OCA/account-fiscal-rule" src="https://img.shields.io/badge/github-OCA%2Faccount--fiscal--rule-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-fiscal-rule-14-0/account-fiscal-rule-14-0-l10n_eu_oss"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-fiscal-rule&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module has been created to help with the tax mapping according to the EU One-Stop-Shop law, that concerns many companies that carry out distance sales.</p>
Expand Down Expand Up @@ -470,7 +471,9 @@ <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-8">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>
<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>
Expand Down
42 changes: 42 additions & 0 deletions l10n_eu_oss/views/account_tax_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="account_tax_form_view_inherit_l10n_eu_oss" model="ir.ui.view">
<field name="name">account.tax.view.form.inherit.l10n.eu.oss</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form" />
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="oss_country_id" />
</field>
</field>
</record>

<record id="account_tax_tree_view_inherit_l10n_eu_oss" model="ir.ui.view">
<field name="name">account.tax.view.tree.inherit.l10n.eu.oss</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_tree" />
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="oss_country_id" optional="show" />
</field>
</field>
</record>

<record id="account_tax_search_view_inherit_l10n_eu_oss" model="ir.ui.view">
<field name="name">account.tax.search.tree.inherit.l10n.eu.oss</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_account_tax_search" />
<field name="arch" type="xml">
<search>
<filter
string="OSS Country"
name="oss_country"
domain="[]"
context="{'group_by':'oss_country_id'}"
/>
</search>
</field>
</record>

</odoo>

0 comments on commit 50249cc

Please sign in to comment.