Repository
OCA/account-fiscal-rule · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/account-fiscal-rule
Last tracking update
2026-08-07 08:43:06
Authors
Odoo Community Association (OCA), Sodexis, Open Source Integrators, Fabrice Henrion
Maintainers
Odoo Community Association (OCA), Sodexis, Open Source Integrators, Fabrice Henrion
Committers
Raphaël Valyi, kobros-tech, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
Avalara
System dependencies
None
Required by
account_avatax_exemption, account_avatax_website_sale
Description
This module is a component of the Avatax Integration with odoo app.
Please refer to the corresponding documentation.

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_avalara_salestax_form avalara.salestax.inherit avalara.salestax form Inherits account_avatax_oca.view_avalara_salestax_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None, is_refund=False, handle_price_include=True, include_caba_tags=False, fixed_multiplicator=1)

New fields (3)
  • override_line_taxes Boolean
    help='When checked, the Avatax computed tax will replace any other taxes that may exist in the document line.'
  • sale_calculate_tax Boolean
    help="Automatically triggers API to calculate tax If changes made onSO's warehouse_id, tax_on_shipping_address, SO line's price_unit, discount, product_uom_qty" args: 'Auto Calculate Tax on SO Save'
  • use_partner_invoice_id Boolean
    default=True help="Use Sales Order's Invoice Address field to determine TaxableStatus" args: "Use Invoice partner's customer code in SO"
Public methods (0)

No public methods.

New fields (11)
  • avatax_request_log Text
    copy=False readonly=True args: 'Avatax API Request Log'
  • avatax_response_log Text
    copy=False readonly=True args: 'Avatax API Response Log'
  • calculate_tax_on_save Boolean
  • 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'
  • hide_exemption Boolean
    compute='_compute_hide_exemption' default=<expr> help='Uncheck this field to show exemption fields on SO/Invoice form view. Also, it will show Tax based on shipping address button' args: 'Hide Exemption & Tax Based on shipping address'
  • is_avatax Boolean
    related='fiscal_position_id.is_avatax'
  • location_code Char
    help='Origin address location code'
  • tax_address_id Many2one → res.partner
    compute='_compute_tax_address_id' readonly=True 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 (7)
  • 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.
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_avatax_calculation(self)
    @api.onchange('order_line', 'tax_on_shipping_address', 'tax_address_id', 'partner_id')
  • 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.
  • write(self, vals)

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.

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
88 days ago
Last activity
59 days ago
Repository
OCA/account-fiscal-rule
Pull request
[19.0][MIG] account_avatax_sale_oca: Migration to 19.0 (#593)