Hi people , i was about upgrading a module but their were errors in the record of the button
this the code xml :
<record model="ir.model.button" id="party_upload_class_button">
<field name="name">upload_cls</field>
<field name="string">upload_cls</field>
<field name="model" search="[('model', '=', 'party.wps')]"/>
</record>
when i typed the command on linux :trytond/bin/trytond-admin -c trytond.conf --all -d testd -vv, it told me this error :
In tag record model ir.model.button with id namemodule.party_upload_class_button.
Traceback (most recent call last):
File "/home/dev/.virtualenvs/namepro/trytond/trytond/convert.py", line 456, in parse_xmlstream
self.sax_parser.parse(source)
File "/usr/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
self.feed(buffer)
File "/usr/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
File "../Modules/pyexpat.c", line 417, in StartElement
File "/usr/lib/python3.7/xml/sax/expatreader.py", line 333, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/dev/.virtualenvs/namepro/trytond/trytond/convert.py", line 492, in startElement
self.taghandler.startElement(name, attributes)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/convert.py", line 228, in startElement
found, = SearchModel.search(eval(search_attr))
ValueError: not enough values to unpack (expected 1, got 0)
Traceback (most recent call last):
File "trytond/bin/trytond-admin", line 21, in <module>
admin.run(options)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/admin.py", line 53, in run
activatedeps=options.activatedeps)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/pool.py", line 160, in init
lang=lang, activatedeps=activatedeps)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/modules/__init__.py", line 420, in load_modules
_load_modules(update)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/modules/__init__.py", line 390, in _load_modules
load_module_graph(graph, pool, update, lang)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/modules/__init__.py", line 232, in load_module_graph
tryton_parser.parse_xmlstream(fp)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/convert.py", line 456, in parse_xmlstream
self.sax_parser.parse(source)
File "/usr/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
self.feed(buffer)
File "/usr/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
self._parser.Parse(data, isFinal)
File "../Modules/pyexpat.c", line 417, in StartElement
File "/usr/lib/python3.7/xml/sax/expatreader.py", line 333, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/dev/.virtualenvs/namepro/trytond/trytond/convert.py", line 492, in startElement
self.taghandler.startElement(name, attributes)
File "/home/dev/.virtualenvs/namepro/trytond/trytond/convert.py", line 228, in startElement
found, = SearchModel.search(eval(search_attr))
ValueError: not enough values to unpack (expected 1, got 0)
anyone can help me please is the code wml of the button wrong , !!! because when i disspear the code , the command work normal and how i can fix that