chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class StockMoveLine(models.Model):
_inherit = 'stock.move.line'
def _unlink_quality_check(self):
if self.env.user.partner_id.is_subcontractor and not self.env.su:
super(StockMoveLine, self.sudo())._unlink_quality_check()
self.sudo(False)
else:
super()._unlink_quality_check()