Yes, that is what I meant. The method should assign:
- match_type = 'invoice' if there are move lines and all have an invoice, or
- match_type = 'move_lines' if there are move lines,
- match_type = False otherwise

However, the code in your alternative branch does the same for partner and 
account. I do not think that that should be the case. The reason for this is 
that the code considers invoices a special case of move lines. If all move 
lines have invoices we prefer to ask the user to select the correct invoice 
instead of move lines.

There is no such specialization of partners and accounts. Whether the code 
should suggest the partner and account of the first match of multiple matches 
is just an interface issue. These are overwritten anyway when the user 
disambiguates the match.



-- 
https://code.launchpad.net/~therp-nl/banking-addons/6.1_lp1176783/+merge/162566
Your team Banking Addons Team is subscribed to branch lp:banking-addons.

-- 
Mailing list: https://launchpad.net/~banking-addons-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~banking-addons-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to