Commit fb3ab36
[FIX] account_payment_pro_receiptbook, account_payment_pro, l10n_ar_payment_bundle: apply upstream fixes from PRs ingadhoc#1055, ingadhoc#1054, ingadhoc#1051, ingadhoc#1049
- account_payment_pro_receiptbook: enforce receiptbook prefix in _get_next_sequence_format
(PR ingadhoc#1055): replaces previous _get_last_sequence_domain approach; now detects prefix
mismatch after _get_last_sequence() and falls back to direct SQL filtered by correct
sequence_prefix, preventing PAY-prefixed orphan sequences from propagating.
- account_payment_pro: sync amount when all to_pay lines removed (PR ingadhoc#1054); add
_onchange_amount to keep amount in sync with to_pay_amount on line changes (PR ingadhoc#1049).
- l10n_ar_payment_bundle: wrap action_post unlink/validation in for-rec loop and filter
draft_linked by parent non-draft state to fix batch posting (PR ingadhoc#1051).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 36bf4ba commit fb3ab36
3 files changed
Lines changed: 47 additions & 29 deletions
File tree
- account_payment_pro_receiptbook/models
- account_payment_pro/models
- l10n_ar_payment_bundle/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
987 | 993 | | |
988 | 994 | | |
989 | 995 | | |
| |||
1004 | 1010 | | |
1005 | 1011 | | |
1006 | 1012 | | |
1007 | | - | |
| 1013 | + | |
1008 | 1014 | | |
1009 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
1010 | 1018 | | |
1011 | | - | |
| 1019 | + | |
1012 | 1020 | | |
1013 | 1021 | | |
1014 | 1022 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 12 | | |
28 | 13 | | |
29 | 14 | | |
30 | 15 | | |
31 | 16 | | |
32 | 17 | | |
33 | 18 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 19 | | |
39 | 20 | | |
40 | 21 | | |
| |||
55 | 36 | | |
56 | 37 | | |
57 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
58 | 43 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
232 | 233 | | |
233 | | - | |
234 | | - | |
| 234 | + | |
| 235 | + | |
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| |||
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
| |||
0 commit comments