Repository
OCA/account-fiscal-rule · module folder · Try on Runboat
Module version
2.4.4
Category
Accounting
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/account-fiscal-rule
Last tracking update
2026-08-07 07:38:32
Authors
Odoo Community Association (OCA), Fabrice Henrion
Maintainers
Odoo Community Association (OCA), Fabrice Henrion
Committers
Pedro M. Baeza, Daniel Reis, Bhavesh Odedra, OCA-git-bot, oca-travis, Atchuthan, Sodexis
Odoo dependencies
Python dependencies
Avalara
System dependencies
None
Required by
None
Description

Code Analysis

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

No HTTP endpoints found for this module.

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.