Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] account_avatax_oca: Migration to 18.0 #459

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9bcd076
account_avatax_oca: renamed from account_avatax
dreispt Aug 2, 2022
c6a4fd2
account_avatax_oca: fix README title levels
dreispt Sep 8, 2022
8b20c7c
Update account_avatax_oca.pot
Sep 8, 2022
d1c97df
README.rst
OCA-git-bot Sep 8, 2022
a13d172
account_avatax_oca 15.0.2.0.0
OCA-git-bot Sep 8, 2022
a735628
account_avatax: Override line taxes at Invoice
atchuthan Aug 8, 2022
c0c85a2
account_avatax_oca 15.0.2.0.1
OCA-git-bot Sep 26, 2022
83fa4e9
account_avatax_oca: Migrated to v16
Nikul-OSI Jan 6, 2023
e391e20
Update account_avatax_oca.pot
Aug 3, 2023
9f0d75d
README.rst
OCA-git-bot Aug 3, 2023
4ea14c7
README.rst
OCA-git-bot Sep 3, 2023
7ddd7bc
account_avatax_oca: tax calculation improvements
RLeeOSI Aug 3, 2023
92be2f1
post-merge updates
OCA-git-bot Oct 10, 2023
bed7a12
account_avatax_oca: fix unbalanced error on save
dreispt Oct 10, 2023
61758a5
post-merge updates
OCA-git-bot Nov 9, 2023
2999c9c
account_avatax_oca : override the create method in batch
metaminux Nov 24, 2023
ea66fb7
post-merge updates
OCA-git-bot Nov 28, 2023
de9fcb7
account_avatax_oca : use original parameters when calling super metho…
metaminux Dec 5, 2023
37ba182
post-merge updates
OCA-git-bot Dec 5, 2023
3089443
account_avatax_oca : actually trigger avatax calculation on save when…
metaminux Dec 6, 2023
f715b9f
account_avatax_oca : remove obsolete method "_get_price_total_and_sub…
metaminux Dec 6, 2023
7e8c191
post-merge updates
OCA-git-bot Dec 9, 2023
d858a66
post-merge updates
OCA-git-bot Dec 9, 2023
9225f66
account_avatax_oca: don't overwrite date on refund
Dec 22, 2022
811a261
post-merge updates
OCA-git-bot Dec 22, 2023
8ec9204
account_avatax_oca: add search criteria to avoid singleton
Jun 15, 2023
f974604
post-merge updates
OCA-git-bot Dec 28, 2023
e5df4fc
Added translation using Weblate (Italian)
mymage Feb 27, 2024
2094668
[FIX] account_avatax_oca: black, isort, prettier
Nikul-OSI Mar 7, 2024
8864ae8
[MIG] account_avatax_oca: Migrated to v17
Nikul-OSI Mar 7, 2024
b126817
[FIX] account_avatax_oca: error from missing field property_exemption…
dreispt Mar 22, 2024
f6b629d
[FIX] account_avatax_oca: Avalara Certification in pending
dreispt Mar 22, 2024
fcbf4a0
[UPD] Update account_avatax_oca.pot
Mar 22, 2024
8da9f67
[BOT] post-merge updates
OCA-git-bot Mar 22, 2024
fcdef83
Update translation files
weblate Mar 22, 2024
e1f7be9
[FIX] account_avatax_oca: changed colspan to field
ArnauCForgeFlow Jan 4, 2024
149ae10
[BOT] post-merge updates
OCA-git-bot Mar 22, 2024
e471f9f
Translated using Weblate (Italian)
mymage Mar 26, 2024
8dd61bb
Translated using Weblate (Italian)
mymage Mar 27, 2024
8f8294a
[FIX] account_avatax_oca: Exemption is editable for Accounting Manage…
dreispt Apr 6, 2024
26bdaa2
[BOT] post-merge updates
OCA-git-bot Apr 10, 2024
2235794
Translated using Weblate (Italian)
mymage Apr 10, 2024
87c9f0e
[FIX] Allowing Internal Users to Validate the Contact Address
tirth-osi Apr 17, 2024
983736b
[BOT] post-merge updates
OCA-git-bot Apr 18, 2024
87d68fa
Translated using Weblate (Italian)
mymage Apr 19, 2024
e8fc483
[FIX] account_avatax_oca: Pre-commit fixes
pedrobaeza May 1, 2024
8a709f2
[BOT] post-merge updates
OCA-git-bot May 1, 2024
b66d2ce
Translated using Weblate (Italian)
mymage Oct 17, 2024
033bbf1
[18.0][MIG] account_avatax_oca: Migration to 18.0
kobros-tech Dec 5, 2024
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
529 changes: 529 additions & 0 deletions account_avatax_oca/README.rst

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions account_avatax_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import wizard
from .hooks import pre_init_hook
35 changes: 35 additions & 0 deletions account_avatax_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "Avalara Avatax Certified Connector",
"version": "18.0.1.0.0",
"author": "Open Source Integrators, Fabrice Henrion,"
"Sodexis, Odoo Community Association (OCA)",
"summary": "Compute Sales Tax using the Avalara Avatax Service",
"license": "AGPL-3",
"category": "Accounting",
"website": "https://github.com/OCA/account-fiscal-rule",
"depends": ["sale_stock", "base_geolocalize"],
"pre_init_hook": "pre_init_hook",
"data": [
"security/avalara_salestax_security.xml",
"security/ir.model.access.csv",
"data/avalara_salestax_data.xml",
"data/avalara_salestax_exemptions.xml",
"wizard/avalara_get_company_code_view.xml",
"wizard/avalara_salestax_address_validate_view.xml",
"wizard/avalara_salestax_ping_view.xml",
"views/avalara_salestax_view.xml",
"views/partner_view.xml",
"views/product_view.xml",
"views/account_move_action.xml",
"views/account_move_view.xml",
"views/account_tax_view.xml",
"views/account_fiscal_position_view.xml",
],
"demo": ["demo/avatax_demo.xml"],
"images": ["static/description/avatax_icon.png"],
"installable": True,
"application": True,
"external_dependencies": {"python": ["Avalara"]},
"development_status": "Production/Stable",
"maintainers": ["dreispt"],
}
22 changes: 22 additions & 0 deletions account_avatax_oca/data/avalara_salestax_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<odoo noupdate="1">
<record id="avatax_fiscal_position_us" model="account.fiscal.position">
<field name="name">Avatax Tax Mapping (US)</field>
<field name="is_avatax" eval="True" />
<field name="auto_apply" eval="True" />
<field name="country_id" ref="base.us" />
</record>
<record id="avatax_tax_group" model="account.tax.group">
<field name="name">AvaTax</field>
</record>
<!-- Used as template for automatic Tax records created -->
<record id="avatax" model="account.tax">
<field name="name">AVATAX</field>
<field name="description">Sales Tax</field>
<field name="tax_group_id" ref="avatax_tax_group" />
<field name="amount_type">percent</field>
<field name="amount" eval="0.00" />
<field name="type_tax_use">sale</field>
<field name="is_avatax">True</field>
<field name="country_id" ref="base.us" />
</record>
</odoo>
69 changes: 69 additions & 0 deletions account_avatax_oca/data/avalara_salestax_exemptions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<data noupdate="1">
<!--
Partner Exemption Code
-->
<record id="federal_government_type" model="exemption.code">
<field name="name">Federal Government</field>
<field name="code">A</field>
</record>
<record id="state_government_type" model="exemption.code">
<field name="name">State Government</field>
<field name="code">B</field>
</record>
<record id="tribe_indian_band_type" model="exemption.code">
<field name="name">Tribe / Status Indian / Indian Band</field>
<field name="code">C</field>
</record>
<record id="foreign_diplomat_type" model="exemption.code">
<field name="name">Foreign Diplomat</field>
<field name="code">D</field>
</record>
<record id="charitable_org_type" model="exemption.code">
<field name="name">Charitable or Benevolent Org</field>
<field name="code">E</field>
</record>
<record id="religious_eductional_org_type" model="exemption.code">
<field name="name">Religious or Educational Org</field>
<field name="code">F</field>
</record>
<record id="resale_type" model="exemption.code">
<field name="name">Resale</field>
<field name="code">G</field>
</record>
<record id="commercial_agriculture_production_type" model="exemption.code">
<field name="name">Commercial Agricultural Production</field>
<field name="code">H</field>
</record>
<record id="industrial_manufacturer_type" model="exemption.code">
<field name="name">Industrial Production / Manufacturer</field>
<field name="code">I</field>
</record>
<record id="direct_pay_permit_type" model="exemption.code">
<field name="name">Direct Pay Permit</field>
<field name="code">J</field>
</record>
<record id="direct_mail_type" model="exemption.code">
<field name="name">Direct Mail</field>
<field name="code">K</field>
</record>
<record id="other_type" model="exemption.code">
<field name="name">Other</field>
<field name="code">L</field>
</record>
<record id="local_government_type" model="exemption.code">
<field name="name">Local Government</field>
<field name="code">N</field>
</record>
<record id="commercial_aquaculture_type" model="exemption.code">
<field name="name">Commercial Aquaculture</field>
<field name="code">P</field>
</record>
<record id="commercial_fishery_type" model="exemption.code">
<field name="name">Commercial Fishery</field>
<field name="code">Q</field>
</record>
<record id="non_resident_type" model="exemption.code">
<field name="name">Non-Resident</field>
<field name="code">R</field>
</record>
</data>
49 changes: 49 additions & 0 deletions account_avatax_oca/demo/avatax_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<odoo>
<!-- fake avatax API configuraation -->
<record id="avatax_api_configuraation" model="avalara.salestax">
<field name="company_id" ref="base.main_company" />
<field name="account_number">123456789</field>
<field name="license_key">avatax_key</field>
</record>

