Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account_withholding: compute tax_repartition_line_id when accou…
…nt payment group is posted closes #371 Ticket: 62171 Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
- Loading branch information
1 parent
45b6f78
commit 1eae07b
Showing
3 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from openupgradelib import openupgrade | ||
import logging | ||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
env['account.move.line'].search([('tax_repartition_line_id', '!=', False), ('create_date', '>', '2023-01-1'), ('tax_state', '=', False)])._compute_tax_state() | ||
logger.info('Se computaron campos tax_repartition_line_id y tax_line_id en líneas de retenciones ya publicadas') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters