[FIX] crm,hr,base: disable the quick create for country field

The creation of a country is not something to create at flight !
The impact could be bigger that what people was expected (no accounting configured, ...).

The bad manipulation is more often the responsible, eg 'Belgium ' was creating a new country with a trailing whitespace, while the user didn't see the difference and use both country withtout making the diff.
This commit is contained in:
Jeremy Kersten 2015-02-05 12:48:48 +01:00
parent e1a1b56205
commit 5a26c2d3ec
4 changed files with 6 additions and 6 deletions

View File

@ -128,7 +128,7 @@
<field name="state_id" on_change="onchange_state(state_id)" options='{"no_open": True}' placeholder="State" style="width: 24%%"/> <field name="state_id" on_change="onchange_state(state_id)" options='{"no_open": True}' placeholder="State" style="width: 24%%"/>
<field name="zip" placeholder="ZIP" style="width: 34%%"/> <field name="zip" placeholder="ZIP" style="width: 34%%"/>
</div> </div>
<field name="country_id" placeholder="Country" options='{"no_open": True}'/> <field name="country_id" placeholder="Country" options='{"no_open": True, "no_create": True}'/>
</div> </div>
</group> </group>
<group> <group>
@ -457,7 +457,7 @@
<field name="state_id" options='{"no_open": True}' on_change="onchange_state(state_id)" placeholder="State" style="width: 24%%"/> <field name="state_id" options='{"no_open": True}' on_change="onchange_state(state_id)" placeholder="State" style="width: 24%%"/>
<field name="zip" placeholder="ZIP" style="width: 34%%"/> <field name="zip" placeholder="ZIP" style="width: 34%%"/>
</div> </div>
<field name="country_id" placeholder="Country" options='{"no_open": True}'/> <field name="country_id" placeholder="Country" options='{"no_open": True, "no_create": True}'/>
</div> </div>
</group> </group>

View File

@ -63,7 +63,7 @@
<page string="Personal Information" groups="base.group_hr_user"> <page string="Personal Information" groups="base.group_hr_user">
<group> <group>
<group string="Citizenship &amp; Other Info"> <group string="Citizenship &amp; Other Info">
<field name="country_id" options='{"no_open": True}'/> <field name="country_id" options='{"no_open": True, "no_create": True}'/>
<field name="identification_id" groups="base.group_hr_user"/> <field name="identification_id" groups="base.group_hr_user"/>
<field name="passport_id" groups="base.group_hr_user"/> <field name="passport_id" groups="base.group_hr_user"/>
<field name="bank_account_id"/> <field name="bank_account_id"/>

View File

@ -114,7 +114,7 @@
<field name="city" class="oe_inline" placeholder="City"/> <field name="city" class="oe_inline" placeholder="City"/>
</div> </div>
<field name="state_id" placeholder="State" options='{"no_open": True}'/> <field name="state_id" placeholder="State" options='{"no_open": True}'/>
<field name="country_id" placeholder="Country" options='{"no_open": True}'/> <field name="country_id" placeholder="Country" options='{"no_open": True, "no_create": True}'/>
</div> </div>
</group> </group>
<group name="bank" string="Information About the Bank"> <group name="bank" string="Information About the Bank">

View File

@ -170,7 +170,7 @@
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' on_change="onchange_state(state_id)" attrs="{'readonly': [('use_parent_address','=',True)]}"/> <field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' on_change="onchange_state(state_id)" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
<field name="zip" placeholder="ZIP" style="width: 20%%" attrs="{'readonly': [('use_parent_address','=',True)]}"/> <field name="zip" placeholder="ZIP" style="width: 20%%" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
</div> </div>
<field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}' attrs="{'readonly': [('use_parent_address','=',True)]}"/> <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True, "no_create": True}' attrs="{'readonly': [('use_parent_address','=',True)]}"/>
</div> </div>
<field name="website" widget="url" placeholder="e.g. www.odoo.com"/> <field name="website" widget="url" placeholder="e.g. www.odoo.com"/>
</group> </group>
@ -284,7 +284,7 @@
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' on_change="onchange_state(state_id)"/> <field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options='{"no_open": True}' on_change="onchange_state(state_id)"/>
<field name="zip" placeholder="ZIP" style="width: 20%%"/> <field name="zip" placeholder="ZIP" style="width: 20%%"/>
</div> </div>
<field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True}'/> <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True, "no_create": True}'/>
</div> </div>
</group> </group>
<field name="supplier" invisible="True"/> <field name="supplier" invisible="True"/>