Skip to content

fix invoices query#79

Open
Blue-B-code wants to merge 1 commit intoopenimis:developfrom
Y-Note-SAS:feature-35913
Open

fix invoices query#79
Blue-B-code wants to merge 1 commit intoopenimis:developfrom
Y-Note-SAS:feature-35913

Conversation

@Blue-B-code
Copy link

@Blue-B-code Blue-B-code commented Mar 13, 2026

Description

I made a single minimal fix in invoice/gql/gql_types/invoice_types.py:

Changed insuree.first().items() to (insuree.first() or {}).items() in resolve_subject.
This prevents a crash when no Insuree is found (first() returns None) and returns an empty headInsuree object instead.

Type of Change

  • Feature
  • Bug fix
  • Chore (Refactor, Docs, CI/CD)
  • Other, please specify

Related Issue(s) / Task(s)

  • Requires [link to github PR], [link to github PR] needs to be merged first before this one
  • Relates to [link to github PR], this needs to be merged before [link to github PR]
  • External reference (e.g., Jira):

Demo

image image

Checklist

  • Unit tests added/modified
  • I18n / translation handled

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

Successfully merging this pull request may close these issues.

1 participant