c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #21325
[Bug 753344] [NEW] domain on action causes an exception in form view
Public bug reported:
If i define an ir.action.act_window like this:
<record model="ir.actions.act_window" id="action_id">
<field name="name">My partners list</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="domain">[('category_id','=','MyCategory')]</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_id"/>
</record>
If i trigger the action from menu, it shows me the tree view of partners
filtered by "MyCategory", but if i try to create a new partner from this
view, clicking "New", it throws an exception, looking for an integer
(id) instead of a string (name).
Here's the stacktrace
http://pastie.org/1767062
Using
openerp-server v.6.0.1
openerp-web v.6.0.1
on
Mac OS X v.10.6.6
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: action domain server window
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/753344
Title:
domain on action causes an exception in form view
Status in OpenERP Server:
New
Bug description:
If i define an ir.action.act_window like this:
<record model="ir.actions.act_window" id="action_id">
<field name="name">My partners list</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner</field>
<field name="domain">[('category_id','=','MyCategory')]</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_id"/>
</record>
If i trigger the action from menu, it shows me the tree view of
partners filtered by "MyCategory", but if i try to create a new
partner from this view, clicking "New", it throws an exception,
looking for an integer (id) instead of a string (name).
Here's the stacktrace
http://pastie.org/1767062
Using
openerp-server v.6.0.1
openerp-web v.6.0.1
on
Mac OS X v.10.6.6
Follow ups
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Olivier Dony (OpenERP), 2011-09-06
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Jiten (OpenERP), 2011-04-27
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Jiten (OpenERP), 2011-04-25
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Jiten (OpenERP), 2011-04-21
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Naresh(OpenERP), 2011-04-13
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Naresh(OpenERP), 2011-04-08
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Launchpad Bug Tracker, 2011-04-08
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Naresh(OpenERP), 2011-04-08
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Azazahmed Saiyed (OpenERP), 2011-04-07
-
[Bug 753344] Re: domain on action causes an exception in form view
From: Azazahmed Saiyed (OpenERP), 2011-04-07
-
[Bug 753344] [NEW] domain on action causes an exception in form view
From: Vincenzo E Antignano, 2011-04-07
References