5
**Custom view with existing field**
7
Sometimes, views contain fields that we would like to move from place to place. Web client allows you to add new fields, change views...
9
The below image show the option of customizations: Custom views, objects and workflows
11
.. image:: images_custom/1.jpeg
13
Suppose we are on partner menu and we would like to customize the view with adding an existing field 'ean13':
15
Before changes, the partner form looks like:
17
.. image:: images_custom/before_ean13.png
20
To add this field, press on 'manage views' and choose the view 'res.partner.form'.
21
Then, select the field 'name', click on '+' then select ean13 and its position:
23
.. image:: images_custom/ean13.png
25
Refresh client with 'F5' and check the position of EAN13:
27
.. image:: images_custom/after_ean13.png
30
========================
31
Customization of Objects
32
========================
37
In this example, we would like to add a new field on the partner form
38
Here we add a domain activity on the partner, because in tiny we don't have a field like this.
39
Take care of keeping your new field starting with with x_.
41
.. image:: images_custom/2.jpeg
43
You need also to change the appropriate view to see your field on the form.
44
Let's make the activity domain printing after the lang:
46
.. image:: images_custom/3.jpeg
48
when validating, a screen allows you to add more options on, like required, readonly...
50
.. image:: images_custom/3bis.jpeg
52
After refresh, this is how your form looks like:
54
.. image:: images_custom/4.jpeg
62
This how we create a graph, manage views-> new -> then choose the view type 'Graph':
64
.. image:: images_custom/5graph_partner.jpeg
66
Then, set the coordinates:
68
.. image:: images_custom/6graph_view.jpeg
71
To see the graph on the partner, you need to add graph on the view mode:
72
Partners -> Switch(button the right), then change this:
73
view mode becomes: tree,form,graph intead of tree, form
74
then, add the view graph in the array views
75
In this picture, you can see the definition of your graph:
77
.. image:: images_custom/7Graph.jpeg