diff options
| author | wan <wan@odoo.com> | 2021-03-08 14:48:56 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2021-03-12 15:01:54 +0000 |
| commit | fd36a69a6ed1484d6b7570dae3ff63d3f12ad035 (patch) | |
| tree | 58bc9fd699dfb8ea8e6f3eabc7e6a5402d547b95 /addons/account/models/account_move.py | |
| parent | c9f55c5ecf174414f8e9ed6df56170ac2c6d6e3e (diff) | |
[FIX] account: wrong batching to compute the name
Fine tuning of f816c326f348ff78a982f91a736cc005d3e0cd31
We should not look at the `seq` when grouping again.
opw-2472061
closes odoo/odoo#67481
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/account/models/account_move.py')
| -rw-r--r-- | addons/account/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 961c6d7bff1..36825ca5ebf 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1111,7 +1111,7 @@ class AccountMove(models.Model): if ( not final_batches or final_batches[-1]['format'] != date_group['format'] - or final_batches[-1]['format_values'] != date_group['format_values'] + or dict(final_batches[-1]['format_values'], seq=0) != dict(date_group['format_values'], seq=0) ): final_batches += [date_group] elif date_group['reset'] == 'never': |
