# -*- coding: utf-8 -*-
# Copyright 2017 Rooms For (Hong Kong) Limted T/A OSCG
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import models, fields, api
import openerp.addons.decimal_precision as dp


class QuantsExtended(models.Model):
    _inherit = "stock.quant"
    image_small = fields.Binary(
        'Image',
        related='product_id.product_tmpl_id.image_small',
    )

