Skip to content

Commit 2dfec51

Browse files
committed
[MIG][9.0] base_multi_image
1 parent a503b1f commit 2dfec51

File tree

3 files changed

+61
-56
lines changed

3 files changed

+61
-56
lines changed

base_multi_image/README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Usage
2222

2323
To manage all stored images, you need to:
2424

25-
* Go to *Settings > Configuration > Multi images*.
25+
* Go to *Settings > Technical > Multi images*.
2626

2727
... but you probably prefer to manage them from the forms supplied by
2828
submodules that inherit this behavior.
@@ -71,7 +71,7 @@ To develop a module based on this one:
7171

7272
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
7373
:alt: Try me on Runbot
74-
:target: https://runbot.odoo-community.org/runbot/149/8.0
74+
:target: https://runbot.odoo-community.org/runbot/149/9.0
7575

7676
Known issues / Roadmap
7777
======================
@@ -90,7 +90,7 @@ help us smashing it by providing a detailed and welcomed `feedback
9090
<https://github.com/OCA/
9191
server-tools/issues/new?body=module:%20
9292
base_multi_image%0Aversion:%20
93-
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
93+
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
9494

9595
Credits
9696
=======
@@ -106,6 +106,7 @@ Contributors
106106
* Pedro M. Baeza <[email protected]>
107107
* Rafael Blasco <[email protected]>
108108
* Jairo Llopis <[email protected]>
109+
* Sodexis <[email protected]>
109110

110111
Maintainer
111112
----------

base_multi_image/__openerp__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
# © 2014 Serv. Tecnol. Avanzados (http://www.serviciosbaeza.com)
33
# Pedro M. Baeza <[email protected]>
44
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
5+
# © 2016 Sodexis
56
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
67

78
{
89
"name": "Multiple images base",
910
"summary": "Allow multiple images for database objects",
10-
"version": "8.0.2.0.0",
11+
"version": "9.0.1.0.0",
1112
"author": "Serv. Tecnol. Avanzados - Pedro M. Baeza, "
12-
"Antiun Ingeniería, S.L., "
13+
"Antiun Ingeniería, S.L., Sodexis, "
1314
"Odoo Community Association (OCA)",
1415
"license": "AGPL-3",
1516
"website": "http://www.antiun.com",

base_multi_image/views/image_view.xml

Lines changed: 54 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,61 @@
77
<field name="model">base_multi_image.image</field>
88
<field name="arch" type="xml">
99
<form string="Image">
10-
<group>
11-
<group
12-
string="Owner"
13-
attrs="{
14-
'invisible': [
15-
('show_technical', '=', False),
16-
],
17-
}">
18-
<field name="show_technical" invisible="True"/>
19-
<field name="owner_model"/>
20-
<field name="owner_id"/>
21-
<field name="sequence"/>
22-
</group>
23-
<group string="Name">
24-
<field name="name"/>
25-
<field name="storage"/>
26-
<field name="extension"/>
27-
</group>
28-
</group>
29-
<group>
30-
<group string="Options">
31-
<field
32-
name="url"
33-
attrs="{
34-
'invisible': [('storage', '!=', 'url')],
35-
'required': [('storage', '=', 'url')],
36-
}"
37-
widget="url"/>
38-
<field
39-
name="path"
10+
<sheet>
11+
<group>
12+
<group
13+
string="Owner"
4014
attrs="{
41-
'invisible': [('storage', '!=', 'file')],
42-
'required': [('storage', '=', 'file')],
43-
}"/>
44-
<field name="filename" invisible="1"/>
45-
<field
46-
name="file_db_store"
47-
attrs="{
48-
'invisible': [('storage', '!=', 'db')],
49-
'required': [('storage', '=', 'db')],
50-
}"
51-
filename="filename"/>
15+
'invisible': [
16+
('show_technical', '=', False),
17+
],
18+
}">
19+
<field name="show_technical" invisible="True"/>
20+
<field name="owner_model"/>
21+
<field name="owner_id"/>
22+
<field name="sequence"/>
23+
</group>
24+
<group string="Name">
25+
<field name="name"/>
26+
<field name="storage"/>
27+
<field name="extension"/>
28+
</group>
29+
</group>
30+
<group>
31+
<group string="Options">
32+
<field
33+
name="url"
34+
attrs="{
35+
'invisible': [('storage', '!=', 'url')],
36+
'required': [('storage', '=', 'url')],
37+
}"
38+
widget="url"/>
39+
<field
40+
name="path"
41+
attrs="{
42+
'invisible': [('storage', '!=', 'file')],
43+
'required': [('storage', '=', 'file')],
44+
}"/>
45+
<field name="filename" invisible="1"/>
46+
<field
47+
name="file_db_store"
48+
attrs="{
49+
'invisible': [('storage', '!=', 'db')],
50+
'required': [('storage', '=', 'db')],
51+
}"
52+
filename="filename"/>
53+
</group>
54+
<group string="Preview">
55+
<field name="image_medium"
56+
widget="image"
57+
readonly="True"
58+
nolabel="1" />
59+
</group>
5260
</group>
53-
<group string="Preview">
54-
<field name="image_medium"
55-
widget="image"
56-
readonly="True"
57-
nolabel="1" />
61+
<group string="Comments">
62+
<field name="comments" nolabel="1" />
5863
</group>
59-
</group>
60-
<group string="Comments">
61-
<field name="comments" nolabel="1" />
62-
</group>
64+
</sheet>
6365
</form>
6466
</field>
6567
</record>
@@ -131,12 +133,13 @@
131133
<field name="name">Multi images</field>
132134
<field name="res_model">base_multi_image.image</field>
133135
<field name="view_mode">kanban,tree,form</field>
136+
<field name="help">Click to add multiple image</field>
134137
</record>
135138

136139
<menuitem
137140
id="image_menu"
138141
action="image_action"
139-
parent="base.menu_config"/>
142+
parent="base.menu_custom"/>
140143

141144
</data>
142145
</openerp>

0 commit comments

Comments
 (0)