from odoo import models, fields, api from odoo.exceptions import UserError, ValidationError from psycopg2 import sql, DatabaseError from werkzeug import utils class KalachakraProductTemplate(models.Model): _inherit = "product.template" analytic_account_id = fields.Many2one( "account.analytic.account", "Analytic Account", ondelete="restrict", )