Odoo Help

On 10/20/17, 8:14 AM

hello you can point your resarch to a function called in your  model and test it with boolean field

there is an example

check_maladie_convertie=fields.Boolean(string="Holiday_maladie_Type_to_convert", compute='_check_maladie_type')


    def _check_maladie_type(self):

  holidays=self.env['hr.holidays'].search([("employee_id",'=', self.employee_id.id)])


    ('type', '=', 'remove'),



  for holiday in holidays_maladie:

   holiday.check_maladie_convertie =True

Ray Carnes
On 4/14/17, 7:36 PM

See https://www.odoo.com/apps/modules/10.0/web_search_with_and/

Use AND conditions on omnibar search

When searching for records on same field Odoo joins multiple queries with OR. For example:

  • Perform a search for customer "John" on field Name
  • Odoo displays customers containing "John"
  • Search for "Smith" on same field Name
  • Odoo displays customers containing "John" OR "Smith"

With this module installed you can press Shift key before searching for "Smith" and Odoo finds customers containing "John" AND "Smith"

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/14/17, 12:02 PM
Seen: 1230 times
Last updated: 10/20/17, 10:34 PM