Hi,
I have defined a simple model and list, form, and menu via XML (similar to the tutorial) – when I click on the menu in the web (sao), the “switch” and “new” buttons do not work at first, only after I have refreshed the page in the browser.
‘trytond-admin -d test --all’
No errors are returned, even when logging ‘trytond’.
I haven’t found anything that has helped me (e.g., pool.register() or ‘_name_’ look correct to me); it’s probably a beginner’s mistake - does anyone know what the problem is?
The “swicth” button is only available when a record is selected and if there is a second view.
And the “new” button is only available when there is an editable view defined for the action.
So I’m wondering if you have well define the form view in the list of views of the action.
Thank you very much for your reply—that’s right. I also created an entry, but it only works when I press “refresh” in the browser. So, after pressing “refresh,” I created an entry using the “new” button, which can then be selected—but I can only call up “switch” and ‘new’ when I press “refresh” in the browser. When I start the function from the menu, the buttons unfortunately don’t work—any ideas?
This is what I suspected. You defined only a list view for the action so there is no editable view to create new record. You must register also a form view for that.