El 27/05/16 a les 07:00, Akshay patel ha escrit:
Hello,
I try to edit contact as follow:
Why are you using directly the API instead the tryton client or proteus
or some web wrapper like flask-tryton?
*{*
*"method": "model.party.contact_mechanism.write",*
*"params": [5, "dcf8e8132dbc4c8986f3e6716b762xa5", [5], {*
*"skype": "XXXXX"*
*}, {*
*"ids": [5],*
*"values": {*
*"skype": "XXXXX"*
*}*
*}]*
*}*
You have to pass a list of ids, values, ids, values. See:
http://doc.tryton.org/4.0/trytond/doc/ref/models/models.html?highlight=write#trytond.model.ModelStorage.write
Why are you passing two times the same id?
Why you put the ids inside of the second values?
*
*
*But I getting Error:*
*
*
{
"id": 0,
"error": [
"UserError",
[
"You try to write on records that don't exist anymore.\n(Document
type: party.contact_mechanism)",
""
]
]
}
Even though Record Exists & I am able to change its name.
Thank you
--
You received this message because you are subscribed to the Google
Groups "tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/01fcfb96-7d3e-4941-a8ec-ffcd6bcf7e68%40googlegroups.com
<https://groups.google.com/d/msgid/tryton/01fcfb96-7d3e-4941-a8ec-ffcd6bcf7e68%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/574832C3.3030900%40koolpi.com.