From a8ea5407be21c56fb29b63de08b40b92a887fa26 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Tue, 16 Aug 2022 15:30:18 +0700 Subject: Membuat fields image_128 di x_manufacture --- indoteknik_custom/models/x_manufactures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indoteknik_custom/models/x_manufactures.py b/indoteknik_custom/models/x_manufactures.py index 8aff7f26..e07f724e 100755 --- a/indoteknik_custom/models/x_manufactures.py +++ b/indoteknik_custom/models/x_manufactures.py @@ -9,6 +9,7 @@ class XManufactures(models.Model): x_name = fields.Char(string="Name") x_description = fields.Html(string="Description") x_logo_manufacture = fields.Binary(string="Logo Manufacture") + x_logo_manufacture_128 = fields.Image("Image 128", related="x_logo_manufacture", max_width=128, max_height=128, store=True) x_manufacture_level = fields.Selection([ ('prioritas', 'Prioritas'), ('gold', 'Gold'), -- cgit v1.2.3