diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-08-03 06:15:54 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-08-03 06:15:54 +0000 |
| commit | 0be8a77f6cbb31d3ac8cf9e3e606d2266a20c2ec (patch) | |
| tree | 6f62bce6e049935b5a85e445ee7d959242fe7e7c /indoteknik_api/controllers/api_v1/lead.py | |
| parent | f0f30aa566c0e49b03fd86f86bbcd80d6c7383ce (diff) | |
| parent | 4a670f1f85848ef46c605fd67ff4e3d305571522 (diff) | |
Merged in production (pull request #80)
Production
Diffstat (limited to 'indoteknik_api/controllers/api_v1/lead.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/lead.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/lead.py b/indoteknik_api/controllers/api_v1/lead.py index df4f46bd..23c3bf99 100644 --- a/indoteknik_api/controllers/api_v1/lead.py +++ b/indoteknik_api/controllers/api_v1/lead.py @@ -20,7 +20,9 @@ class Lead(controller.Controller): if not params['valid']: return self.response(code=400, description=params) - + + params['value']['user_id'] = 20 + lead = request.env['crm.lead'].create(params['value']) return self.response(True)
\ No newline at end of file |
