[IMP] *: use 'o_row' instead of 'oe_inline'
This will fix UI glitch for fields added in form view side by side to get fields on same line and also to get space between two fields use o_row oe_inline is used to put two elements on same line but it is used mostly where 1 element is field and second one is static string maybe in span, oe_inline on two field creates glitch in UI, to have two fields or divs on same line we should use o_row class, o_row class meant to do that task-31003
This commit is contained in:
committed by
Mohammed Shekha
parent
d2ed857608
commit
a57863f5a4
@@ -89,9 +89,9 @@
|
||||
widget="many2one_barcode"
|
||||
/>
|
||||
<label for="quantity"/>
|
||||
<div>
|
||||
<field name="quantity" class="oe_inline"/>
|
||||
<field name="uom_id" class="oe_inline" groups="uom.group_uom"/>
|
||||
<div class="o_row">
|
||||
<field name="quantity"/>
|
||||
<field name="uom_id" groups="uom.group_uom"/>
|
||||
</div>
|
||||
<field name="price_unit"/>
|
||||
<field name="discount" groups="base.group_no_one"/>
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
</group>
|
||||
<group>
|
||||
<label for="duration"/>
|
||||
<div>
|
||||
<field name="duration" class="oe_inline"/>
|
||||
<field name="interval" class="oe_inline ml8"/>
|
||||
<div class="o_row">
|
||||
<field name="duration"/>
|
||||
<field name="interval"/>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
/>
|
||||
<field name="unit_amount" required="1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
||||
<label for="quantity"/>
|
||||
<div>
|
||||
<div class="o_row">
|
||||
<field name="quantity" class="oe_inline"/>
|
||||
<field name="product_uom_id" required="1" widget="selection" class="oe_inline" groups="uom.group_uom"/>
|
||||
</div>
|
||||
|
||||
@@ -150,16 +150,16 @@
|
||||
</group>
|
||||
<group string="Contract">
|
||||
<label for="salary_expected"/>
|
||||
<div>
|
||||
<field name="salary_expected" class="oe_inline"/>
|
||||
<span class="oe_inline" attrs="{'invisible':[('salary_expected_extra','=',False)]}"> + </span>
|
||||
<field name="salary_expected_extra" class="oe_inline" placeholder="Extra advantages..."/>
|
||||
<div class="o_row">
|
||||
<field name="salary_expected"/>
|
||||
<span attrs="{'invisible':[('salary_expected_extra','=',False)]}"> + </span>
|
||||
<field name="salary_expected_extra" placeholder="Extra advantages..."/>
|
||||
</div>
|
||||
<label for="salary_proposed"/>
|
||||
<div>
|
||||
<field name="salary_proposed" class="oe_inline"/>
|
||||
<span class="oe_inline" attrs="{'invisible':[('salary_proposed_extra','=',False)]}"> + </span>
|
||||
<field name="salary_proposed_extra" class="oe_inline" placeholder="Extra advantages..."/>
|
||||
<div class="o_row">
|
||||
<field name="salary_proposed"/>
|
||||
<span attrs="{'invisible':[('salary_proposed_extra','=',False)]}"> + </span>
|
||||
<field name="salary_proposed_extra" placeholder="Extra advantages..."/>
|
||||
</div>
|
||||
<field name="availability"/>
|
||||
<field name="emp_id" invisible="1"/>
|
||||
|
||||
@@ -90,9 +90,9 @@
|
||||
</group>
|
||||
<group name="membership_details">
|
||||
<label for="membership_date_from" string="Membership Duration"/>
|
||||
<div>
|
||||
<field name="membership_date_from" required="1" class="oe_inline"/> -
|
||||
<field name="membership_date_to" required="1" class="oe_inline"/>
|
||||
<div class="o_row">
|
||||
<field name="membership_date_from" required="1"/> -
|
||||
<field name="membership_date_to" required="1"/>
|
||||
</div>
|
||||
<field name="list_price" string="Membership Fee"/>
|
||||
<field
|
||||
|
||||
@@ -633,16 +633,16 @@
|
||||
<group string="Price List">
|
||||
<field name="product_tmpl_id" string="Product" invisible="context.get('visible_product_tmpl_id', True)"/>
|
||||
<label for="min_qty"/>
|
||||
<div>
|
||||
<field name="min_qty" class="oe_inline"/>
|
||||
<field name="product_uom" class="oe_inline" groups="uom.group_uom"/>
|
||||
<div class="o_row">
|
||||
<field name="min_qty"/>
|
||||
<field name="product_uom" groups="uom.group_uom"/>
|
||||
</div>
|
||||
<label for="price"/>
|
||||
<div>
|
||||
<field name="price" class="oe_inline"/><field name="currency_id" class="oe_inline" groups="base.group_multi_currency"/>
|
||||
<div class="o_row">
|
||||
<field name="price"/><field name="currency_id" groups="base.group_multi_currency"/>
|
||||
</div>
|
||||
<label for="date_start" string="Validity"/>
|
||||
<div><field name="date_start" class="oe_inline"/> to <field name="date_end" class="oe_inline"/></div>
|
||||
<div class="o_row"><field name="date_start"/> to <field name="date_end"/></div>
|
||||
</group>
|
||||
<group string="Other Information" groups="base.group_multi_company">
|
||||
<field name="company_id" options="{'no_create': True}"/>
|
||||
|
||||
@@ -214,10 +214,9 @@
|
||||
widget="many2one_barcode"
|
||||
/>
|
||||
<label for="product_qty"/>
|
||||
<div>
|
||||
<field name="product_qty" class="oe_inline"/>
|
||||
<span class="oe_inline"> </span>
|
||||
<field name="product_uom" groups="uom.group_uom" class="oe_inline"/>
|
||||
<div class="o_row">
|
||||
<field name="product_qty"/>
|
||||
<field name="product_uom" groups="uom.group_uom"/>
|
||||
</div>
|
||||
<field name="price_unit"/>
|
||||
</group>
|
||||
@@ -466,9 +465,9 @@
|
||||
<group>
|
||||
<field name="product_id" readonly="1"/>
|
||||
<label for="product_qty"/>
|
||||
<div>
|
||||
<field name="product_qty" readonly="1" class="oe_inline"/>
|
||||
<field name="product_uom" readonly="1" groups="uom.group_uom" class="oe_inline"/>
|
||||
<div class="o_row">
|
||||
<field name="product_qty" readonly="1"/>
|
||||
<field name="product_uom" readonly="1" groups="uom.group_uom"/>
|
||||
</div>
|
||||
<field name="price_unit"/>
|
||||
</group>
|
||||
|
||||
@@ -213,9 +213,9 @@
|
||||
<field name="date_to"/>
|
||||
<field name="dayofweek"/>
|
||||
<label for="hour_from" string="Hours"/>
|
||||
<div>
|
||||
<field name="hour_from" widget="float_time" class="oe_inline"/> -
|
||||
<field name="hour_to" widget="float_time" class="oe_inline"/>
|
||||
<div class="o_row">
|
||||
<field name="hour_from" widget="float_time"/> -
|
||||
<field name="hour_to" widget="float_time"/>
|
||||
</div>
|
||||
<field name="day_period"/>
|
||||
</group>
|
||||
|
||||
@@ -313,15 +313,15 @@
|
||||
<field name="price_tax" invisible="1"/>
|
||||
<field name="price_subtotal" invisible="1"/>
|
||||
<label for="product_uom_qty"/>
|
||||
<div>
|
||||
<div class="o_row">
|
||||
<field
|
||||
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom, 'uom_qty_change':True, 'company_id': parent.company_id}"
|
||||
name="product_uom_qty" class="oe_inline"/>
|
||||
name="product_uom_qty"/>
|
||||
<field
|
||||
name="product_uom"
|
||||
force_save="1"
|
||||
groups="uom.group_uom"
|
||||
class="oe_inline oe_no_button"
|
||||
class="oe_no_button"
|
||||
attrs="{
|
||||
'readonly': [('state', 'in', ('sale', 'done', 'cancel'))],
|
||||
'required': [('display_type', '=', False)],
|
||||
|
||||
@@ -18,12 +18,11 @@
|
||||
attrs="{'readonly': [('product_has_variants', '=', False)]}"/>
|
||||
<field name="product_uom_category_id" invisible="1"/>
|
||||
<label for="quantity"/>
|
||||
<div>
|
||||
<field name="quantity" class="oe_inline"/>
|
||||
<div class="o_row">
|
||||
<field name="quantity" />
|
||||
<field name="product_uom_id"
|
||||
domain="[('category_id', '=', product_uom_category_id)]"
|
||||
groups="uom.group_uom"
|
||||
class="oe_inline"/>
|
||||
groups="uom.group_uom"/>
|
||||
</div>
|
||||
<field name="date_planned"/>
|
||||
<field name="warehouse_id"
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
<group string="Orders">
|
||||
<field name="default_order"/>
|
||||
<label for="relevancy_post_vote" string="Relevance Computation" groups="base.group_no_one"/>
|
||||
<div groups="base.group_no_one">
|
||||
(votes - 1) ** <field name="relevancy_post_vote" class="oe_inline"/> / (days + 2) ** <field name="relevancy_time_decay" class="oe_inline"/>
|
||||
<div groups="base.group_no_one" class="o_row">
|
||||
(votes - 1) ** <field name="relevancy_post_vote"/> / (days + 2) ** <field name="relevancy_time_decay"/>
|
||||
</div>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user