Community mailing list archives

community@mail.odoo.com

Re: uid not working in action defenition

by
shabeer
- 09/06/2016 00:46:33
thank you bouzakri khalil :)

On Mon, Sep 5, 2016 at 8:32 PM, bouzakri khalil <khalilbouzakri@gmail.com> wrote:
Hello ,

You have to use context instead domain like that:

<field name="context">{"search_default_user_id":uid}</field>


On Mon, Sep 5, 2016 at 6:07 AM, shabeer m <msg2shabeer@gmail.com> wrote:

Khaled Hamed , Mahmoud abd elwahied

user.id will not work it will throw an error user is not defined
but my problem is solved when i try this 
using old style action definition instead of short hand 



On Sun, Sep 4, 2016 at 11:22 AM, Mahmoud abd elwahied <mahmoudhoota@gmail.com> wrote:

I think you can Use context in order to get this working for you


2016-09-04 2:19 GMT+03:00 Khaled Hamed <khaled.hamed@grandtk.com>:
Hello,

Please try user.id instead of uid

On Thu, Sep 1, 2016 at 4:13 PM, shabeer m <msg2shabeer@gmail.com> wrote:
hi,
i have an action with domain, but 'uid' is not working, please help me

---------------------
<act_window 
id = "spanio_complaint_to_me_action"
name = "My Works"
res_model = "spanio.complaint.register"
domain = "[('assigned_to','=', uid)]"
/>
-----------------

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Best regards...

Khaled Hamed Mostafa


http://www.grandtk.com

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
with regards
Shabeer M
Contact : 94 00 7 44 77 6

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Best Regards
Khalil Bouzakri
Skype: Khali Bouzakri
+212 669175514

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
with regards
Shabeer M
Contact : 94 00 7 44 77 6