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