Skip to content

Commit

Permalink
[FIX] l10n_ar_account_tax_settlement: analytic account asiento ajuste…
Browse files Browse the repository at this point in the history
… inflación

closes #251

Ticket: 64177
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
pablohmontenegro authored and zaoral committed Aug 14, 2023
1 parent d27f92f commit 5e3053e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion l10n_ar_account_tax_settlement/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Tax Settlements For Argentina',
'version': "16.0.1.3.0",
'version': "16.0.1.4.0",
'category': 'Accounting',
'website': 'www.adhoc.com.ar',
'license': 'LGPL-3',
Expand Down
Expand Up @@ -33,10 +33,6 @@ class InflationAdjustment(models.TransientModel):
domain=[('deprecated', '=', False)],
required=True,
)
analytic_account_id = fields.Many2one(
'account.analytic.account',
'Analytic Account',
)
start_index = fields.Float(
compute='_compute_index',
)
Expand Down Expand Up @@ -197,7 +193,6 @@ def FormatAmount(amount):
FormatAmount(line.get('balance')), initial_factor * 100.0),
'date_maturity': before_date_from,
'debit' if adjustment > 0 else 'credit': abs(adjustment),
'analytic_account_id': self.analytic_account_id.id,
})
adjustment_total[
'debit' if adjustment > 0 else 'credit'] += abs(adjustment)
Expand Down Expand Up @@ -228,7 +223,6 @@ def FormatAmount(amount):
period.get('factor') * 100.0),
'date_maturity': period.get('date_from'),
'debit' if adjustment > 0 else 'credit': abs(adjustment),
'analytic_account_id': self.analytic_account_id.id,
})
adjustment_total[
'debit' if adjustment > 0 else 'credit'] += abs(adjustment)
Expand All @@ -248,7 +242,6 @@ def FormatAmount(amount):
self.date_from, self.date_to),
'debit' if adj_diff < 0 else 'credit': abs(adj_diff),
'date_maturity': self.date_to,
'analytic_account_id': self.analytic_account_id.id,
})

# Generate account.move
Expand All @@ -258,4 +251,4 @@ def FormatAmount(amount):
'ref': _('Ajuste por inflación %s') % (date_to.year),
'line_ids': [(0, 0, line_data) for line_data in lines],
})
return move.get_access_action()
return {}
Expand Up @@ -12,7 +12,6 @@
<field name="company_id" options="{'no_create': True, 'no_open': True}" groups="base.group_multi_company"/>
<field name="account_id" domain="[('company_id', '=', company_id), ('deprecated', '=', False)]" options="{'no_create': True, 'no_open': True}"/>
<field name="journal_id" domain="[('company_id', '=', company_id)]"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
</group>
<group colspan="4">
<label for="open_cloure_entry"/>
Expand Down

0 comments on commit 5e3053e

Please sign in to comment.