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-2426
  • Loading branch information
docker-odoo committed May 18, 2023
2 parents b755e9b + f69c78d commit 5320139
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 5320139

Please sign in to comment.