Skip to content

Conversation

@amjithtitus09
Copy link
Member

Proposed Changes

  • Brief of changes made.

Associated Issue

  • Link to issue here, explain how the proposed solution will solve the reported issue/ feature request.

Architecture changes

  • Remove this section if not used

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins

@amjithtitus09 amjithtitus09 requested a review from a team as a code owner September 24, 2025 12:56
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 24, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sentry
Copy link

sentry bot commented Sep 24, 2025

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: odoo/resource/invoice.py

Function Unhandled Issue
sync_invoice_to_odoo AttributeError: 'ChargeItem' object has no attribute 'medication_dispense_set' /api/v1/facility/{facility_exter...
Event Count: 21

Did you find this useful? React with a 👍 or 👎

elif charge_item.service_resource == ChargeItemResourceOptions.appointment.value:
token_booking = TokenBooking.objects.get(external_id=charge_item.service_resource_id)
requester = token_booking.token_slot.resource.user
elif dispense := charge_item.medication_dispense_set.first():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do this with charge_item.service_resource == ChargeItemResourceOptions.medication_dispense.value

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vigneshhari vigneshhari merged commit 2872e87 into ohcnetwork:vigneshhari/test-odoo Sep 24, 2025
1 of 2 checks passed
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.

2 participants