[SOLVED] issue in permissions

This commit is contained in:
ahiexp 2025-06-04 22:12:22 +04:00
parent 6e51b2d794
commit e770505177
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class ProductTemplate_Inherit(models.Model):
# ('move_id.move_type', '=', 'out_invoice'), ('move_id.payment_state', '=', 'paid'),
# ('product_id.product_tmpl_id', '=', rec.id)
# ])
all_invoices_paid = self.env['account.move.line'].search(
all_invoices_paid = self.env['account.move.line'].sudo().search(
[
('move_id.move_type', '=', 'out_invoice'), ('move_id.payment_state', '=', 'paid'),
('product_id.product_tmpl_id', '=', rec.id)