From bd7479d645e90509c72a36b2dd9bcf9e6964bcae Mon Sep 17 00:00:00 2001 From: Miqdad Date: Fri, 5 Sep 2025 21:22:00 +0700 Subject: change field name --- indoteknik_custom/models/stock_move.py | 5 ++++- indoteknik_custom/views/stock_picking.xml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/stock_move.py b/indoteknik_custom/models/stock_move.py index d4106830..9ec36fcd 100644 --- a/indoteknik_custom/models/stock_move.py +++ b/indoteknik_custom/models/stock_move.py @@ -1,6 +1,9 @@ from odoo import fields, models, api from odoo.tools.misc import format_date, OrderedSet from odoo.exceptions import UserError +import logging + +_logger = logging.getLogger(__name__) class StockMove(models.Model): _inherit = 'stock.move' @@ -15,7 +18,7 @@ class StockMove(models.Model): barcode = fields.Char(string='Barcode', related='product_id.barcode') vendor_id = fields.Many2one('res.partner' ,string='Vendor') hold_outgoingg = fields.Boolean('Hold Outgoing', default=False) - product_image_128 = fields.Image('Product Image', related='product_id.image_1920') + product_image= fields.Image('Product Image', related='product_id.image_1920') # @api.model_create_multi # def create(self, vals_list): diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index e230bccc..c8aa6454 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -101,7 +101,7 @@ - -- cgit v1.2.3