diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-08-16 15:30:18 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-08-16 15:30:18 +0700 |
| commit | a8ea5407be21c56fb29b63de08b40b92a887fa26 (patch) | |
| tree | 3c18862efdba8dd9fbd23947d8c824e93608a0ff /indoteknik_custom | |
| parent | 2d400be8110ebc7471022455c59a135658d014ed (diff) | |
Membuat fields image_128 di x_manufacture
Diffstat (limited to 'indoteknik_custom')
| -rwxr-xr-x | indoteknik_custom/models/x_manufactures.py | 1 |
1 files changed, 1 insertions, 0 deletions
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'), |
