-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from INRIM/t_12707
[ADD] added anag_avanzamento_rich get rest api
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
inrim_controllo_accessi_api/controllers/anag_avanzamento_rich.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from odoo import http | ||
|
||
from .api_controller_inrim import InrimApiController, BadRequest | ||
|
||
class InrimApiAnagAvanzamentoRich(InrimApiController): | ||
|
||
@http.route('/api/anag_avanzamento_rich', auth="none", type='http', methods=['GET'], | ||
csrf=False) | ||
def api_get_ca_anag_avanzamento_rich(self, **params): | ||
self.check_token('ca.anag_avanzamento_rich', 'read') | ||
return self.handle_response( | ||
*self.model.rest_get(params), is_list=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
questo model e' di inrim_controllo_accessi_richieste_accesso e
le api vanno nel controller di quel modulo