diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-05-30 11:22:01 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-05-30 11:22:01 +0700 |
| commit | 26fcacb9d06e6ddf7e9487a55e7b96692042d8bf (patch) | |
| tree | 5979fe897e2e929c73c15ff3195be3931da491bb /fixco_api/controllers/controller.py | |
| parent | 4b2951b33fb717c0f22203a7121be241a9d16139 (diff) | |
add api create sale order header and line
Diffstat (limited to 'fixco_api/controllers/controller.py')
| -rw-r--r-- | fixco_api/controllers/controller.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fixco_api/controllers/controller.py b/fixco_api/controllers/controller.py index 0fef51b..4d0ba31 100644 --- a/fixco_api/controllers/controller.py +++ b/fixco_api/controllers/controller.py @@ -55,7 +55,7 @@ class Controller(http.Controller): authorization = wsgienv['HTTP_AUTHORIZATION'] except: authorization = None - request.session.authenticate(config.get('db_name'), 'stephan@indoteknik.co.id', 'P@ssvv0rd755') + request.session.authenticate(config.get('db_name'), 'it@fixcomart.co.id', 'P@ssvv0rd755') token = request.env['ir.config_parameter'].sudo().get_param('rest_api_token') or '' result = False if authorization == token: @@ -139,6 +139,8 @@ class Controller(http.Controller): ] + headers) def unauthorized_response(self): + test = "masuk kesini unauthorized response" + print(test) return self.response(code=401, description='Unauthorized') def search_filter(self, model: str, kw: dict, query: array = []): |
