Browse Source

Jan 01 [ADD] : Initial Commit 'advanced_vat_invoice'

pull/254/merge
AjmalCybro 4 months ago
parent
commit
9ed2d4153d
  1. 52
      advanced_vat_invoice/README.rst
  2. 22
      advanced_vat_invoice/__init__.py
  3. 48
      advanced_vat_invoice/__manifest__.py
  4. 8
      advanced_vat_invoice/doc/RELEASE_NOTES.md
  5. 23
      advanced_vat_invoice/models/__init__.py
  6. 174
      advanced_vat_invoice/models/account_move.py
  7. 55
      advanced_vat_invoice/models/res_config_settings.py
  8. 45
      advanced_vat_invoice/report/account_move_reports.xml
  9. 157
      advanced_vat_invoice/report/simplified_tax_report_templates.xml
  10. 378
      advanced_vat_invoice/report/vat_invoice_report_templates.xml
  11. 2
      advanced_vat_invoice/security/ir.model.access.csv
  12. BIN
      advanced_vat_invoice/static/description/assets/icons/check.png
  13. BIN
      advanced_vat_invoice/static/description/assets/icons/chevron.png
  14. BIN
      advanced_vat_invoice/static/description/assets/icons/cogs.png
  15. BIN
      advanced_vat_invoice/static/description/assets/icons/consultation.png
  16. BIN
      advanced_vat_invoice/static/description/assets/icons/ecom-black.png
  17. BIN
      advanced_vat_invoice/static/description/assets/icons/education-black.png
  18. BIN
      advanced_vat_invoice/static/description/assets/icons/hotel-black.png
  19. BIN
      advanced_vat_invoice/static/description/assets/icons/license.png
  20. BIN
      advanced_vat_invoice/static/description/assets/icons/lifebuoy.png
  21. BIN
      advanced_vat_invoice/static/description/assets/icons/manufacturing-black.png
  22. BIN
      advanced_vat_invoice/static/description/assets/icons/pos-black.png
  23. BIN
      advanced_vat_invoice/static/description/assets/icons/puzzle.png
  24. BIN
      advanced_vat_invoice/static/description/assets/icons/restaurant-black.png
  25. BIN
      advanced_vat_invoice/static/description/assets/icons/service-black.png
  26. BIN
      advanced_vat_invoice/static/description/assets/icons/trading-black.png
  27. BIN
      advanced_vat_invoice/static/description/assets/icons/training.png
  28. BIN
      advanced_vat_invoice/static/description/assets/icons/update.png
  29. BIN
      advanced_vat_invoice/static/description/assets/icons/user.png
  30. BIN
      advanced_vat_invoice/static/description/assets/icons/wrench.png
  31. BIN
      advanced_vat_invoice/static/description/assets/misc/categories.png
  32. BIN
      advanced_vat_invoice/static/description/assets/misc/check-box.png
  33. BIN
      advanced_vat_invoice/static/description/assets/misc/compass.png
  34. BIN
      advanced_vat_invoice/static/description/assets/misc/corporate.png
  35. BIN
      advanced_vat_invoice/static/description/assets/misc/customer-support.png
  36. BIN
      advanced_vat_invoice/static/description/assets/misc/cybrosys-logo.png
  37. BIN
      advanced_vat_invoice/static/description/assets/misc/features.png
  38. BIN
      advanced_vat_invoice/static/description/assets/misc/logo.png
  39. BIN
      advanced_vat_invoice/static/description/assets/misc/pictures.png
  40. BIN
      advanced_vat_invoice/static/description/assets/misc/pie-chart.png
  41. BIN
      advanced_vat_invoice/static/description/assets/misc/right-arrow.png
  42. BIN
      advanced_vat_invoice/static/description/assets/misc/star.png
  43. BIN
      advanced_vat_invoice/static/description/assets/misc/support.png
  44. BIN
      advanced_vat_invoice/static/description/assets/misc/whatsapp.png
  45. BIN
      advanced_vat_invoice/static/description/assets/modules/1.png
  46. BIN
      advanced_vat_invoice/static/description/assets/modules/2.png
  47. BIN
      advanced_vat_invoice/static/description/assets/modules/3.png
  48. BIN
      advanced_vat_invoice/static/description/assets/modules/4.png
  49. BIN
      advanced_vat_invoice/static/description/assets/modules/5.png
  50. BIN
      advanced_vat_invoice/static/description/assets/modules/6.png
  51. BIN
      advanced_vat_invoice/static/description/assets/screenshots/1.png
  52. BIN
      advanced_vat_invoice/static/description/assets/screenshots/2.png
  53. BIN
      advanced_vat_invoice/static/description/assets/screenshots/3.png
  54. BIN
      advanced_vat_invoice/static/description/assets/screenshots/4.png
  55. BIN
      advanced_vat_invoice/static/description/assets/screenshots/5.png
  56. BIN
      advanced_vat_invoice/static/description/assets/screenshots/6.png
  57. BIN
      advanced_vat_invoice/static/description/assets/screenshots/hero.gif
  58. BIN
      advanced_vat_invoice/static/description/banner.png
  59. BIN
      advanced_vat_invoice/static/description/icon.png
  60. 655
      advanced_vat_invoice/static/description/index.html
  61. 32
      advanced_vat_invoice/views/account_move_views.xml
  62. 34
      advanced_vat_invoice/views/res_config_settings_views.xml

