Merge pull request #1458 from expsa/pla-85554-fix-issue-with-ids
fix issue with ids
This commit is contained in:
commit
5ded02f7c1
|
|
@ -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)])
|
||||
|
|
|
|||
|
|
@ -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)])
|
||||
|
|
|
|||
Loading…
Reference in New Issue