diff --git a/advanced_vat_invoice/README.rst b/advanced_vat_invoice/README.rst index 06152fc42..236b04478 100644 --- a/advanced_vat_invoice/README.rst +++ b/advanced_vat_invoice/README.rst @@ -1,29 +1,34 @@ -Advanced VAT Invoice -========================= -* Configure VAT Invoice +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 -Installation -============ -- www.odoo.com/documentation/12.0/setup/install.html -- Install our custom addon +Advanced VAT Invoice +==================== +This module allow us to print vat invoice report and simplified tax invoice +report in arabic language and also this module have an option for generating +qr code and display invoice reports while scanning the QR code. License ------- -GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) -(http://www.gnu.org/licenses/agpl.html) +General Public License, Version 3 (AGPL v3). +https://www.gnu.org/licenses/agpl-3.0-standalone.html + +Configuration +============= +* Select QR code generation method from Configuration --> Settings --> QR Code Company ------- -* 'Cybrosys Techno Solutions `__ +* `Cybrosys Techno Solutions `__ Credits ------- -* Developer: - Athira PS @Cybrosys +Developer: (V16) Athira P S , Contact: odoo@cybrosys.com Contacts -------- * Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com Bug Tracker ----------- @@ -31,9 +36,12 @@ Bugs are tracked on GitHub Issues. In case of trouble, please check there if you Maintainer ========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + This module is maintained by Cybrosys Technologies. -For support and more information, please visit https://www.cybrosys.com +For support and more information, please visit `Our Website `__ Further information =================== diff --git a/advanced_vat_invoice/__init__.py b/advanced_vat_invoice/__init__.py index 51d5297a0..76783a441 100644 --- a/advanced_vat_invoice/__init__.py +++ b/advanced_vat_invoice/__init__.py @@ -1,23 +1,22 @@ # -*- coding: utf-8 -*- -###################################################################################### +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2022-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions()) +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Athira P S (odoo@cybrosys.com) # -# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the Software -# or modified copies of the Software. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # -# 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. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -######################################################################################## +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +############################################################################### from . import models diff --git a/advanced_vat_invoice/__manifest__.py b/advanced_vat_invoice/__manifest__.py index ab41d9f43..03da54716 100644 --- a/advanced_vat_invoice/__manifest__.py +++ b/advanced_vat_invoice/__manifest__.py @@ -1,46 +1,45 @@ # -*- coding: utf-8 -*- -###################################################################################### +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2022-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions()) +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Athira P S (odoo@cybrosys.com) # -# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the Software -# or modified copies of the Software. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # -# 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. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -######################################################################################## +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +############################################################################### { 'name': 'e-Invoicing For Saudi | Saudi VAT Invoice | Saudi Electronic Invoice | Saudi Zatca', 'version': '16.0.1.0.0', - 'summary': 'e-Invoicing For Saudi | Saudi VAT Invoice | Saudi Electronic Invoice | Saudi Zatca', - 'description': 'e-Invoicing For Saudi,Saudi VAT Invoice,Saudi Electronic Invoice,Saudi Zatca,Zatca,Saudi,e-Invoicing', + 'category': 'Accounting', + 'summary': "Module for e-Invoicing For Saudi | Saudi VAT Invoice | Saudi Electronic Invoice | Saudi Zatca", + 'description': "e-Invoicing For Saudi,Saudi VAT Invoice,Saudi Electronic Invoice,Saudi Zatca,Zatca,Saudi,e-Invoicing", 'author': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', 'website': 'https://www.cybrosys.com', 'depends': ['base', 'account'], - 'images': ['static/description/banner.png'], 'data': [ - 'views/qr_config.xml', - 'views/qrcode_in_invoices.xml', - 'report/invoice_pdf.xml', - 'report/vat_invoice_report_template.xml', - 'views/vat_invoice_in_action.xml', - 'report/simplified_tax_report_template.xml' + 'views/res_config_settings_views.xml', + 'views/account_move_views.xml', + 'report/account_move_reports.xml', + 'report/vat_invoice_report_templates.xml', + 'report/simplified_tax_report_templates.xml' ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', 'installable': True, 'application': False, 'auto_install': False, - 'license': 'AGPL-3', } diff --git a/advanced_vat_invoice/doc/RELEASE_NOTES.md b/advanced_vat_invoice/doc/RELEASE_NOTES.md index cf5f8a525..37b849de0 100755 --- a/advanced_vat_invoice/doc/RELEASE_NOTES.md +++ b/advanced_vat_invoice/doc/RELEASE_NOTES.md @@ -1,6 +1,7 @@ ## Module -#### 29.11.2022 +#### 25.08.2023 #### Version 16.0.1.0.0 ##### ADD -- Initial commit + +- Initial Commit for Advanced VAT Invoice diff --git a/advanced_vat_invoice/models/__init__.py b/advanced_vat_invoice/models/__init__.py index b4d3b57dd..c20397c13 100644 --- a/advanced_vat_invoice/models/__init__.py +++ b/advanced_vat_invoice/models/__init__.py @@ -1,24 +1,23 @@ # -*- coding: utf-8 -*- -###################################################################################### +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2022-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions()) +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Athira P S (odoo@cybrosys.com) # -# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the Software -# or modified copies of the Software. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # -# 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. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -######################################################################################## +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . -from . import qr_config -from . import qrcode_in_invoices +############################################################################### +from . import account_move +from . import res_config_settings diff --git a/advanced_vat_invoice/models/qrcode_in_invoices.py b/advanced_vat_invoice/models/account_move.py similarity index 58% rename from advanced_vat_invoice/models/qrcode_in_invoices.py rename to advanced_vat_invoice/models/account_move.py index 7bcf0ded8..455062b6b 100644 --- a/advanced_vat_invoice/models/qrcode_in_invoices.py +++ b/advanced_vat_invoice/models/account_move.py @@ -1,26 +1,31 @@ # -*- coding: utf-8 -*- -###################################################################################### +############################################################################### # # Cybrosys Technologies Pvt. Ltd. # -# Copyright (C) 2022-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions()) +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Athira P S (odoo@cybrosys.com) # -# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the Software -# or modified copies of the Software. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # -# 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. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -######################################################################################## +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . -from odoo import fields, models, api, _ +############################################################################### +from io import BytesIO +import binascii +import pytz + +from odoo import api, fields, models, _ +from odoo.exceptions import UserError +from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT try: import qrcode @@ -30,27 +35,34 @@ try: import base64 except ImportError: base64 = None -from io import BytesIO -import binascii -import pytz -from odoo.exceptions import UserError -from odoo.tools.pycompat import to_text -from odoo.tools import float_is_zero, float_compare, DEFAULT_SERVER_DATETIME_FORMAT -class InheritAccountMove(models.Model): +class AccountMove(models.Model): + """Class for adding new button and a page in account move""" _inherit = 'account.move' - qr = fields.Binary("QR Code", compute='generate_qrcode', store=True) + qr = fields.Binary(string="QR Code", compute='generate_qrcode', store=True, + help="QR code") + qr_button = fields.Boolean(struct="Qr Button", compute="_compute_qr", + help="Is QR button is enable or not") - def timezone(self, userdate): + @api.depends('qr_button') + def _compute_qr(self): + """Compute function for checking the value of a field in settings""" + for record in self: + qr_code = self.env['ir.config_parameter'].sudo().get_param( + 'advanced_vat_invoice.is_qr') + record.qr_button = qr_code == 'True' + def timezone(self, userdate): + """Function to convert a user's date to their timezone.""" tz_name = self.env.context.get('tz') or self.env.user.tz contex_tz = pytz.timezone(tz_name) date_time = pytz.utc.localize(userdate).astimezone(contex_tz) return date_time.strftime(DEFAULT_SERVER_DATETIME_FORMAT) def string_hexa(self, value): + """Convert a string to a hexadecimal representation.""" if value: string = str(value) string_bytes = string.encode("UTF-8") @@ -59,10 +71,12 @@ class InheritAccountMove(models.Model): return hex_value def hexa(self, tag, length, value): + """Generate a hex value with tag, length, and value.""" if tag and length and value: hex_string = self.string_hexa(value) length = int(len(hex_string) / 2) - conversion_table = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'] + conversion_table = ['0', '1', '2', '3', '4', '5', '6', '7', '8', + '9', 'a', 'b', 'c', 'd', 'e', 'f'] hexadecimal = '' while (length > 0): remainder = length % 16 @@ -73,20 +87,25 @@ class InheritAccountMove(models.Model): return tag + hexadecimal + hex_string def qr_code_data(self): - sellername = str(self.company_id.name) + """Generate QR code data for the current record.""" + seller_name = str(self.company_id.name) seller_vat_no = self.company_id.vat or '' - seller_hex = self.hexa("01", "0c", sellername) + seller_hex = self.hexa("01", "0c", seller_name) vat_hex = self.hexa("02", "0f", seller_vat_no) or "" time_stamp = self.timezone(self.create_date) date_hex = self.hexa("03", "14", time_stamp) - total_with_vat_hex = self.hexa("04", "0a", str(round(self.amount_total, 2))) - total_vat_hex = self.hexa("05", "09", str(round(self.amount_tax, 2))) - qr_hex = seller_hex + vat_hex + date_hex + total_with_vat_hex + total_vat_hex + total_with_vat_hex = self.hexa("04", "0a", + str(round(self.amount_total, 2))) + total_vat_hex = self.hexa("05", "09", + str(round(self.amount_tax, 2))) + qr_hex = (seller_hex + vat_hex + date_hex + total_with_vat_hex + + total_vat_hex) encoded_base64_bytes = base64.b64encode(bytes.fromhex(qr_hex)).decode() return encoded_base64_bytes @api.depends('state') def generate_qrcode(self): + """Generate and save QR code after the invoice is posted.""" param = self.env['ir.config_parameter'].sudo() qr_code = param.get_param('advanced_vat_invoice.generate_qr') for rec in self: @@ -107,9 +126,12 @@ class InheritAccountMove(models.Model): qr_image = base64.b64encode(temp.getvalue()) rec.qr = qr_image else: - raise UserError(_('Necessary Requirements To Run This Operation Is Not Satisfied')) + raise UserError( + _('Necessary Requirements To Run This Operation Is ' + 'Not Satisfied')) def generate_qr_button(self): + """Manually generate and save QR code.""" param = self.env['ir.config_parameter'].sudo() qr_code = param.get_param('advanced_vat_invoice.generate_qr') for rec in self: @@ -129,4 +151,6 @@ class InheritAccountMove(models.Model): qr_image = base64.b64encode(temp.getvalue()) rec.qr = qr_image else: - raise UserError(_('Necessary Requirements To Run This Operation Is Not Satisfied')) + raise UserError( + _('Necessary Requirements To Run This Operation Is ' + 'Not Satisfied')) diff --git a/advanced_vat_invoice/models/qr_config.py b/advanced_vat_invoice/models/qr_config.py deleted file mode 100644 index 8762aa72d..000000000 --- a/advanced_vat_invoice/models/qr_config.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -###################################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2022-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions()) -# -# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) -# It is forbidden to publish, distribute, sublicense, or sell copies of the Software -# or modified copies 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. -# -######################################################################################## - -from odoo import fields, models, api - - -class QRCode(models.TransientModel): - _inherit = 'res.config.settings' - - generate_qr = fields.Selection( - [('automatically', 'Generate QR Code when invoice validate/post'), ('manually', 'Manually Generate')]) - is_qr = fields.Boolean("QR Code Generation Configuration") - - @api.model - def get_values(self): - res = super(QRCode, self).get_values() - res.update( - generate_qr=self.env['ir.config_parameter'].sudo().get_param('advanced_vat_invoice.generate_qr'), - is_qr=self.env['ir.config_parameter'].sudo().get_param('advanced_vat_invoice.is_qr'), - ) - return res - - def set_values(self): - super(QRCode, self).set_values() - param = self.env['ir.config_parameter'].sudo() - generate_qr = self.generate_qr and self.generate_qr or False - is_qr = self.is_qr and self.is_qr or False - param.set_param('advanced_vat_invoice.generate_qr', generate_qr) - param.set_param('advanced_vat_invoice.is_qr', is_qr) diff --git a/advanced_vat_invoice/models/res_config_settings.py b/advanced_vat_invoice/models/res_config_settings.py new file mode 100644 index 000000000..3d44c30b5 --- /dev/null +++ b/advanced_vat_invoice/models/res_config_settings.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Athira P S (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . + +############################################################################### +from odoo import api, fields, models + + +class ResConfigSettings(models.TransientModel): + """Class foe adding qr code generation configuration""" + _inherit = 'res.config.settings' + + generate_qr = fields.Selection( + [('automatically', 'Generate QR Code when invoice validate/post'), + ('manually', 'Manually Generate')], string="Generate", + help="Select the way of generating QR code") + is_qr = fields.Boolean(string="QR Code", + help="QR code Generation Configuration") + + @api.model + def get_values(self): + """Get the current configuration values.""" + res = super(ResConfigSettings, self).get_values() + res.update( + generate_qr=self.env['ir.config_parameter'].sudo().get_param( + 'advanced_vat_invoice.generate_qr'), + is_qr=self.env['ir.config_parameter'].sudo().get_param( + 'advanced_vat_invoice.is_qr'), + ) + return res + + def set_values(self): + """Set the configuration values.""" + super(ResConfigSettings, self).set_values() + param = self.env['ir.config_parameter'].sudo() + generate_qr = self.generate_qr and self.generate_qr or False + is_qr = self.is_qr and self.is_qr or False + param.set_param('advanced_vat_invoice.generate_qr', generate_qr) + param.set_param('advanced_vat_invoice.is_qr', is_qr) diff --git a/advanced_vat_invoice/report/account_move_reports.xml b/advanced_vat_invoice/report/account_move_reports.xml new file mode 100644 index 000000000..b616cd8b8 --- /dev/null +++ b/advanced_vat_invoice/report/account_move_reports.xml @@ -0,0 +1,45 @@ + + + + + VAT Invoice + account.move + qweb-pdf + advanced_vat_invoice.vat_template + advanced_vat_invoice.vat_template + + report + + + + VAT Invoice + account.move + qweb-pdf + advanced_vat_invoice.vat_template + advanced_vat_invoice.vat_template + (object._get_report_base_filename()) + + report + + + + Simplified Tax + account.move + qweb-pdf + advanced_vat_invoice.simplified_tax_template + advanced_vat_invoice.simplified_tax_template + + report + + + + Simplified Tax invoice + account.move + qweb-pdf + advanced_vat_invoice.simplified_tax_template + advanced_vat_invoice.simplified_tax_template + (object._get_report_base_filename()) + + report + + diff --git a/advanced_vat_invoice/report/invoice_pdf.xml b/advanced_vat_invoice/report/invoice_pdf.xml deleted file mode 100644 index 0ede8986f..000000000 --- a/advanced_vat_invoice/report/invoice_pdf.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - VAT Invoice - account.move - qweb-pdf - advanced_vat_invoice.vat_template - advanced_vat_invoice.vat_template - - report - - - - Simplified Tax - account.move - qweb-pdf - advanced_vat_invoice.simplified_tax_template - advanced_vat_invoice.simplified_tax_template - - report - - \ No newline at end of file diff --git a/advanced_vat_invoice/report/simplified_tax_report_template.xml b/advanced_vat_invoice/report/simplified_tax_report_template.xml deleted file mode 100644 index f33532694..000000000 --- a/advanced_vat_invoice/report/simplified_tax_report_template.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - diff --git a/advanced_vat_invoice/report/simplified_tax_report_templates.xml b/advanced_vat_invoice/report/simplified_tax_report_templates.xml new file mode 100644 index 000000000..64620ac0f --- /dev/null +++ b/advanced_vat_invoice/report/simplified_tax_report_templates.xml @@ -0,0 +1,155 @@ + + + + + diff --git a/advanced_vat_invoice/report/vat_invoice_report_template.xml b/advanced_vat_invoice/report/vat_invoice_report_template.xml deleted file mode 100644 index cd17361e2..000000000 --- a/advanced_vat_invoice/report/vat_invoice_report_template.xml +++ /dev/null @@ -1,352 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/advanced_vat_invoice/report/vat_invoice_report_templates.xml b/advanced_vat_invoice/report/vat_invoice_report_templates.xml new file mode 100644 index 000000000..ecb992cef --- /dev/null +++ b/advanced_vat_invoice/report/vat_invoice_report_templates.xml @@ -0,0 +1,379 @@ + + + + + diff --git a/advanced_vat_invoice/security/ir.model.access.csv b/advanced_vat_invoice/security/ir.model.access.csv index a49af3466..d039f9a1b 100644 --- a/advanced_vat_invoice/security/ir.model.access.csv +++ b/advanced_vat_invoice/security/ir.model.access.csv @@ -1,2 +1,2 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_report_saudi_vat_invoice_vat_template,report.saudi_vat_invoice.vat_template,model_report_saudi_vat_invoice_vat_template,base.group_user,1,1,1,1 +access_report_saudi_vat_invoice_vat_template,access.report.saudi_vat_invoice.vat_template,model_report_saudi_vat_invoice_vat_template,base.group_user,1,1,1,1 diff --git a/advanced_vat_invoice/static/description/assets/modules/1.png b/advanced_vat_invoice/static/description/assets/modules/1.png index 5238bdeab..028461c15 100644 Binary files a/advanced_vat_invoice/static/description/assets/modules/1.png and b/advanced_vat_invoice/static/description/assets/modules/1.png differ diff --git a/advanced_vat_invoice/static/description/assets/modules/2.png b/advanced_vat_invoice/static/description/assets/modules/2.png index 1ae7cfe3b..4c483c486 100644 Binary files a/advanced_vat_invoice/static/description/assets/modules/2.png and b/advanced_vat_invoice/static/description/assets/modules/2.png differ diff --git a/advanced_vat_invoice/static/description/assets/modules/3.png b/advanced_vat_invoice/static/description/assets/modules/3.png index 3c3ff1afb..489f44e86 100644 Binary files a/advanced_vat_invoice/static/description/assets/modules/3.png and b/advanced_vat_invoice/static/description/assets/modules/3.png differ diff --git a/advanced_vat_invoice/static/description/assets/modules/4.png b/advanced_vat_invoice/static/description/assets/modules/4.png index 3fae4631e..028461c15 100644 Binary files a/advanced_vat_invoice/static/description/assets/modules/4.png and b/advanced_vat_invoice/static/description/assets/modules/4.png differ diff --git a/advanced_vat_invoice/static/description/assets/modules/5.gif b/advanced_vat_invoice/static/description/assets/modules/5.gif deleted file mode 100644 index 2a5f8e659..000000000 Binary files a/advanced_vat_invoice/static/description/assets/modules/5.gif and /dev/null differ diff --git a/advanced_vat_invoice/static/description/assets/modules/5.png b/advanced_vat_invoice/static/description/assets/modules/5.png new file mode 100644 index 000000000..7a17f2667 Binary files /dev/null and b/advanced_vat_invoice/static/description/assets/modules/5.png differ diff --git a/advanced_vat_invoice/static/description/assets/modules/6.png b/advanced_vat_invoice/static/description/assets/modules/6.png index 7f2815273..b3eadb350 100644 Binary files a/advanced_vat_invoice/static/description/assets/modules/6.png and b/advanced_vat_invoice/static/description/assets/modules/6.png differ diff --git a/advanced_vat_invoice/static/description/index.html b/advanced_vat_invoice/static/description/index.html index 093a909be..ed0859d4f 100644 --- a/advanced_vat_invoice/static/description/index.html +++ b/advanced_vat_invoice/static/description/index.html @@ -199,7 +199,7 @@