[REF] * : Remove oe_left of oe_title & oe_avatar

LESS rules (enterprise compatibility) :
* .oe_avatar is float:left by default
* .oe_title is placed between oe_avatar/oe_button_box if any
without the need to make it float
This commit is contained in:
qsm-odoo
2015-08-21 14:31:11 +02:00
parent cb1ce61c84
commit 2a3f359ae8
13 changed files with 33 additions and 36 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
<field name="model">fleet.vehicle.model</field>
<field name="arch" type="xml">
<form string="Model">
<field name="image_medium" widget='image' class="oe_left oe_avatar"/>
<field name="image_medium" widget='image' class="oe_avatar"/>
<div class="oe_title">
<label for="modelname" class="oe_edit_only"/>
<h1>
@@ -98,7 +98,7 @@
<form string="Model Make">
<group>
<div>
<field name="image_medium" widget="image" class="oe_left oe_avatar"/>
<field name="image_medium" widget="image" class="oe_avatar"/>
<label for="name" class="oe_edit_only"/>
<h1>
<field name="name" class="oe_inline" />
@@ -232,7 +232,7 @@
<field name="odometer_count" widget="statinfo" string="Odometer"/>
</button>
</div>
<field name="image_medium" widget='image' class="oe_left oe_avatar"/>
<field name="image_medium" widget='image' class="oe_avatar"/>
<div class="oe_title">
<label for="model_id" class="oe_edit_only"/>
<h1>
+1 -1
View File
@@ -43,7 +43,7 @@
</header>
<sheet>
<div class="oe_button_box" name="button_box"/>
<field name="image" widget='image' class="oe_left oe_avatar"/>
<field name="image" widget='image' class="oe_avatar"/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
+1 -1
View File
@@ -21,7 +21,7 @@
<form string="Employee">
<sheet>
<div class="oe_button_box" name="button_box"/>
<field name="image" widget='image' class="oe_left oe_avatar" options='{"preview_image":"image_medium"}'/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image":"image_medium"}'/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
@@ -73,7 +73,7 @@
<field string="% Happy" name="rating_percentage_satisfaction" widget="statinfo"/>
</button>
</div>
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium"}'/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
+1 -1
View File
@@ -99,7 +99,7 @@
<field name="arch" type="xml">
<form string="Group Form">
<sheet class="openerp_mail_channel_sheet">
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_small"}'/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_small"}'/>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name"/>
+4 -6
View File
@@ -223,12 +223,10 @@
<field name="arch" type="xml">
<form string="Variant Information">
<sheet>
<div class="oe_left" style="width: 500px;">
<field name="image_medium" widget="image" class="oe_avatar oe_left"/>
<div class="oe_title" style="width: 390px;">
<label class="oe_edit_only" for="name" string="Product Name"/>
<h1><field name="name" class="oe_inline"/></h1>
</div>
<field name="image_medium" widget="image" class="oe_avatar"/>
<div class="oe_title">
<label class="oe_edit_only" for="name" string="Product Name"/>
<h1><field name="name" class="oe_inline"/></h1>
</div>
<group>
<p>All general settings about this product are managed on <button name="open_product_template" type="object" string="the product template" class="oe_link"/></p>
@@ -164,7 +164,7 @@
<field name="arch" type="xml">
<form string="Landed Costs">
<sheet>
<field name="image_medium" widget="image" class="oe_avatar oe_left"/>
<field name="image_medium" widget="image" class="oe_avatar"/>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" name='label_name' string="Product Name"/>
@@ -217,23 +217,24 @@ div.o_checkbox {
}
}
+ .oe_title {
width: 400px;
}
+ .oe_avatar {
> img {
max-width: 90px;
max-height: 90px;
}
&, & + .oe_avatar {
+ .oe_title {
width: 400px;
padding-left: 95px;
}
}
}
.oe_avatar {
> img {
max-width: 90px;
max-height: 90px;
}
+ .oe_title {
padding-left: 95px;
}
}
.o_row {
> * {
width: auto!important; // oe_inline
@@ -46,8 +46,8 @@
<field name="website_published" widget="website_button"/>
</button>
</div>
<field name="image" widget="image" class="oe_left oe_avatar" options='{"preview_image": "image_thumb"}'/>
<div class="oe_title oe_left">
<field name="image" widget="image" class="oe_avatar" options='{"preview_image": "image_thumb"}'/>
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" string="Name"/>
</div>
@@ -200,7 +200,7 @@
<field name="website_published" widget="website_button"/>
</button>
</div>
<div class="oe_title oe_left">
<div class="oe_title">
<div class="oe_edit_only">
<label for="name" string="Name"/>
</div>
+1 -1
View File
@@ -73,7 +73,7 @@
<form create="0" edit="0" string="Module">
<link rel="stylesheet" href="/base/static/src/css/description.css"></link>
<sheet>
<field name="icon_image" widget="image" class="oe_avatar oe_left"/>
<field name="icon_image" widget="image" class="oe_avatar"/>
<div class="oe_title">
<h1><field name="shortdesc"/></h1>
<h3 class="oe_fade">
+1 -3
View File
@@ -11,9 +11,7 @@
<div class="oe_button_box" name="button_box">
<button name="%(preview_report)d" string="Preview Header/Footer" type="action"/>
</div>
<div>
<field name="logo" widget="image" class="oe_avatar oe_left"/>
</div>
<field name="logo" widget="image" class="oe_avatar"/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1>
+2 -2
View File
@@ -73,7 +73,7 @@
<field name="model">res.partner</field>
<field name="arch" type="xml">
<form string="Contact">
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium"}'/>
<div class="oe_title">
<field name="company_type" options="{'horizontal': true}" class="oe_edit_only" widget="radio"/>
<h1>
@@ -103,7 +103,7 @@
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<form string="Partner">
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium", "size": [90, 90]}' readonly="1"/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium", "size": [90, 90]}' readonly="1"/>
<div class="oe_title">
<h1>
<field name="name" readonly="1"/>
+2 -2
View File
@@ -134,7 +134,7 @@
<div class="oe_form_box_info oe_text_center" style="margin-bottom: 10px" attrs="{'invisible': [('id', '>', 0)]}">
You are creating a new user. After saving, the user will receive an invite email containing a link to set its password.
</div>
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium"}'/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
@@ -172,7 +172,7 @@
<sheet>
<field name="id" invisible="1"/>
<div class="oe_button_box" name="button_box"/>
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
<field name="image" widget='image' class="oe_avatar" options='{"preview_image": "image_medium"}'/>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>