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

Invalid value for invoice after deleting credit note allocation #159

Open
ton77v opened this issue Oct 9, 2024 · 2 comments
Open

Invalid value for invoice after deleting credit note allocation #159

ton77v opened this issue Oct 9, 2024 · 2 comments

Comments

@ton77v
Copy link

ton77v commented Oct 9, 2024

Using xero_python==6.3.0

To reproduce:

api_client = ApiClient(...)
accounting_api = AccountingApi(_api_client)

...

accounting_api.delete_credit_note_allocations(
    xero_tenant_id=XERO_TENANT_ID,
    credit_note_id=credit_note_id,
    allocation_id=allocation_id,
)

The allocation will be deleted, however ValueError "Invalid value for invoice, must not be None" will be raised.

It's likely caused by response_type="Allocation" here: https://github.com/XeroAPI/xero-python/blob/master/xero_python/accounting/api/accounting_api.py#L5853

Copy link

github-actions bot commented Oct 9, 2024

PETOSS-641

Copy link

github-actions bot commented Oct 9, 2024

Thanks for raising an issue, a ticket has been created to track your request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant