import logging from odoo import _, api, fields, models from odoo.exceptions import UserError class StockQuant(models.Model): _inherit = 'stock.quant'