Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Maria Agustina
/
tpv_correcciones
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit ad7d1eb1
authored
2022-10-24 09:58:45 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bloquear borrado de cliente fiscal
1 parent
f5430cb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
models/cliente.py
models/cliente.py
0 → 100644
View file @
ad7d1eb
# -*- 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
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment