cliente.py 303 Bytes
# -*- 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()