Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
91153f4
[15.0][EDIT] rename module from odoo_etax_inet
TheerayutEncoder Oct 8, 2023
7e04a64
[15.0][IMP] edit variable name
TheerayutEncoder Oct 8, 2023
ad9c3f8
[15.0][IMP] update case credit/debit note
TheerayutEncoder Oct 9, 2023
6701b38
[15.0][ADD] Add replacement doc
TheerayutEncoder Oct 9, 2023
840f8ef
[15.0][ADD] purpose code data
TheerayutEncoder Oct 9, 2023
45d3d3a
update feature
TheerayutEncoder Oct 11, 2023
e1173c9
[15.0][ADD] footer additional information
TheerayutEncoder Oct 11, 2023
373b5dc
[15.0][UDP] update domain for doctype template
TheerayutEncoder Oct 16, 2023
ca96133
add payment ref
TheerayutEncoder Oct 18, 2023
5f63554
Update domain doctype and text footer in form
TheerayutEncoder Oct 23, 2023
2be22e8
[15.0][IMP] default doc template for replacement
TheerayutEncoder Oct 24, 2023
133cb2b
[15.0][FIX] account_debit_note
TheerayutEncoder Oct 27, 2023
bb330cf
[15.0][ADD] send mail config
TheerayutEncoder Oct 27, 2023
6ba4ebb
ENH Job to update processing document
kittiu Oct 29, 2023
add1cbf
Small ENH
kittiu Oct 30, 2023
30479b1
Add run by job
kittiu Oct 30, 2023
d94ce52
/
kittiu Oct 31, 2023
5b10dfd
/
kittiu Nov 1, 2023
0aad9f5
Simpler API
kittiu Nov 2, 2023
f95fb2d
Bug fixing
kittiu Nov 3, 2023
ab3a847
Fix bug
kittiu Nov 3, 2023
6df616b
/
kittiu Nov 9, 2023
f585dff
Multi selection to sign eTax
kittiu Nov 15, 2023
f5414f2
/
kittiu Nov 15, 2023
7ea9896
Add Sign eTax option in account.payment
kittiu Nov 19, 2023
62f9449
Fix problem with Debit Note
kittiu Nov 22, 2023
7ac15b5
Correct ETAX cron doall = False
kittiu Nov 26, 2023
93db4d9
Show server url on signing wizard
kittiu Nov 29, 2023
4c4f90f
Add replacement lock date
kittiu Nov 30, 2023
d245324
[FIX] pre-commit
Saran440 Dec 8, 2023
17bd1e4
[FIX] Create replacement etax with include business field
Feb 19, 2024
f495b32
Update account_move.py
Feb 19, 2024
7cded63
[FIX] pre-commit
Saran440 Apr 11, 2024
2588932
[UPD] copier pre-commit
Nov 14, 2024
3861d94
[UPD] frappe_etax_service: add readme and edit docline product_code
TheerayutEncoder Nov 30, 2024
55d6429
[IMP] for support in case of no tax
TheerayutEncoder Dec 30, 2024
1d74ee1
[FIX] frappe_etax_service: change position page and support case no t…
Saran440 Jan 3, 2025
d45a14f
[IMP] Display etax info and etax button in case no tax
TheerayutEncoder Jan 4, 2025
3754998
[ADD] Create replacement etax receipt
TheerayutEncoder Jan 15, 2025
08dc553
[FIX] pylint
TheerayutEncoder Jan 15, 2025
f0f1667
[FIX] rerun pre-commit
TheerayutEncoder Jan 15, 2025
d3f76b1
[IMP] frappe_etax_service: create credit note from payment
TheerayutEncoder Mar 20, 2025
570eab9
[UPD] Update frappe_etax_service.pot
Apr 11, 2025
a175223
[FIX] update processing and error logs
Saran440 May 13, 2025
eb76bcd
[UPD] Update frappe_etax_service.pot
May 13, 2025
9a1bd14
[BOT] post-merge updates
Saran440 May 13, 2025
eec1446
[IMP] frappe_etax_service: pre-commit auto fixes
Saran440 Jun 27, 2025
e68b726
[MIG] frappe_etax_service: Migration to 18.0
Saran440 Jun 27, 2025
4fe0ee4
[FIX] code improved
Saran440 Jun 30, 2025
0f1d864
[IMP] purpose code combine field to selection
Saran440 Jul 3, 2025
65f90cb
[DEL] replace res_model to origin_ref on wizard
Saran440 Jul 4, 2025
4e2ea70
[FIX] no create purpose code
Saran440 Jul 7, 2025
a13d222
Merge branch '18.0' of https://github.com/ecosoft-odoo/ecosoft-addons…
Saran440 Jul 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions frappe_etax_service/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
================================
Connector to Frappe eTax service
================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5e8996257681633fff822829608ef5b6b6d90d930302fc77362e0b13c90365a8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-ecosoft--odoo%2Fecosoft--addons-lightgray.png?logo=github
:target: https://github.com/ecosoft-odoo/ecosoft-addons/tree/18.0/frappe_etax_service
:alt: ecosoft-odoo/ecosoft-addons

|badge1| |badge2| |badge3|

This module provide a feature to integrate with Frappe e-Tax Service. It will send the tax invoice to Frappe server and get the signed e-Tax invoice back.

#. At Vendor Bill, after posted vendor bill with tax, Etax invoice button will display on screen.
#. Then click Etax Invoice buttton
#. Check e-Tax status on e-Tax Info tab if status is success frappe server will return the signed e-Tax invoice attachment as pdf file and xml file back to odoo.
#. You can download the signed e-Tax invoice from the attachment.

**Table of contents**

.. contents::
:local:

Configuration
=============

Set up Frappe Server URL and Frappe Auth Token

#. Go to menu > Invoicing > Configurations > Settings
#. On title Ecosoft e-Tax Services set up Frappe Server URL and Frappe Auth Token

Note:
Frappe Server URL is the URL of the Frappe server where the e-Tax Service is installed. Frappe Auth Token is the token generated from the Frappe server.
Contract to the provider of the e-Tax Service for the Frappe Server URL and Frappe Auth Token.


Configurations Form template

#. Go to menu > Invoicing > Configurations > Etax Service > Doctype Code
#. Form name is name of odoo/frappe form, you need to use the same name as in odoo/frappe
#. Doctype code: This is the code with send to Frappe server which represent variant of tax invoice following:
* 388: ใบกำกับภาษี
* T02: ใบแจ้งหนี้/ใบกำกับภาษี
* T03: ใบเสร็จรับเงิน/ใบกำกับภาษี
* T04: ใบส่งของ/ใบกำกับภาษี
* T05: ใบกำกับภาษีอย่างย่อ
* T01: ใบรับ (ใบเสร็จรับเงิน)
* 80: ใบเพิ่มหนี้
* 81: ใบลดหนี้

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/ecosoft-odoo/ecosoft-addons/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/ecosoft-odoo/ecosoft-addons/issues/new?body=module:%20frappe_etax_service%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Kitti U.
* Ecosoft

Contributors
~~~~~~~~~~~~

* `Ecosoft <http://ecosoft.co.th>`__:

* Kitti U. <[email protected]>
* Saran Lim. <[email protected]>
* Theerayut A. <[email protected]>

Maintainers
~~~~~~~~~~~

.. |maintainer-Saran440| image:: https://github.com/Saran440.png?size=40px
:target: https://github.com/Saran440
:alt: Saran440

Current maintainer:

|maintainer-Saran440|

This module is part of the `ecosoft-odoo/ecosoft-addons <https://github.com/ecosoft-odoo/ecosoft-addons/tree/18.0/frappe_etax_service>`_ project on GitHub.

You are welcome to contribute.
3 changes: 3 additions & 0 deletions frappe_etax_service/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import inet
from . import wizards
32 changes: 32 additions & 0 deletions frappe_etax_service/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2023 Ecosoft
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Connector to Frappe eTax service",
"version": "18.0.1.0.0",
"author": "Kitti U., Ecosoft",
"license": "AGPL-3",
"website": "https://github.com/ecosoft-odoo/ecosoft-addons",
"depends": [
"account",
"account_debit_note",
"l10n_th_account_tax",
"l10n_th_partner",
],
"data": [
"security/ir.model.access.csv",
"data/purpose_code_data.xml",
"data/cron.xml",
"data/server_action.xml",
"wizards/wizard_select_etax_doctype_view.xml",
"wizards/account_move_reversal_view.xml",
"wizards/account_debit_note_view.xml",
"wizards/wizard_select_replacement_purpose.xml",
"views/account_move_views.xml",
"views/account_payment_views.xml",
"views/res_config_settings.xml",
"views/purpose_code_views.xml",
"views/doctype_views.xml",
],
"installable": True,
"maintainers": ["Saran440"],
}
19 changes: 19 additions & 0 deletions frappe_etax_service/data/cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="ir_cron_run_update_processing_document" model="ir.cron">
<field name="name">INET ETax Run Update Processing Document</field>
<field name="interval_number">1</field>
<field name="interval_type">minutes</field>
<field name="model_id" ref="account.model_account_move" />
<field name="code">model.run_update_processing_document()</field>
<field name="state">code</field>
</record>
<record id="ir_cron_run_sign_etax" model="ir.cron">
<field name="name">INET ETax Run Sign ETax</field>
<field name="interval_number">1</field>
<field name="interval_type">minutes</field>
<field name="model_id" ref="account.model_account_move" />
<field name="code">model.run_sign_etax()</field>
<field name="state">code</field>
</record>
</odoo>
92 changes: 92 additions & 0 deletions frappe_etax_service/data/purpose_code_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="purpose_code_01" model="purpose.code">
<field name="name">ชื่อผิด</field>
<field name="code">TIVC01</field>
<field name="type_replacement">is_tax_invoice</field>
</record>
<record id="purpose_code_02" model="purpose.code">
<field name="name">ที่อยู่ผิด</field>
<field name="code">TIVC02</field>
<field name="type_replacement">is_tax_invoice</field>
</record>
<record id="purpose_code_03" model="purpose.code">
<field name="name">อื่นๆ ระบุ</field>
<field name="code">TIVC99</field>
<field name="type_replacement">is_tax_invoice</field>
</record>
<record id="purpose_code_04" model="purpose.code">
<field name="name">มีการเพิ่มราคาสินค้า</field>
<field name="code">DBNG01</field>
<field name="type_replacement">is_debit_note</field>
</record>
<record id="purpose_code_05" model="purpose.code">
<field name="name">คำนวณราคาสินค้า ผิดพลาดต่ำกว่าที่เป็นจริง</field>
<field name="code">DBNG02</field>
<field name="type_replacement">is_debit_note</field>
</record>
<record id="purpose_code_06" model="purpose.code">
<field name="name">เหตุอื่น (ระบุสาเหตุ)</field>
<field name="code">DBNG99</field>
<field name="type_replacement">is_debit_note</field>
</record>
<record id="purpose_code_07" model="purpose.code">
<field name="name">ลดราคาสินค้าที่ขาย</field>
<field name="code">CDNG01</field>
<field name="type_replacement">is_credit_note</field>
</record>
<record id="purpose_code_08" model="purpose.code">
<field name="name">สินค้าชำรุดเสียหาย</field>
<field name="code">CDNG02</field>
<field name="type_replacement">is_credit_note</field>
</record>
<record id="purpose_code_09" model="purpose.code">
<field name="name">สินค้าขาดจำนวนตามที่ตกลงซื้อขาย</field>
<field name="code">CDNG03</field>
<field name="type_replacement">is_credit_note</field>
</record>
<record id="purpose_code_10" model="purpose.code">
<field name="name">คำนวณราคาสินค้าผิดพลาดสูงกว่าที่เป็นจริง</field>
<field name="code">CDNG04</field>
<field name="type_replacement">is_credit_note</field>
</record>
<record id="purpose_code_11" model="purpose.code">
<field name="name">รับคืนสินค้า</field>
<field name="code">CDNG05</field>
<field name="type_replacement">is_credit_note</field>
</record>
<record id="purpose_code_12" model="purpose.code">
<field name="name">เหตุอื่น (ระบุสาเหตุ)</field>
<field name="code">CDNG99</field>
<field name="type_replacement">is_credit_note</field>
</record>
<record id="purpose_code_13" model="purpose.code">
<field name="name">ชื่อผิด</field>
<field name="code">RCTC01</field>
<field name="type_replacement">is_receipt</field>
</record>
<record id="purpose_code_14" model="purpose.code">
<field name="name">ที่อยู่ผิด</field>
<field name="code">RCTC02</field>
<field name="type_replacement">is_receipt</field>
</record>
<record id="purpose_code_15" model="purpose.code">
<field
name="name"
>รับคืนสินค้า / ยกเลิกบริการ ทั้งจำนวน (ระบุจำนวนเงิน) บาท</field>
<field name="code">RCTC03</field>
<field name="type_replacement">is_receipt</field>
</record>
<record id="purpose_code_16" model="purpose.code">
<field
name="name"
>รับคืนสินค้า / ยกเลิกบริการ บางจำนวน (ระบุจำนวนเงิน) บาท</field>
<field name="code">RCTC04</field>
<field name="type_replacement">is_receipt</field>
</record>
<record id="purpose_code_17" model="purpose.code">
<field name="name">เหตุอื่นๆ (ระบุสาเหตุ)</field>
<field name="code">RCTC99</field>
<field name="type_replacement">is_receipt</field>
</record>
</odoo>
16 changes: 16 additions & 0 deletions frappe_etax_service/data/server_action.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="action_create_replacement" model="ir.actions.server">
<field name="name">Update Tax Invoice number</field>
<field name="model_id" ref="account.model_account_payment" />
<field name="state">code</field>
<field name="code">
if record.tax_invoice_ids:
if not record.tax_invoice_ids.mapped('tax_invoice_number'):
record.tax_invoice_ids.write({
'tax_invoice_number': record.name,
'tax_invoice_date': record.date
})
</field>
</record>
</odoo>
Loading