Skip to content

Commit

Permalink
[FIX] account_withholding: payment cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed Apr 23, 2023
1 parent 4067a54 commit 3b6168d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions account_withholding/models/account_payment.py
Expand Up @@ -75,6 +75,9 @@ def action_draft(self):
withholdings = self.filtered(lambda x: x.tax_withholding_id)
for withholding in withholdings:
liquidity_lines, counterpart_lines, writeoff_lines = withholding._seek_for_lines()
# hack para poder pasar esta constraint
# https://github.com/odoo/odoo/blob/b03d4c643647/addons/account/models/account_move_line.py#L1416
liquidity_lines.parent_state = 'draft'
liquidity_lines.write({
'tax_repartition_line_id': False,
'tax_line_id': False,
Expand Down

0 comments on commit 3b6168d

Please sign in to comment.