[IMP] American addresses + better form lyout
bzr revid: fp@tinyerp.com-20120710101106-2zft32zeopyb17v0
This commit is contained in:
parent
7880aa4beb
commit
a4072058fb
|
@ -113,28 +113,21 @@
|
|||
<h1>
|
||||
<field name="name"/>
|
||||
</h1>
|
||||
<div attrs="{'invisible': [('is_company','=', True)]}">
|
||||
<label for="parent_id" class="oe_edit_only"/>
|
||||
</div>
|
||||
<h2 attrs="{'invisible': [('is_company','=', True)]}">
|
||||
<field name="parent_id"
|
||||
domain="[('is_company', '=', True)]" context="{'default_is_company': True}"
|
||||
class="oe_inline"
|
||||
on_change="onchange_address(use_parent_address, parent_id)"/>,
|
||||
<field name="function" class="oe_inline" placeholder="Job Position"/>
|
||||
</h2>
|
||||
<field name="category_id" widget="many2many_tags" placeholder="Tags..."/>
|
||||
</div>
|
||||
|
||||
<group>
|
||||
<group>
|
||||
<field name="parent_id"
|
||||
domain="[('is_company', '=', True)]" context="{'default_is_company': True}"
|
||||
attrs="{'invisible': [('is_company','=', True)]}"
|
||||
on_change="onchange_address(use_parent_address, parent_id)"/>,
|
||||
<label for="type" attrs="{'invisible': [('parent_id','=', False)]}"/>
|
||||
<div attrs="{'invisible': [('parent_id','=', False)]}">
|
||||
<field class="oe_inline"
|
||||
name="type"/>
|
||||
<label for="use_parent_address"/>
|
||||
<field name="use_parent_address"
|
||||
class="oe_inline"
|
||||
<label for="use_parent_address" class="oe_edit_only"/>
|
||||
<field name="use_parent_address" class="oe_edit_only oe_inline"
|
||||
on_change="onchange_address(use_parent_address, parent_id)"/>
|
||||
</div>
|
||||
|
||||
|
@ -143,16 +136,18 @@
|
|||
<field name="street" placeholder="Street..."/>
|
||||
<field name="street2"/>
|
||||
<div>
|
||||
<field name="zip" class="oe_inline" placeholder="ZIP"/>
|
||||
<field name="city" class="oe_inline" placeholder="City"/>
|
||||
<field name="city" placeholder="City" style="width: 45%% !important"/>
|
||||
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 20%% !important"/>
|
||||
<field name="zip" placeholder="ZIP" style="width: 34%% !important"/>
|
||||
</div>
|
||||
<field name="state_id" placeholder="State"/>
|
||||
<field name="country_id" placeholder="Country"/>
|
||||
<field name="country_id" placeholder="Country" class="oe_no_button"/>
|
||||
</div>
|
||||
<field name="website" widget="url" placeholder="www.openerp.com"/>
|
||||
<field name="website" widget="url" placeholder="e.g. www.openerp.com"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="phone" placeholder="+32.81.81.37.00"/>
|
||||
<field name="function" placeholder="Job Position"
|
||||
attrs="{'invisible': [('is_company','=', True)]}"/>
|
||||
<field name="phone" placeholder="e.g. +32.81.81.37.00"/>
|
||||
<field name="mobile"/>
|
||||
<field name="fax"/>
|
||||
<field name="email" widget="email"/>
|
||||
|
|
Loading…
Reference in New Issue