← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 694793] Re: Error in action with domain

 

Hello Marcilene,

I have checked your code specification and screenshot,
There are two ways I suggest to perform your aim:

1) If you want to set 'A' as default:.
 _defaults = {
        'active': lambda *a: True,
	'tipo': lambda *a:'A',
    }

2)If you want to have domains on this field, better to make it many2one. You can see example on 
   /home/tiny/workspace/trunk/server/bin/addons/base/res/partner/partner.py  [Line no:115]
   where "title" field is set as many2one and you can apply domain there after.

Thanks.

-- 
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/694793

Title:
  Error in action with domain

Status in OpenObject Web Client:
  Invalid

Bug description:
  Hello,
When I put in action a domain error occurs because the field is not validated.

Following example:

   <record id="open_view_project_br_open" model="ir.actions.act_window">
            <field name="name">Running project_brs</field>
            <field name="res_model">project_br.project_br</field>
            <field name="view_type">form</field>
            <field name="domain">[('state','=','open')]</field>
            <field name="view_id" ref="view_project_br"/>
        </record>

Reviews:
Server -3151
Client - 1735
Web - 4175

Thanks.





References