mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Duplicate statement line does not show up red on statement due to
color precendence [FIX] Cannot cancel statement line
This commit is contained in:
@@ -192,7 +192,7 @@
|
||||
<data>
|
||||
<field name="period_id" position="replace"/>
|
||||
<xpath expr="/form/notebook/page[@string='Transaction']/field/tree" position="attributes">
|
||||
<attribute name="colors">black:state == 'confirmed';darkmagenta:match_multi == True;grey:state=='draft';crimson:duplicate == True;</attribute>
|
||||
<attribute name="colors">black:state == 'confirmed';darkmagenta:match_multi == True;crimson:duplicate == True;grey:state == 'draft';</attribute>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page[@string='Transaction']/field/tree/field[@name='name']" position="replace">
|
||||
<field name="name" required="1"/>
|
||||
|
||||
@@ -766,10 +766,10 @@ class banking_import_transaction(osv.osv):
|
||||
else:
|
||||
account_id = journal.default_debit_account_id.id
|
||||
cancel_line = False
|
||||
move_lines = [
|
||||
move_lines = []
|
||||
for move in transaction.statement_line_id.move_ids:
|
||||
# There should usually be just one move, I think
|
||||
move.line_id for move in transaction.statement_line_id.move_ids
|
||||
]
|
||||
move_lines += move.line_id
|
||||
for line in move_lines:
|
||||
if line.account_id.id != account_id:
|
||||
cancel_line = line
|
||||
|
||||
Reference in New Issue
Block a user