Avalara Avatax Certified Connector for Sales Orders
account_avatax_sale_oca · OCA/account-fiscal-rule
Health
90/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis
0 migration notes
5 models
3 views
0 HTTP endpoints
Description
This module is a component of the Avatax Integration with odoo app. Please refer to the corresponding documentation.
Dependencies
- Odoo dependencies
- Python dependencies
- Avalara
- System dependencies
- None
- Required by
- account_avatax_exemption, account_avatax_website_sale
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_taxesBooleanhelp='When checked, the Avatax computed tax will replace any other taxes that may exist in the document line.' -
sale_calculate_taxBooleanhelp="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_idBooleandefault=Truehelp="Use Sales Order's Invoice Address field to determine TaxableStatus" args: "Use Invoice partner's customer code in SO"
No public methods.
New fields (11)
-
avatax_request_logTextcopy=Falsereadonly=True args: 'Avatax API Request Log' -
avatax_response_logTextcopy=Falsereadonly=True args: 'Avatax API Response Log' -
calculate_tax_on_saveBoolean -
exemption_codeCharcompute=_compute_onchange_exemptionhelp='It show the customer exemption number'readonly=Falsestore=True args: 'Exemption Number' -
exemption_code_idMany2one → exemption.codecompute=_compute_onchange_exemptionhelp='It show the customer exemption code'readonly=Falsestore=True args: 'exemption.code', 'Exemption Code' -
hide_exemptionBooleancompute='_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_avataxBooleanrelated='fiscal_position_id.is_avatax' -
location_codeCharhelp='Origin address location code' -
tax_address_idMany2one → res.partnercompute='_compute_tax_address_id'readonly=Truestore=True args: 'res.partner', 'Tax Address' -
tax_amountMonetarystring='AvaTax' -
tax_on_shipping_addressBooleandefault=True args: 'Tax based on shipping address'
-
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_amtMonetarystring='AvaTax'
-
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…
Loading…