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

[FIX] account_avatax_oca: only override exemption if provided in Odoo #462

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions account_avatax_oca/models/avatax_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,20 @@
"referenceCode": reference_code,
"salespersonCode": salesman_code and salesman_code[:25] or None,
"reportingLocationCode": location_code,
"entityUseCode": customer_usage_type,
"exemptionNo": exemption_no,
"description": doc_code or "Draft",
"date": doc_date,
"code": doc_code,
"type": doc_type,
"commit": commit,
}
# Only override exemption if provided from Odoo
if customer_usage_type or exemption_no:
create_transaction.update(

Check warning on line 298 in account_avatax_oca/models/avatax_rest_api.py

View check run for this annotation

Codecov / codecov/patch

account_avatax_oca/models/avatax_rest_api.py#L298

Added line #L298 was not covered by tests
{
"entityUseCode": customer_usage_type,
"exemptionNo": exemption_no,
}
)
if is_override and invoice_date:
create_transaction.update(
{
Expand Down
Loading