cliente.py 303 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 # -*- coding: utf-8 -*- from odoo import models, fields, api, exceptions class asw_cliente(models.Model): _inherit = 'asw.cliente' @api.multi def unlink(self): raise exceptions.Warning("No se pueden borrar clientes fiscales") #return super(asw_cliente, self).unlink()