$ 4.73
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
Lines of code | 18 |
Technical Name |
account_hide_tax_columns |
License | OPL-1 |
Website | https://github.com/agungsepruloh |
Versions | 17.0 16.0 15.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
Lines of code | 18 |
Technical Name |
account_hide_tax_columns |
License | OPL-1 |
Website | https://github.com/agungsepruloh |
Versions | 17.0 16.0 15.0 |
Invoice Hide Tax Columns PDF
Hide tax columns in the Invoice PDF Report if the tax is zero for all lines
Key Features
1. Dynamic tax columns visibility based on the tax amount ✅
2. Hide tax columns in the Invoice PDF Report ✅
3. Easy to use ✅
3. No configuration required ✅
4. Support on Community and Enterprise Editions ✅
Screenshots
- When using taxes
- When not using taxes
Table of contents
Bug Tracker
Bugs are tracked on GitHub 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.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Agung Sepruloh
Contributors
Agung Sepruloh <agungsepruloh1996@gmail.com>
Maintainers
Current maintainer:
This module is part of the agungsepruloh/hide_tax_columns project on GitHub.
You are welcome to contribute.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "", line 2577, in template_717
File "", line 2559, in template_717_content
File "", line 1155, in template_717_t_call_0
AttributeError: 'account.move' object has no attribute 'has_tax'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/cloudclusters/odoo/addons/web/controllers/report.py", line 113, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
File "/cloudclusters/odoo/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/cloudclusters/odoo/addons/web/controllers/report.py", line 42, in report_routes
pdf = report.with_context(context)._render_qweb_pdf(reportname, docids, data=data)[0]
File "/cloudclusters/odoo/addons/account/models/ir_actions_report.py", line 58, in _render_qweb_pdf
return super()._render_qweb_pdf(report_ref, res_ids=res_ids, data=data)
File "/cloudclusters/odoo/odoo/addons/base/models/ir_actions_report.py", line 839, in _render_qweb_pdf
collected_streams = self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/cloudclusters/odoo/addons/sale_pdf_quote_builder/models/ir_actions_report.py", line 12, in _render_qweb_pdf_prepare_streams
result = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/cloudclusters/odoo/addons/account/models/ir_actions_report.py", line 20, in _render_qweb_pdf_prepare_streams
return super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)
File "/cloudclusters/odoo/odoo/addons/base/models/ir_actions_report.py", line 727, in _render_qweb_pdf_prepare_streams
html = self.with_context(**additional_context)._render_qweb_html(report_ref, res_ids_wo_stream, data=data)[0]
File "/cloudclusters/odoo/odoo/addons/base/models/ir_actions_report.py", line 916, in _render_qweb_html
return self._render_template(report.report_name, data), 'html'
File "/cloudclusters/odoo/odoo/addons/base/models/ir_actions_report.py", line 653, in _render_template
return view_obj._render_template(template, values).encode()
File "/cloudclusters/odoo/odoo/addons/base/models/ir_ui_view.py", line 2044, in _render_template
return self.env['ir.qweb']._render(template, values)
File "/cloudclusters/odoo/odoo/tools/profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "/cloudclusters/odoo/odoo/addons/base/models/ir_qweb.py", line 593, in _render
result = ''.join(rendering)
File "", line 38, in template_723
File "", line 27, in template_723_content
File "", line 86, in template_722
File "", line 68, in template_722_content
File "", line 56, in template_722_t_call_0
File "", line 2583, in template_717
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
AttributeError: 'account.move' object has no attribute 'has_tax'
Template: account.report_invoice_document
Path: /t/t/div[2]/div/table/thead/tr/th[5]
Node:
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (https://odoo-165920-0.cloudclusters.net/web/assets/debug/web.assets_web.js:27716:19)
at decoder.onload (https://odoo-165920-0.cloudclusters.net/web/assets/debug/web.assets_web.js:27599:25)
Re:
Hi iccitsa,
You need to restart the Odoo server after you download and import it, so the code will be updated correctly. After you restart the Odoo server, upgrade the module and try it again.
I hope it helps, thank you.
Best Regards,
Agung