fix issue with ids

This commit is contained in:
ronozoro 2024-10-07 01:38:11 -07:00
parent 525941d73c
commit 2074608f5b
No known key found for this signature in database
GPG Key ID: 7C2BDED35C62C0F3
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ class AccountMove(models.Model):
_("The Expense account %s is assigned to more than one budget position %s")%(line.account_id.name,[x.name for x in budget_post]))
budget_lines = self.env['crossovered.budget.lines'].search(
[('analytic_account_id', '=', line.analytic_account_id.id),
('general_budget_id', 'in', budget_post),
('general_budget_id', 'in', budget_post.ids),
('crossovered_budget_id.state', '=', 'done'),
('crossovered_budget_id.date_from', '<=', self.invoice_date),
('crossovered_budget_id.date_to', '>=', self.invoice_date)])

View File

@ -148,7 +148,7 @@ class AccountMove(models.Model):
self.account_id.name, [x.name for x in budget_post]))
budget_lines = self.env['crossovered.budget.lines'].search(
[('analytic_account_id', '=', self.analytic_account_id.id),
('general_budget_id', 'in', budget_post),
('general_budget_id', 'in', budget_post.ids),
('crossovered_budget_id.state', '=', 'done'),
('crossovered_budget_id.date_from', '<=', self.date),
('crossovered_budget_id.date_to', '>=', self.date)])