Skip to content

Commit

Permalink
Merge commit 'refs/pull/95125/head' of https://github.com/odoo/odoo i…
Browse files Browse the repository at this point in the history
…nto 15.0-1458
  • Loading branch information
docker-odoo committed Feb 14, 2023
2 parents 553ca0c + f69c78d commit 0c8bc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/purchase/models/analytic_account.py
Expand Up @@ -7,7 +7,7 @@
class AccountAnalyticAccount(models.Model):
_inherit = 'account.analytic.account'

purchase_order_count = fields.Integer("Purchase Order Count", compute='_compute_purchase_order_count')
purchase_order_count = fields.Integer("Purchase Order Count", compute='_compute_purchase_order_count', compute_sudo=True)

@api.depends('line_ids')
def _compute_purchase_order_count(self):
Expand Down

0 comments on commit 0c8bc01

Please sign in to comment.