Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] account_ux: Found possible duplicates #349

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion account_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Account UX',
'version': "15.0.1.7.0",
'version': "15.0.1.8.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
Expand Down
4 changes: 2 additions & 2 deletions account_ux/data/ir_actions_server_data.xml
Original file line number Diff line number Diff line change
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), ('payment_ref', '=', st_line.payment_ref), ('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 All @@ -37,7 +37,7 @@ if res:
'context': {'search_default_group_by_duplicated_group': True},
}
else:
raise Warning('We do not found any duplicate')
raise UserError('We do not found any duplicate')
</field>
</record>

Expand Down