summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_move.py
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-09-15 13:40:46 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-09-15 13:40:46 +0700
commit2f835b71aaad9d2d6fef1fafcb600bf50b034f2b (patch)
tree1e4463e3b4fd8f86231625253152bc2a8d7ea215 /indoteknik_custom/models/stock_move.py
parenta47bdc61945b8ab153d80590f06975210f8d2a80 (diff)
parentcf64a8c5913308c3121a55b1b4cd1acf17c86d73 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into cbd-apt
merge
Diffstat (limited to 'indoteknik_custom/models/stock_move.py')
-rw-r--r--indoteknik_custom/models/stock_move.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_move.py b/indoteknik_custom/models/stock_move.py
index 90ab30a4..d6505a86 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,6 +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 = fields.Binary(related="product_id.image_128", string="Product Image", readonly=True)
# @api.model_create_multi
# def create(self, vals_list):