52
advanced_vat_invoice/README.rst

@ -0,0 +1,52 @@
.. 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
e-Invoicing For Saudi |Saudi VAT Invoice |Saudi Electronic Invoice | Saudi Zatca
================================================================================
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
-------
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 <https://cybrosys.com/>`__
Credits
-------
Developer:
(V15) Jumana Haseen,
(V16) Athira P S
Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if
your issue has already been reported.
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 `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
advanced_vat_invoice/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (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 <https://www.gnu.org/licenses/>.
###############################################################################
from . import models

48
advanced_vat_invoice/__manifest__.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (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 <https://www.gnu.org/licenses/>.
###############################################################################
{
'name': 'e-Invoicing For Saudi | Saudi VAT Invoice | Saudi '
'Electronic Invoice | Saudi Zatca',
'version': '15.0.1.0.0',
'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',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['base', 'account'],
'data': [
'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,
}

8
advanced_vat_invoice/doc/RELEASE_NOTES.md

@ -0,0 +1,8 @@
## Module <advanced_vat_invoice>
#### 14.05.2024
#### Version 15.0.1.0.0
##### ADD
- Initial Commit for e-Invoicing For Saudi | Saudi VAT Invoice | Saudi '
'Electronic Invoice | Saudi Zatca

23
advanced_vat_invoice/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (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 <https://www.gnu.org/licenses/>.
###############################################################################
from . import account_move
from . import res_config_settings

174
advanced_vat_invoice/models/account_move.py

@ -0,0 +1,174 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (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 <https://www.gnu.org/licenses/>.
###############################################################################
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
except ImportError:
qrcode = None
try:
import base64
except ImportError:
base64 = None
class AccountMove(models.Model):
"""Class for adding new button and a page in account move"""
_inherit = 'account.move'
qr = fields.Binary(string="QR Code", compute='generate_qrcode', store=True,
help="QR code")
qr_button = fields.Boolean(string="Qr Button", compute="_compute_qr",
help="Is QR button is enable or not")
qr_page = fields.Boolean(string="Qr Page", compute="_compute_qr",
help="Is QR page is enable or not")
@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')
qr_code_generate_method = self.env[
'ir.config_parameter'].sudo().get_param(
'advanced_vat_invoice.generate_qr')
record.qr_button = True if qr_code and qr_code_generate_method == 'manually' else False
record.qr_page = True if (qr_code and record.state in ['posted',
'cancelled']
and qr_code_generate_method == 'manually'
or qr_code_generate_method == 'automatically') \
else False
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")
encoded_hex_value = binascii.hexlify(string_bytes)
hex_value = encoded_hex_value.decode("UTF-8")
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']
hexadecimal = ''
while (length > 0):
remainder = length % 16
hexadecimal = conversion_table[remainder] + hexadecimal
length = length // 16
if len(hexadecimal) == 1:
hexadecimal = "0" + hexadecimal
return tag + hexadecimal + hex_string
def qr_code_data(self):
"""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", 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)
amount_total = self.currency_id._convert(
self.amount_total,
self.env.ref('base.SAR'),
self.env.company, self.invoice_date or fields.Date.today())
total_with_vat_hex = self.hexa("04", "0a",
str(round(amount_total, 2)))
amount_tax = self.currency_id._convert(
self.amount_tax,
self.env.ref('base.SAR'),
self.env.company, self.invoice_date or fields.Date.today())
total_vat_hex = self.hexa("05", "09",
str(round(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:
if rec.state == 'posted':
if qrcode and base64:
if qr_code == 'automatically':
qr = qrcode.QRCode(
version=4,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=4,
border=1,
)
qr.add_data(self._origin.qr_code_data())
qr.make(fit=True)
img = qr.make_image()
temp = BytesIO()
img.save(temp, format="PNG")
qr_image = base64.b64encode(temp.getvalue())
rec.qr = qr_image
else:
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:
if qrcode and base64:
if qr_code == 'manually':
qr = qrcode.QRCode(
version=4,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=4,
border=1,
)
qr.add_data(self.qr_code_data())
qr.make(fit=True)
img = qr.make_image()
temp = BytesIO()
img.save(temp, format="PNG")
qr_image = base64.b64encode(temp.getvalue())
rec.qr = qr_image
else:
raise UserError(
_('Necessary Requirements To Run This Operation Is '
'Not Satisfied'))

55
advanced_vat_invoice/models/res_config_settings.py

@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jumana Haseen (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 <https://www.gnu.org/licenses/>.
###############################################################################
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().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().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)

45
advanced_vat_invoice/report/account_move_reports.xml

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- VAT Invoice Report -->
<record id="action_report_vat_report" model="ir.actions.report">
<field name="name">VAT Invoice</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">advanced_vat_invoice.vat_template</field>
<field name="report_file">advanced_vat_invoice.vat_template</field>
<field name="binding_model_id" eval="False"/>
<field name="binding_type">report</field>
</record>
<!-- Report action for VAT invoice report-->
<record id="action_vat_invoice" model="ir.actions.report">
<field name="name">VAT Invoice</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">advanced_vat_invoice.vat_template</field>
<field name="report_file">advanced_vat_invoice.vat_template</field>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_type">report</field>
</record>
<!-- Simplified Tax Report -->
<record id="action_report_simplified_report" model="ir.actions.report">
<field name="name">Simplified Tax</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">advanced_vat_invoice.simplified_tax_template</field>
<field name="report_file">advanced_vat_invoice.simplified_tax_template</field>
<field name="binding_model_id" eval="False"/>
<field name="binding_type">report</field>
</record>
<!-- Report action for simplified VAT invoice report-->
<record id="action_tax_invoice" model="ir.actions.report">
<field name="name">Simplified Tax invoice</field>
<field name="model">account.move</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">advanced_vat_invoice.simplified_tax_template</field>
<field name="report_file">advanced_vat_invoice.simplified_tax_template</field>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_type">report</field>
</record>
</odoo>

157
advanced_vat_invoice/report/simplified_tax_report_templates.xml

@ -0,0 +1,157 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Template for simplified tax report-->
<template id="simplified_tax_template">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="doc">
<div class="page">
<h4>
<center>
<span class="text-right">فاتورة ضريبية مبسطة
</span>
<br/>
<span>Simplified Tax Invoice</span>
</center>
</h4>
</div>
<br/>
<div>
<div style="float:left !important;">
<span>Invoice Number :</span>
<t t-esc="doc.name"/>
<br/>
<span>Issue Date:</span>
<t t-esc="doc.invoice_date"/>
</div>
<div style="float:right !important;">
<img t-attf-src="data:image/png;base64, {{doc.qr}}"/>
</div>
</div>
<br/>
<table style="border:2pt solid grey;width:100%;color:black;"
class="table-condensed">
<thead>
<tr style="background-color:#DCDCDC">
<td width="40%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
Description
<br/>
<span class="description">تفاصيل السلع أو
الخدمات
</span>
</td>
<td width="20%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
Unit Price
<br/>
<span class="unit_price">سعر الوحدة</span>
</td>
<td width="20%"
style="border:2pt solid grey;text-align:center;padding:2pt;width:7%">
Quantity
<br/>
<span class="qty"/>
الكمية
</td>
<td width="20%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
Total
<br/>
(excl.vat)
<br/>
<span class="total">المجموع (شامل ضريبة
القيمة المضافة)
</span>
</td>
</tr>
</thead>
<t t-set="tax_total" t-value="0"/>
<tbody class="invoice_line">
<tr t-foreach="doc.invoice_line_ids" t-as="line">
<t t-set="line_tax_total" t-value="0"/>
<t t-foreach="line.tax_ids" t-as="tax">
<t t-set="tax_total"
t-value="tax_total + line.price_subtotal* tax.amount/100"/>
<t t-set="line_tax_total"
t-value="line_tax_total + tax.amount"/>
</t>
<td style="border-right:2pt solid grey;text-align:center;padding:3pt">
<span t-field="line.name"/>
<br/>
</td>
<td style="border-right:2pt solid grey;text-align:center;padding:3pt">
<span t-field="line.price_unit" t-options='{" widget": "monetary", "
display_currency": doc.currency_id}'/>
</td>
<td style="border-right:2pt solid grey;text-align:center;padding:3pt">
<span t-esc="'%.2f %s '%(line.quantity,line.product_uom_id.name)"/>
</td>
<td style="border-right:2pt solid grey;text-align:center;padding:3pt">
<span t-field="line.price_subtotal"
t-options='{" widget": "monetary", "
display_currency": doc.currency_id}'/>
</td>
</tr>
</tbody>
</table>
<br/>
<table style="border:2pt solid grey;width:100%;color:black;"
class="table table-bordered table-sm">
<thead>
<tr>
<td width="40%"
style="font-weight: bold;text-align:left;padding:2pt">
Total Taxable
Amount (excl. VAT)
</td>
<td class="amount" width="40%"
style="text-align:right;padding:2pt">إجمالي
المبلغ
الخاضع للضريبة (غير شامل ضريبة القيمة
المضافة)
</td>
<td width="40%"
style="text-align:right;padding:2pt"
class="text-right">
<span t-esc="doc.currency_id.symbol"/>
<span t-esc="doc.amount_untaxed"/>
</td>
</tr>
<tr>
<td style="font-weight: bold;text-align:left;padding:3pt">
Total VAT
</td>
<td class="total"
style="text-align:right;padding:3pt">مجموع
ضريبة القيمة المضافة
</td>
<td style="text-align:right;padding:3pt"
class="text-right">
<span t-esc="tax_total"/>
</td>
</tr>
<tr>
<td style="font-weight: bold;text-align:left;padding:3pt">
Amount Due
</td>
<td class="due"
style="text-align:right;padding:3pt">اجمالي
المبلغ المستحق
</td>
<td style="text-align:right;padding:3pt"
class="text-right">
<span t-esc="doc.currency_id.symbol"/>
<span t-esc="doc.amount_residual"/>
</td>
</tr>
</thead>
</table>
<br/>
</t>
</t>
</t>
</template>
</odoo>

378
advanced_vat_invoice/report/vat_invoice_report_templates.xml

@ -0,0 +1,378 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--Template for VAT invoice report-->
<template id="vat_template">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="doc">
<div class="page">
<h4>
<center>
<span class="text-right">فاتورة ضريبية مبسطة
</span>
<br/>
<span>VAT Invoice</span>
</center>
</h4>
</div>
<div>
<table>
<tr style="border:2pt solid grey;">
<td width="16%">
<span/>Invoice Number
</td>
<td width="16%">
<span>رقم الفاتورة</span>
</td>
<td width="16%">
<t t-esc="doc.name"/>
</td>
</tr>
<br/>
</table>
</div>
<br/>
<div class="row mt32 mb32">
<div class="col-9" style="color:black; ">
<table style="border:2pt solid grey;width:100%;padding:10pt;color:black;"
class="table table-bordered table-sm">
<tr>
<td style="font-weight:bold; width:25%;">
Invoice Issue Date:
</td>
<td class="issue"
style="width:25%; text-align:right;">
رقم الفاتورة
</td>
<td style="width:30%; text-align:center;">
<t t-esc="doc.invoice_date"/>
</td>
</tr>
<tr>
<td style="font-weight:bold; width:25%;">
Due Date:
</td>
<td class="due"
style="width:25%; text-align:right;">
تاريخ الاستحقاق
</td>
<td style="width:30%; text-align:center;">
<t t-esc="doc.invoice_payment_term_id.name"/>
</td>
</tr>
</table>
<br/>
</div>
<div class="col-3"
style="margin-top: -8pt; padding-left:30pt;">
<img t-attf-src="data:image/png;base64, {{doc.qr}}"/>
</div>
</div>
<br/>
<table style="border:2pt solid grey;width:100%;color:black; margin-top:0pt; color:black;"
class="table-condensed">
<thead>
<tr style="background-color:#DCDCDC">
<td width="15%"
style="border:2pt solid grey;text-align:center;padding:2pt; ">
seller
</td>
<td width="15%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
تاجر
</td>
<td width="20%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
</td>
<td width="15%"
style="border:2pt solid grey;text-align:center;padding:2pt; ">
Buyer
</td>
<td width="15%"
style="border:2pt solid grey;text-align:center;padding:2pt; ">
مشتر
</td>
<td width="20%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
</td>
</tr>
</thead>
<tr>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Name:
</td>
<td width="15%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
اسم
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.name"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<span>Name:</span>
</td>
<td width="15%"
style="border:2pt solid grey;text-align:center;padding:2pt;">
اسم
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.name"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Street Name:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
اسم الشارع
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.street"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Street Name:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
اسم الشارع
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.street"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center; width:10%;padding:2pt">
District:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
منطقة
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.city"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
District:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
منطقة
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.city"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center;padding:2pt;width:8%">
State:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
حالة
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.state_id.name"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
State:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
حالة
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.state_id.name"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center; width:10%;padding:2pt">
Country:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
بلد
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.country_id.name"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Country:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
بلد
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.country_id.name"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
PIN Code:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
الرمز البريدي
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.zip"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
PIN Code:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
الرمز البريدي
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.zip"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Phone Number:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
رقم الهاتف
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.phone"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Phone Number:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
رقم الهاتف
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.phone"/>
</td>
</tr>
<tr>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
VAT Number:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
ظريبه الشراء
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.company_id.vat"/>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
VAT Number:
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
ظريبه الشراء
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
<t t-esc="doc.partner_id.vat"/>
</td>
</tr>
</table>
<br/>
<table style="border:2pt solid grey;width:100%; height: 23px;color:black; margin-top:10pt;"
class="table-condensed table-sm">
<tr>
<td style="padding:2pt;margin:0pt;font-weight: bold;text-align:center;">
<span class="text-right arabic">Order Line
Items/البنود
</span>
</td>
</tr>
</table>
<table style="border:2pt solid grey;width:100%;color:black; margin-top:0pt; color:black;"
class="table-condensed">
<thead>
<tr style="background-color:#DCDCDC">
<td width="20%"
style="border:2pt solid grey;text-align:center;padding:2pt; ">
product Name
<br/>
<span class="product">تفاصيل السلع أو
الخدمات
</span>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Unit Price
<br/>
<span class="price">سعر الوحدة</span>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;width:7%">
Quantity
<br/>
<span class="qty">الكمية</span>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Tax Amount
<br/>
<span class="tax">المبلغ الخاضع للضريبة
</span>
</td>
<td style="border:2pt solid grey;text-align:center; width:10%;padding:2pt">
Discount Price
<br/>
<span class="discount">خصومات</span>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;width:8%">
Tax Rate
<br/>
<span class="tax_rate">نسبة الضريبة</span>
</td>
<td style="border:2pt solid grey;text-align:center; width:10%;padding:2pt">
Tax Amount
<br/>
<span class="amount">مبلغ الضريبة</span>
</td>
<td style="border:2pt solid grey;text-align:center;padding:2pt;">
Subtotal
<br/>
(excl.vat)
<br/>
<span class="sub_total">المجموع (شامل ضريبة
القيمة المضافة)
</span>
</td>
</tr>
</thead>
<t t-set="tax_total" t-value="0"/>
<t t-set="discount_total" t-value="0"/>
<tbody class="invoice_line">
<tr t-foreach="doc.invoice_line_ids" t-as="line">
<t t-set="line_tax_total" t-value="0"/>
<t t-foreach="line.tax_ids" t-as="tax">
<t t-set="tax_total"
t-value="tax_total + line.price_subtotal* tax.amount/100"/>
<t t-set="line_tax_total"
t-value="line_tax_total + tax.amount"/>
</t>
<t t-set="discount_total"
t-value="discount_total + ((line.price_unit * line.quantity) - line.price_subtotal)"/>
<td style="border-right:2pt solid grey;padding:3pt">
<span t-field="line.name"/>
<br/>
</td>
<td style="border-right:2pt solid grey;text-align:right;padding:3pt">
<span t-field="line.price_unit"/>
</td>
<td style="border-right:2pt solid grey;text-align:center;padding:3pt">
<span t-esc="'%.2f %s '%(line.quantity,line.product_uom_id.name)"/>
</td>
<td style="padding:2pt;border-right:2pt solid grey;text-align:right;">
<sapn t-esc="line.price_unit * line.quantity"/>
</td>
<td style="border-right:2pt solid grey;text-align:right;padding:3pt;">
<span t-field="line.discount"/>%
</td>
<td style="border-right:2pt solid grey;padding:2pt;text-align:center;">
<t t-foreach="line.tax_ids" t-as="tax">
<span t-esc="'%.2f'%(tax.amount)"/>%
</t>
<span t-if="not line.tax_ids">0.0 %</span>
</td>
<td style="padding:2pt;border-right:2pt solid grey;text-align:right;">
<t t-set="line_tax_total"
t-value="line.price_subtotal*line_tax_total/100"/>
<sapn t-esc="line_tax_total"/>
</td>
<td style="border-right:2pt solid grey;text-align:right;padding:3pt">
<span t-field="line.price_subtotal"/>
</td>
</tr>
</tbody>
</table>
</t>
</t>
</t>
</template>
</odoo>

2
advanced_vat_invoice/security/ir.model.access.csv

@ -0,0 +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,access.report.saudi_vat_invoice.vat_template,model_report_saudi_vat_invoice_vat_template,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 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

BIN
advanced_vat_invoice/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
advanced_vat_invoice/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
advanced_vat_invoice/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
advanced_vat_invoice/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
advanced_vat_invoice/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
advanced_vat_invoice/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
advanced_vat_invoice/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
advanced_vat_invoice/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
advanced_vat_invoice/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
advanced_vat_invoice/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
advanced_vat_invoice/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
advanced_vat_invoice/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
advanced_vat_invoice/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
advanced_vat_invoice/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
advanced_vat_invoice/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
advanced_vat_invoice/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
advanced_vat_invoice/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
advanced_vat_invoice/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
advanced_vat_invoice/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
advanced_vat_invoice/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
advanced_vat_invoice/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
advanced_vat_invoice/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
advanced_vat_invoice/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
advanced_vat_invoice/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
advanced_vat_invoice/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
advanced_vat_invoice/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
advanced_vat_invoice/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
advanced_vat_invoice/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
advanced_vat_invoice/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
advanced_vat_invoice/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
advanced_vat_invoice/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

655
advanced_vat_invoice/static/description/index.html

@ -0,0 +1,655 @@
<div class="container"
style="padding: 1rem !important; margin-bottom: 1rem !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between"
style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png"
style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="background-color: #875A7B; !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="background-color: #017E84; !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
</div>
</div>
<div class="container" style="padding: 0rem 1.5rem 4rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
e-Invoicing For Saudi | Saudi VAT Invoice | Saudi Electronic Invoice | Saudi Zatca</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Advanced Way Of Creating Saudi VAT Invoice Report in Pdf Format .
</p>
<img src="./assets/screenshots/hero.gif" class="img-responsive"
width="100%" height="auto"/>
</div>
</div>
<div class="row">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
<div class="row">
<div class="col-md-6">
<a href="#overview"
style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features"
style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots"
style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right"
style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
e-Invoicing For Saudi | Saudi VAT Invoice | Saudi Electronic Invoice | Saudi Zatca module is an advanced way of creating Saudi VAT invoice report in pdf format .
This module helps the user to download VAT invoice report and also able to scan the qr code and display the details.
</p>
</div>
</p>
</div>
<div class="row" id="features">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Create VAT invoice report manually or automatically.</h4>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Download VAT invoice report and also Simplified Tax invoice report.</h4>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Can view the details while scanning the QR.</h4>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12"
style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Accounting --> Configuration --> Settings --> QR Code
</h3>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Select any one among the QR code Generation method.
</p>d action and
the scheduled action will run in every 1 day.</p>
<img src="assets/screenshots/1.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
If we choose Manually,QR code generate manually after click on the Generate QR button.
</h3>
<img src="assets/screenshots/2.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
If we choose Automatically , QR code generate automatically after the invoice is being posted.
</h3>
<img src="assets/screenshots/3.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Can download VAT invoice report and Simplified Tax invoice report from print button,here we can display all details in Arabic language.
</h3>
<img src="assets/screenshots/4.png"
class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-3">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Encoded QR Code Scan Result.</h3>
<img src="assets/screenshots/5.png"
class="img-responsive img-thumbnail border"
width="100%"
height="auto"/>
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-inner">
<div class="carousel-item active"
style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/account_recurring_payments/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/dynamic_accounts_report/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/invoice_format_editor/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/invoice_format_editor/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/import_bank_statement_odoo/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/advance_cash_flow_statements/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1"
data-slide="prev"
style="left:-25px;width: 35px;color: #000;">
<span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span> </a>
<a class="carousel-control-next" href="#demo1"
data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png"
class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12"
style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707"
target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-whatsapp mr-2"></i>+91 86068
27707</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row"
style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center"
style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png"
width="200px" height="auto"/>
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

32
advanced_vat_invoice/views/account_move_views.xml

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Account move views for adding a field-->
<record id="view_move_form" model="ir.ui.view">
<field name="name">
account.move.view.form.inherit.advanced.vat.invoice
</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@id='other_tab']" position="after">
<page string="QR Code"
attrs="{'invisible': [('qr_page', '!=', True)]}">
<group>
<group>
<label for="qr"/>
<field name="qr" widget='image' nolabel="1"
attrs="{'invisible': [('state', '!=', 'posted')]}"/>
<field name="qr_button" invisible="1"/>
<field name="qr_page" invisible="1"/>
</group>
</group>
</page>
</xpath>
<xpath expr="header" position="inside">
<button name="generate_qr_button" string="Generate QR"
type="object"
attrs="{'invisible': ['|',('qr_button', '=', False),('state', '!=', 'posted')]}"/>
</xpath>
</field>
</record>
</odoo>

34
advanced_vat_invoice/views/res_config_settings_views.xml

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Res config settings view for adding new boolean fields-->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">
res.config.settings.view.form.inherit.advanced.vat.invoice
</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='account_vendor_bills']" position="after">
<h2>QR Code</h2>
<div class="row mt16 o_settings_container" id="account_qr">
<div class="col-xs-12 col-md-6 o_setting_box" id="show_qr">
<div class="o_setting_left_pane">
<field name="is_qr"/>
</div>
<div class="o_setting_right_pane" name="is_qr_right">
<label for="is_qr"/>
<div class="text-muted">
QR Code Generation Method
</div>
<br/>
<div id="qr_code" class="content-group">
<field name="generate_qr" widget="radio"
attrs="{'invisible': [('is_qr', '=', False)]}"/>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save