Skip to content

Commit

Permalink
Revert "[FIX] public_budget:"
Browse files Browse the repository at this point in the history
This reverts commit 0eee2ba.
  • Loading branch information
zaoral committed Jan 4, 2023
1 parent 0eee2ba commit 8b69fe5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions public_budget/models/account_move.py
Expand Up @@ -188,9 +188,3 @@ def unlink(self):
self.filtered(lambda x: x.move_type in x.get_purchase_types() and x.state in (
'draft', 'cancel') and not x.l10n_latam_use_documents).write({'name': '/'})
return super().unlink()

@api.model
def _deduce_sequence_number_reset(self, name):
if self.env.context.get("from_payment_group"):
return 'never'
return super()._deduce_sequence_number_reset(name)
1 change: 0 additions & 1 deletion public_budget/models/account_payment_group.py
Expand Up @@ -147,7 +147,6 @@ def _compute_withholding_lines(self):
'tax_line_id')

def post(self):
self = self.with_context(from_payment_group=True)
for rec in self:
# si no estaba seteada la setamos
if not rec.payment_date:
Expand Down

0 comments on commit 8b69fe5

Please sign in to comment.