<record id="avatax_customer" model="res.partner">
<field name="name">Washington Customer</field>
<field name="street">100 Ravine Ln Ne</field>
<field name="city">Bainbridge Island</field>
<field name="state_id" ref="base.state_us_48" />
<field name="country_id" ref="base.us" />
<field name="zip">98110-2687</field>
</record>

<record id="avatax_product_taxcodeP" model="product.tax.code">
<field name="name">P0000000</field>
<field name="type">product</field>
</record>
<record id="avatax_product_taxcodeNT" model="product.tax.code">
<field name="name">NT</field>
<field name="type">product</field>
</record>
<record id="avatax_product_taxcodeF" model="product.tax.code">
<field name="name">FR020100</field>
<field name="type">freight</field>
</record>

<record id="avatax_product_sku1" model="product.product">
<field name="name">Test Item P0000000</field>
<field name="type">consu</field>
<field name="list_price">100.0</field>
<field name="tax_code_id" ref="account_avatax_oca.avatax_product_taxcodeP" />
</record>
<record id="avatax_product_sku2" model="product.product">
<field name="name">Test Item NT</field>
<field name="type">consu</field>
<field name="list_price">100.0</field>
<field name="tax_code_id" ref="account_avatax_oca.avatax_product_taxcodeNT" />
</record>
<record id="avatax_product_freight" model="product.product">
<field name="name">Common Carrier FR020100</field>
<field name="type">service</field>
<field name="list_price">50.0</field>
<field name="tax_code_id" ref="account_avatax_oca.avatax_product_taxcodeF" />
</record>
</odoo>
15 changes: 15 additions & 0 deletions account_avatax_oca/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (C) 2022 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


def pre_init_hook(env):
# Preserve key data when moving from account_avatax to account_avatax_oca
# The process is to first install account_avatax_oca
# and then uninstall account_avatax
env.cr.execute(
"""
UPDATE ir_model_data
SET module = 'account_avatax_oca'
WHERE name in ('avatax_fiscal_position_us', 'account_avatax')
"""
)
Loading
Loading