Enhance ComputePlanAssignment with Odoo product ID generation and price sync #420

Merged
tobru merged 6 commits from billing-improvements into main 2026-03-12 16:15:50 +00:00
Owner
  • Add generate_odoo_product_id() method to ComputePlanAssignment that derives a deterministic Odoo product ID from service, provider, SLA, and plan name
  • Add admin actions to bulk-generate Odoo product IDs and sync prices from Odoo
  • Add admin JS helper to preview generated product IDs inline when editing assignments
  • Increase price field precision (max_digits=16, decimal_places=8) to support per-minute billing rates
  • Add price_display property with smart formatting and use it in templates
  • Add tests for product ID generation and price display
- Add `generate_odoo_product_id()` method to `ComputePlanAssignment` that derives a deterministic Odoo product ID from service, provider, SLA, and plan name - Add admin actions to bulk-generate Odoo product IDs and sync prices from Odoo - Add admin JS helper to preview generated product IDs inline when editing assignments - Increase price field precision (`max_digits=16, decimal_places=8`) to support per-minute billing rates - Add `price_display` property with smart formatting and use it in templates - Add tests for product ID generation and price display
Add auto-generation of Odoo product IDs from service/provider/SLA/plan fields,
a custom admin widget for common Odoo unit ID values, admin actions for bulk
product ID generation and price syncing from Odoo, and increase price field
precision to 8 decimal places with proper formatting via format_price().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
renovate force-pushed billing-improvements from 514e34ec2d
All checks were successful
Tests / test (push) Successful in 45s
to b37abe4d93
All checks were successful
Tests / test (push) Successful in 51s
2026-03-11 16:39:04 +00:00
Compare
tobru changed title from WIP: Enhance ComputePlanAssignment with Odoo product ID generation, unit defaults, and price sync to WIP: Enhance ComputePlanAssignment with Odoo product ID generation and price sync 2026-03-11 16:43:17 +00:00
fixes from code-review
All checks were successful
Tests / test (push) Successful in 53s
5f1165a8e6
tobru changed title from WIP: Enhance ComputePlanAssignment with Odoo product ID generation and price sync to Enhance ComputePlanAssignment with Odoo product ID generation and price sync 2026-03-12 16:10:48 +00:00
tobru merged commit d5aced6731 into main 2026-03-12 16:15:50 +00:00
tobru deleted branch billing-improvements 2026-03-12 16:15:50 +00:00
Sign in to join this conversation.
No description provided.