Skip to content

Invalid value for invoice after deleting credit note allocation #159

Open

Description

@ton77v

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

Activity

  1. github-actions commented on Oct 9, 2024

    @github-actions

    PETOSS-641

  2. github-actions commented on Oct 9, 2024

    @github-actions

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions