[FIX] account: don't write ref/date again on move when creating tax line
This commit is contained in:
@@ -1057,9 +1057,7 @@ class AccountMoveLine(models.Model):
|
||||
'name': vals['name'] + ' ' + tax_vals['name'],
|
||||
'tax_line_id': tax_vals['id'],
|
||||
'move_id': vals['move_id'],
|
||||
'date': vals['date'],
|
||||
'partner_id': vals.get('partner_id'),
|
||||
'ref': vals.get('ref'),
|
||||
'statement_id': vals.get('statement_id'),
|
||||
'debit': tax_vals['amount'] > 0 and tax_vals['amount'] or 0.0,
|
||||
'credit': tax_vals['amount'] < 0 and -tax_vals['amount'] or 0.0,
|
||||
|
||||
Reference in New Issue
Block a user