Usually we do not create nor extend views from the UI but it is indeed possible.
You can create a new view but then it will probably not be used by any action unless you link it to some action.
You can also extend an existing view (the most common case).
In each case you need to write the proper XML content following the syntax.
New View
so i tried the following (Tryton 7.4)
Administration->User Interface->Views ==> New
Model: Stock Loot
View Type: Tree
Inherited View, Children Field, Module : all empty
Then i get it App-Error:
Fault: insert or update on table “ir_ui_view” violates foreign key constraint “ir_ui_view_module_name_fkey”
DETAIL: Key (module)=() is not present in table “ir_module”.
So this path was and is not working
Extend View
Administration->User Interface->Views ==> Select View “Stock Lot” (View Type Tree)
Crtl+D Copies the view
then Open the New Stock Lot View
→ Extension New → and here Model Stock LOT and View Achritecture filled with:
Save and then Save the Data Record.
And here we get the same Error:
Fault: insert or update on table “ir_ui_view” violates foreign key constraint “ir_ui_view_module_name_fkey”
DETAIL: Key (module)=() is not present in table “ir_module”.
There is a misunderstanding. you cannot extend the view from the client.You have, as @ced wrote, to extend the view by creating a module (see module tutorial in the documentation) and in such extend the view. This basically means, that you create xml and python code. After creation of the module, you install that new module.
Regards, Jakob