-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Escodoo/14.0-add-l10n_br_sale_hide_tax_re…
…port [14.0][ADD] l10n_br_sale_hide_tax_report: new module
- Loading branch information
Showing
13 changed files
with
605 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
=========================================== | ||
Brazilian Localization Sale Hide Tax Report | ||
=========================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:7c9bd1f1073e7cbee42e2d95b82c2add5ecc54cdfdd9d0921f2b8c0902b0f423 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-Escodoo%2Fsale--addons-lightgray.png?logo=github | ||
:target: https://github.com/Escodoo/sale-addons/tree/14.0/l10n_br_sale_hide_tax_report | ||
:alt: Escodoo/sale-addons | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
This module hides tax values from the sales order report. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
Just install it. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/sale-addons/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/Escodoo/sale-addons/issues/new?body=module:%20l10n_br_sale_hide_tax_report%0Aversion:%2014.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. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Escodoo | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* `Escodoo <https://www.escodoo.com.br>`_: | ||
|
||
* Marcel Savegnago <[email protected]> | ||
* Kaynnan Lemes <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is part of the `Escodoo/sale-addons <https://github.com/Escodoo/sale-addons/tree/14.0/l10n_br_sale_hide_tax_report>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2023 - TODAY, Escodoo | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Brazilian Localization Sale Hide Tax Report", | ||
"version": "14.0.1.0.0", | ||
"license": "AGPL-3", | ||
"author": "Escodoo, " "Odoo Community Association (OCA)", | ||
"website": "https://github.com/Escodoo/sale-addons", | ||
"depends": ["l10n_br_sale"], | ||
"data": ["report/sale_report_templates.xml"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* `Escodoo <https://www.escodoo.com.br>`_: | ||
|
||
* Marcel Savegnago <[email protected]> | ||
* Kaynnan Lemes <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This module hides tax values from the sales order report. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just install it. |
79 changes: 79 additions & 0 deletions
79
l10n_br_sale_hide_tax_report/report/sale_report_templates.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<template | ||
id="report_saleorder_document_l10n_br_sale_custom" | ||
inherit_id="l10n_br_sale.report_saleorder_document_l10n_br_sale" | ||
priority="100" | ||
> | ||
<!-- HIDDEN AMOUNT UNTAXED LABEL --> | ||
<xpath | ||
expr="//div[@name='total']/div/table/tr[@style='']/td[@name='td_amount_untaxed_label']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDEN AMOUNT UNTAXED --> | ||
<xpath | ||
expr="//div[@name='total']/div/table/tr[@style='']/td[@name='td_amount_untaxed']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDEN AMOUNT TAX LABEL --> | ||
<xpath | ||
expr="//div[@name='total']/div/table/tr[@style='']/td[@name='td_amount_tax_label']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDEN AMOUNT TAX --> | ||
<xpath | ||
expr="//div[@name='total']/div/table/tr[@style='']/td[@name='td_amount_tax']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDEN AMOUNT BY GROUP (IPI, COFFINS, ETC) --> | ||
<xpath | ||
expr="//div[@name='total']/div/table//td[@name='td_amount_by_group_label']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDEN AMOUNT BY GROUP (IPI, COFFINS, ETC) --> | ||
<xpath | ||
expr="//div[@name='total']/div/table//td[@name='td_amount_by_group']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDE COLUMN TH_TAXES --> | ||
<xpath | ||
expr="//table[@class='table table-sm o_main_table']/thead//th[@name='th_taxes']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDE COLUMN TD_TAXES --> | ||
<xpath | ||
expr="//table[@class='table table-sm o_main_table']/tbody//td[@name='td_taxes']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- HIDDEN SPAN LINE.PRICE_SUBTOTAL (NO INCLUDE TAXES) --> | ||
<xpath | ||
expr="//table[@class='table table-sm o_main_table']/tbody//span[@t-field='line.price_subtotal']" | ||
position="attributes" | ||
> | ||
<attribute name="class">d-none</attribute> | ||
</xpath> | ||
<!-- REMOVE GROUPS IN LINE.PRICE_TOTAL (INCLUDE TAXES) --> | ||
<xpath | ||
expr="//table[@class='table table-sm o_main_table']/tbody//span[@t-field='line.price_total']" | ||
position="attributes" | ||
> | ||
<attribute name="groups" /> | ||
</xpath> | ||
</template> | ||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.