[FIX] base: address layout css
The double % was not understood by some browsers (e.g. Firefox). No need for escaping in this block. Fixes #4142
This commit is contained in:
parent
7ede1bc1c6
commit
db98d0771a
|
@ -34,16 +34,16 @@ from openerp.tools.translate import _
|
|||
ADDRESS_FORMAT_LAYOUTS = {
|
||||
'%(city)s %(state_code)s\n%(zip)s': """
|
||||
<div class="address_format">
|
||||
<field name="city" placeholder="City" style="width: 50%%"/>
|
||||
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 47%%" options='{"no_open": true}'/>
|
||||
<field name="city" placeholder="City" style="width: 50%"/>
|
||||
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 47%" options='{"no_open": true}'/>
|
||||
<br/>
|
||||
<field name="zip" placeholder="ZIP"/>
|
||||
</div>
|
||||
""",
|
||||
'%(zip)s %(city)s': """
|
||||
<div class="address_format">
|
||||
<field name="zip" placeholder="ZIP" style="width: 40%%"/>
|
||||
<field name="city" placeholder="City" style="width: 57%%"/>
|
||||
<field name="zip" placeholder="ZIP" style="width: 40%"/>
|
||||
<field name="city" placeholder="City" style="width: 57%"/>
|
||||
<br/>
|
||||
<field name="state_id" class="oe_no_button" placeholder="State" options='{"no_open": true}'/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue