File tree 2 files changed +5
-4
lines changed
website_sale_product_document
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ def _compute_attachment_id(self):
38
38
)
39
39
if not attachment :
40
40
raise ValidationError (_ ("No attachment found" ))
41
- elif len (attachment ) > 1 :
41
+ if len (attachment ) > 1 :
42
42
raise ValidationError (_ ("More than one attachment found" ))
43
- else :
44
- rec .attachment_id = attachment [0 ]
43
+ rec .attachment_id = attachment [0 ]
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- Copyright NuoBiT Solutions - Kilian Niubo <[email protected] >
3
3
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -->
4
+ <!-- TODO: REVIEW: This view and product_product_views in this module are equivalent.
5
+ Try to unify them https://www.odoo.com/documentation/14.0/developer/reference/addons/views.html#inheritance-fields-->
4
6
<odoo >
5
7
<record
6
8
id =" website_sale_public_description_product_template_view_form"
17
19
<field name =" sequence" widget =" handle" />
18
20
<field name =" name" />
19
21
<field name =" datas" filename =" datas_fname" />
20
- <field name =" datas_fname" />
22
+ <field name =" datas_fname" />
21
23
</tree >
22
24
</field >
23
25
</group >
You can’t perform that action at this time.
0 commit comments