Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-578339-msh into
lp:openobject-addons/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-578339-msh/+merge/121363
Hello,
Fixed the issue of res.country.state, it has other required field than
_rec_name so many2one of res.country.state quick create will always going to
fail, hence disabled the quick create for state_id field.
Demo :- Sale -> Lead -> Open any existing form and try to create a state from
many2one using quick create, you will see it will open a form popup for state
creation, but in log it will raise an exception which is obvious because create
is going to fail, if there are many2one which has more required field which is
not going to create using name_create than why should we provide quick_create,
hence remove quick create option.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-578339-msh/+merge/121363
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-578339-msh.
=== modified file 'account/partner_view.xml'
--- account/partner_view.xml 2011-09-21 07:13:12 +0000
+++ account/partner_view.xml 2012-08-27 05:46:24 +0000
@@ -109,7 +109,7 @@
<field name="street"/>
<field name="city"/>
<field name="zip"/>
- <field name="state_id"/>
+ <field name="state_id" options='{"quick_create": false}'/>
<field name="country_id"/>
</group>
<group name="bank" colspan="2" col="2">
=== modified file 'base_contact/base_contact_view.xml'
--- base_contact/base_contact_view.xml 2012-01-31 13:36:57 +0000
+++ base_contact/base_contact_view.xml 2012-08-27 05:46:24 +0000
@@ -158,7 +158,7 @@
<field name="zip"/>
<field name="city"/>
<field name="country_id" />
- <field name="state_id"/>
+ <field name="state_id" options='{"quick_create": false}'/>
</form>
</field>
</record>
=== modified file 'crm/crm_lead_view.xml'
--- crm/crm_lead_view.xml 2012-04-20 09:24:45 +0000
+++ crm/crm_lead_view.xml 2012-08-27 05:46:24 +0000
@@ -94,7 +94,7 @@
<field name="zip"/>
<field name="city"/>
<field name="country_id"/>
- <field name="state_id"/>
+ <field name="state_id" options='{"quick_create": false}'/>
</group>
<group colspan="2" col="3">
<separator string="Communication" colspan="4" col="3"/>
@@ -528,7 +528,7 @@
<field name="zip"/>
<field name="city"/>
<field name="country_id"/>
- <field name="state_id"/>
+ <field name="state_id" options='{"quick_create": false}'/>
</group>
<group colspan="2" col="2">
<separator string="Communication" colspan="2"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp