XML UPDATE MODIFICATION

45 views
Skip to first unread message

John Peter

unread,
Dec 17, 2015, 2:15:05 PM12/17/15
to tryton
Hi Guys,
I am kinda new to tryton from Nairobi Kenya,
I have a problem while updating xml for form view. I get this error and the form is not changed:

7508 140179201341184 [2015-12-17 16:43:01,062] WARNING trytond.convert Field arch of 9...@ir.ui.view not updated (id: hello_view_form), because it has changed since the last update


Is there a way to make xml updated? i had to delete my whole database to get my xml view changed.

I will really appreciate any help. thanks.

Sergi Almacellas Abellana

unread,
Dec 18, 2015, 5:11:30 AM12/18/15
to try...@googlegroups.com
El 17/12/15 a les 19:41, John Peter ha escrit:
> Hi Guys,
> I am kinda new to tryton from Nairobi Kenya,
> I have a problem while updating xml for form view. I get this error and the form is not changed:
>
> *_7508 140179201341184 [2015-12-17 16:43:01,062] WARNING trytond.convert
> Field arch of 9...@ir.ui.view not updated (id: hello_view_form), because
> it has changed since the last update _*

It says that some data loaded by xml have changed in the database, so it
throws a warning and respect the database values.

BTW: You are using the arch field of ir.ui.view, which I will not
recomend to use. It's better to use the name attribute which will
indicate the name of the xml for the file in the view folder of the module.

>
> Is there a way to make xml updated? i had to delete my whole database to get my xml view changed.
>
There is a force sync button in Ir Model data, that you can use to force
the update from the xml values.

> I will really appreciate any help. thanks.
>
Hope it helps!
> --
> 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/b3aaa364-9b67-499a-941a-c49551da242d%40googlegroups.com
> <https://groups.google.com/d/msgid/tryton/b3aaa364-9b67-499a-941a-c49551da242d%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

John Peter

unread,
Dec 18, 2015, 10:05:06 AM12/18/15
to tryton
Hi, 
Thanks for your prompt response,
Kindly advise me on what is the best way to edit my xml and view changes on the client. I was adding new fields on the form view when i got this error.

Thanks in advance.

Cédric Krier

unread,
Dec 18, 2015, 10:30:04 AM12/18/15
to tryton
On 2015-12-18 06:37, John Peter wrote:
> Hi,
> Thanks for your prompt response,
> Kindly advise me on what is the best way to edit my xml and view changes on
> the client. I was adding new fields on the form view when i got this error.

Normally, you should never update record that are created by module.
There is a check for that by default in Tryton (but it doesn't
completely work for the view if you edit the arch field when the record
was created using a local xml view).

For proper customization of the view, you should follow:
http://doc.tryton.org/3.8/trytond/doc/topics/views/extension.html#topics-extension
You can create the extension record from a module but also from the
client if you want.

PS: Please don't top-post on this mailing nor use uppercase subject (it
can be felt as aggressive), see http://groups.tryton.org/netiquette

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages