Skip to content

Commit

Permalink
Merge commit 'refs/pull/160430/head' of https://github.com/odoo/odoo
Browse files Browse the repository at this point in the history
…into 17.0-6477
  • Loading branch information
docker-odoo committed Apr 10, 2024
2 parents c98576f + 6fa0bf8 commit 4a93fb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/account/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ def _compute_name(self):
values.append(product.description_purchase)
line.name = '\n'.join(values)

@api.depends('display_type', 'company_id')
def _compute_account_id(self):
term_lines = self.filtered(lambda line: line.display_type == 'payment_term')
if term_lines:
Expand All @@ -533,6 +534,7 @@ def _compute_account_id(self):
WHERE line.move_id = ANY(%(move_ids)s)
AND line.display_type = 'payment_term'
AND line.id != ANY(%(current_ids)s)
AND company_id = ANY(%(company_ids)s)
),
properties AS(
SELECT DISTINCT ON (property.company_id, property.name, property.res_id)
Expand Down

0 comments on commit 4a93fb5

Please sign in to comment.