Commit 5c962ba
committed
fix(spp_programs): use format_amount for thousands separator on entitlement summary (#941 r3)
QA round-3 follow-up: amounts on the 'What Do They Receive?' overview
were rendered with currency symbol + 2-decimal precision but without
thousands grouping (e.g. "$ 1000000.00" instead of "$ 1,000,000.00").
Switch both render paths in program_manager_ui.py to odoo.tools.misc.
format_amount, which gives locale-aware grouping plus correct currency
symbol position out of the box:
- _manager_detail_entitlement_items
- _manager_detail_basic_cash
Adds test_items_summary_includes_thousands_separator covering the
1,000,000 case. Local run: 0 failed of 3 tests.1 parent aee395d commit 5c962ba
2 files changed
Lines changed: 29 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
| 491 | + | |
495 | 492 | | |
496 | 493 | | |
497 | 494 | | |
| |||
517 | 514 | | |
518 | 515 | | |
519 | 516 | | |
520 | | - | |
521 | | - | |
522 | 517 | | |
523 | 518 | | |
524 | | - | |
| 519 | + | |
525 | 520 | | |
526 | 521 | | |
527 | 522 | | |
528 | | - | |
| 523 | + | |
529 | 524 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
| 525 | + | |
534 | 526 | | |
535 | 527 | | |
536 | 528 | | |
537 | 529 | | |
538 | 530 | | |
539 | 531 | | |
540 | | - | |
| 532 | + | |
541 | 533 | | |
542 | 534 | | |
543 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments