Avalara Avatax Connector for Sales Orders

account_avatax_sale
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/13.0/account_avatax_sale
VERSION
VERSION 2.4.4
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOdoo Community Association (OCA), Fabrice Henrion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Fabrice Henrion
COMMITTERS
COMMITTERSPedro M. Baeza, Daniel Reis, Bhavesh Odedra, oca-travis, OCA-git-bot, Atchuthan, Sodexis
WEBSITE
WEBSITEhttps://github.com/OCA/account-fiscal-rule
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-fiscal-rule:
    - account_avatax
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale_stock
    - sale
    - sales_team
    - payment
    - utm
    - stock_account
    - stock
    - barcodes
    - base_geolocalize
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Avalara
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
sale_order_form_view_editable_field sale.order.form.view.editable sale.order field Inherits sale_order_update_form_view
sale_order_update_form_view sale.order.update.form.view sale.order button Inherits sale.view_order_form
view_partner_details_form_exempt_country_wide Partner Form: add Exempt Country Wide res.partner field Inherits account_avatax.view_partner_details_form_inherit1
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • property_exemption_country_wide Boolean
    help='When enabled, the delivery address State is irrelevant when looking up the exemption status, meaning that the exemption is considered applicable for all states' args: 'Exemption Applies Country Wide'
Public methods (0)

No public methods.

New fields (6)
  • exemption_code Char
    compute=_compute_onchange_exemption help='It show the customer exemption number' readonly=False store=True args: 'Exemption Number'
  • exemption_code_id Many2one → exemption.code
    compute=_compute_onchange_exemption help='It show the customer exemption code' readonly=False store=True args: 'exemption.code', 'Exemption Code'
  • location_code Char
    help='Origin address location code' args: 'Location Code'
  • tax_address_id Many2one → res.partner
    compute='_compute_tax_address_id' readonly=True states={'draft': [('readonly', False)]} store=True args: 'res.partner', 'Tax Address'
  • tax_amount Monetary
    string='AvaTax'
  • tax_on_shipping_address Boolean
    default=True args: 'Tax based on shipping address'
Public methods (4)
  • action_confirm(self)
  • avalara_compute_taxes(self)
    Use Avatax API to compute taxes. Sets the Taxes on each line, and lets odoo perfomr teh calculations.
  • onchange_partner_shipping_id(self)
    @api.onchange('partner_shipping_id', 'partner_id')
    Apply the exemption number and code from the Invoice Partner Data We can only apply an exemption status that matches the delivery address Country and State. The setup for this is to add contact/addresses for the Invoicing Partner, for each of the states we can claim exepmtion for.
  • onchange_reset_avatax_amount(self)
    @api.onchange('order_line', 'fiscal_position_id')
    When changing quantities or prices, reset the Avatax computed amount. The Odoo computed tax amount will then be shown, as a reference. The Avatax amount will be recomputed upon document validation.

New fields (1)
  • tax_amt Monetary
    string='AvaTax'
Public methods (1)
  • onchange_reset_avatax_amount(self)
    @api.onchange('product_uom_qty', 'discount', 'price_unit', 'tax_id')
    When changing quantities or prices, reset the Avatax computed amount. The Odoo computed tax amount will then be shown, as a reference. The Avatax amount will be recomputed upon document validation.