Skip to content

Commit

Permalink
[FIX] account_ux: Found possible duplicates
Browse files Browse the repository at this point in the history
Should only be applied to statement lines on the same journal.
Before this change we were wrongly suggestion duplicated because
we were searching across journals.

closes #329

Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
zaoral committed Jul 19, 2022
1 parent 33ec23b commit 225ae31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Account UX',
'version': "13.0.1.24.0",
'version': "13.0.1.25.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
2 changes: 1 addition & 1 deletion account_ux/data/ir_actions_server_data.xml
Expand Up @@ -17,7 +17,7 @@ for st in records:
dup_groups = 0
while tofix:
st_line = tofix[0]
temp = st_line_obj.search([('ref', '=', st_line.ref), ('date', '=', st_line.date), ('name', '=', st_line.name), ('amount', '=', st_line.amount)])
temp = st_line_obj.search([('ref', '=', st_line.ref), ('date', '=', st_line.date), ('name', '=', st_line.name), ('amount', '=', st_line.amount), ('journal_id', '=', st_line.journal_id.id)])
if len(temp) > 1:
dup_groups += 1
temp.write({'duplicated_group': 'Group %03d' % dup_groups})
Expand Down

0 comments on commit 225ae31

Please sign in to comment.