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 @@
from . import product_template
@@ -0,0 +1,22 @@
from odoo import api, models, Command
class ProductTemplate(models.Model):
_inherit = 'product.template'
@api.model
def _update_product_by_barcodelookup(self, product, barcode_lookup_data):
product.ensure_one()
description = super()._update_product_by_barcodelookup(product, barcode_lookup_data)
if not product.description_ecommerce:
product.description_ecommerce = description
return description
def _set_lookup_image(self, product, img):
image = super()._set_lookup_image(product, img)
if image is not True:
self.product_template_image_ids = [Command.create({
'name': product.name,
'image_1920': image,
})]
return image