Commit ad7d1eb1 by juan

Bloquear borrado de cliente fiscal

1 parent f5430cb6
# -*- 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()
\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!