Hengkyz

Results 8 comments of Hengkyz

@anrepham hi you need to add the authorization in the http header, it will be easier if you user nginx or apache as reverse proxy then add the header there

``` this._angularOdooService.call('crm.stage', 'create', [{ 'name':this.crmStageForm.controls['name'].value, 'usage':this.crmStageForm.controls['usage'].value, 'probability':0}], {}) .subscribe(res => { this._router.navigate(['/crm/crm-stage/'+res.result+'/view']); this._snackBarService.open('Data succesfully created', '', { duration: 8000 }) }) ``` that is the example, how to create, indeed...

``` [{ 'name':this.crmStageForm.controls['name'].value, 'usage':this.crmStageForm.controls['usage'].value, 'probability':0}] ``` put the value there

like i told you you in your previous question, you should learn about angular2 form, to catch the input from the user. then put that input in the dict that...

please close the issue

the error because you did not declare the crmStageFrom in your class, `this. crmStageForm = this.fb.group({ name: [null], });`

hy @MeriemBo you cant subscribe the promise type, you should use ".then" instead of subscribe

@drm-code any issue? please feel free to create new issue, i will help you