diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-09-05 21:22:00 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-09-05 21:22:00 +0700 |
| commit | bd7479d645e90509c72a36b2dd9bcf9e6964bcae (patch) | |
| tree | 600e3a47186ac151e186f2f9a3e4b9397a93cf20 | |
| parent | 0a1f22cac507ee7e9975f1a68f79bccdf179c9fd (diff) | |
<miqdad> change field name
| -rw-r--r-- | indoteknik_custom/models/stock_move.py | 5 | ||||
| -rw-r--r-- | 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 @@ </button> <xpath expr="//field[@name='move_ids_without_package']//tree//field[@name='product_id']" position="after"> - <field name="product_image_128" widget="image" + <field name="product_image" widget="image" style="height:128px;width:128px;" readonly="1"/> </xpath> <field name="backorder_id" position="after"> |
