mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 13:46:54 +00:00
Merge pull request #84 from SergeoLacruz/master
Added a line to upload a picture to the part
This commit is contained in:
commit
ddac1f425a
@ -118,6 +118,9 @@ WeightTemplate = ParameterTemplate.create(api, { 'name' : 'Weight', 'units' : 'k
|
|||||||
## Now we create the parameters
|
## Now we create the parameters
|
||||||
ParameterLength = Parameter.create(api, { 'part': couch.pk, 'template': LengthTemplate.pk, 'data' : 2 })
|
ParameterLength = Parameter.create(api, { 'part': couch.pk, 'template': LengthTemplate.pk, 'data' : 2 })
|
||||||
ParameterWeight = Parameter.create(api, { 'part': couch.pk, 'template': WeightTemplate.pk, 'data' : 60 })
|
ParameterWeight = Parameter.create(api, { 'part': couch.pk, 'template': WeightTemplate.pk, 'data' : 60 })
|
||||||
|
|
||||||
|
## Add a picture to the part
|
||||||
|
couch.upload_image('my_nice_couch.jpg')
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Adding a location to the sofa
|
#### Adding a location to the sofa
|
||||||
|
Loading…
x
Reference in New Issue
Block a user