Electronic invoice KSA - Sales & Purchase | qrcode | ZATCA | vat | e-invoice | tax | Zakat

by
Odoo
v 12.0 Third Party 5 2143
Download for v 12.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Purchase (purchase)
Discuss (mail)
Lines of code 403
Technical Name era_tax_partner
LicenseAGPL-3
Websitehttps://era.net.sa
Versions 14.0 15.0 12.0 13.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Purchase (purchase)
Discuss (mail)
Lines of code 403
Technical Name era_tax_partner
LicenseAGPL-3
Websitehttps://era.net.sa
Versions 14.0 15.0 12.0 13.0

Electronic invoice KSA - Sales & Purchase

Electronic invoice KSA. zatca.gov.sa rules

Initial requirements

As per Saudi Arabia Zakat requlations to apply specific terms to the electronic invoice by 4th of Dec 2021. This module will perform this to your system.

Reference: https://zatca.gov.sa/ar/E-Invoicing/Pages/default.aspx

Requirements: pip3 install qrcode

Sales/Purchase invoice

Final confirmed invoice print

QR Code Validation

تطوير

* اصلاح مشكلة التوقيت التي يحملها الباركود، حيث يحمل توقيت السيرفر

* تعديل الوقت ليكون طبقا لتوقيت السعودية بغض النظر عن المنطقة الزمنية للمستخدم .

* عمل اخفاء لزر "rest to draft" في الفواتير والمرتجعات.

* عمل مجموعة صلاحيات تسندتظهر الزر لطبيعته اذا تم اعطاء الصلاحية لأحد الاشخاص من الادمن.

* تكون مجموعة الصلاحيات افتراضيا غير مسندة لأحد.

* نفس الشيئ مع قيود اليومية ، لكن تكون بمجموعة صلاحيات مختلفة ليتم التفريق بينها وبين الخاصة بالفواتير.

* التقييد مع فواتير البيع والشراء ومرتجعاتهم والقيود.

Contact us

Era Group

https://era.net.sa
info@era.net.sa

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
There are no ratings yet!
Odoo V 12
by
Mohamed Fahmy Mohammed
on 12/16/21, 10:49 AM
Odoo Server Error
Traceback (most recent call last):
  File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_account_report_invoice_document_with_payments_201
  File "<template>", line 1, in body_call_content_200
  File "/opt/odoo12/odoo-custom-addons/era_tax_partner/models/partner.py", line 101, in generate_qr_code
    qr.add_data(self.get_qr_code_data())
  File "/opt/odoo12/odoo-custom-addons/era_tax_partner/models/partner.py", line 87, in get_qr_code_data
    qr_hex = seller_hex + vat_hex + date_hex + total_with_vat_hex + total_vat_hex
TypeError: can only concatenate str (not "NoneType") to str

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo12/odoo/addons/web/controllers/main.py", line 1686, in report_download
    response = self.report_routes(reportname, docids=docids, converter=converter)
  File "/opt/odoo12/odoo/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo12/odoo/addons/web/controllers/main.py", line 1627, in report_routes
    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
  File "/opt/odoo12/odoo/odoo/addons/base/models/ir_actions_report.py", line 730, in render_qweb_pdf
    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]
  File "/opt/odoo12/odoo/odoo/addons/base/models/ir_actions_report.py", line 770, in render_qweb_html
    return self.render_template(self.report_name, data), 'html'
  File "/opt/odoo12/odoo/odoo/addons/base/models/ir_actions_report.py", line 543, in render_template
    return view_obj.render_template(template, values)
  File "/opt/odoo12/odoo/odoo/addons/base/models/ir_ui_view.py", line 1338, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/opt/odoo12/odoo/addons/web_editor/models/ir_ui_view.py", line 29, in render
    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)
  File "/opt/odoo12/odoo/odoo/addons/base/models/ir_ui_view.py", line 1347, in render
    return self.env[engine].render(self.id, qcontext)
  File "/opt/odoo12/odoo/odoo/addons/base/models/ir_qweb.py", line 59, in render
    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 275, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 350, in _compiled_fn
    raise e
  File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_561_146
  File "<template>", line 2, in body_call_content_145
  File "<template>", line 3, in foreach_144
  File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 355, in _compiled_fn
    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.models.qweb.QWebException: can only concatenate str (not "NoneType") to str
Traceback (most recent call last):
  File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_account_report_invoice_document_with_payments_201
  File "<template>", line 1, in body_call_content_200
  File "/opt/odoo12/odoo-custom-addons/era_tax_partner/models/partner.py", line 101, in generate_qr_code
    qr.add_data(self.get_qr_code_data())
  File "/opt/odoo12/odoo-custom-addons/era_tax_partner/models/partner.py", line 87, in get_qr_code_data
    qr_hex = seller_hex + vat_hex + date_hex + total_with_vat_hex + total_vat_hex
TypeError: can only concatenate str (not "NoneType") to str

Error to render compiling AST
TypeError: can only concatenate str (not "NoneType") to str
Template: account.report_invoice_document_with_payments
Path: /templates/t/t/div/div[3]/div/div/table/tbody/tr/td[1]/div/t
Node: <t t-esc="o.generate_qr_code()"/>
                                            
Re: Odoo V 12
by
Yaser
on 12/17/21, 2:11 AM Author

Could be a conflict with another custom modules. Please test it in a new DB.


by
abalbara@gmail.com
on 11/25/21, 11:08 AM
  File "/odoo/custom/addons12/era_tax_partner/models/partner.py", line 87, in get_qr_code_data
    qr_hex = seller_hex + vat_hex + date_hex + total_with_vat_hex + total_vat_hex
TypeError: must be str, not NoneType

Error to render compiling AST
TypeError: must be str, not NoneType
Template: account.report_invoice_document_with_payments
Path: /templates/t/t/div/div[3]/div/div/table/tbody/tr/td[1]/div/t
Node: <t t-esc="o.generate_qr_code()"/>
Re:
by
Yaser
on 12/17/21, 2:12 AM Author

Could be a conflict with other custom modules. Please test it in a new DB.