How to Create indiviual views in the Client itself?

Hello everyone,
Currently I am in charge of checking if we can use Trytin for our company. So I set up a test server.

I am trying to create a view that shows the current stock in a warehouse split by LOT and(!) showing the expiry date.

But I can’t find a way to create this view in the GUI.

The view should look like this

<?xml version="1.0"?>

Is something like this possible in the GUI or not?
If Yes is there any documentation to check?

Thanks :slight_smile:

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.

Hi Ced, thank you for the answer.

My results are the following:

  1. 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

  1. 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”.

So what can i do in this cases?

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

No, you can.

This is a bug introduced in series 7.2: Create views in User Interfacte menu, raise ApplicationError module)=() is not present in table "ir_module". (#13816) · Issues · Tryton / Tryton · GitLab