diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index a04ad250d9b..ec42b007bab 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -372,13 +372,13 @@ class Product(models.Model): return self.mapped('product_tmpl_id').action_view_routes() @api.model - def search(self, domain=None, *args, **kwargs): + def search(self, args, offset=0, limit=None, order=None, count=False): # ONLY FOR 10.0 UP TO SAAS-15 # ignore dummy fields used for search context² - for index in range(len(domain or [])): - if domain[index][0] in ('location_id', 'warehouse_id'): - domain[index] = expression.TRUE_LEAF - return super(Product, self).search(domain, *args, **kwargs) + for index in range(len(args or [])): + if args[index][0] in ('location_id', 'warehouse_id'): + args[index] = expression.TRUE_LEAF + return super(Product, self).search(args, offset=offset, limit=limit, order=order, count=count) @api.multi def write(self, values): @@ -518,13 +518,13 @@ class ProductTemplate(models.Model): return self.mapped('product_variant_ids').onchange_tracking() @api.model - def search(self, domain=None, *args, **kwargs): + def search(self, args, offset=0, limit=None, order=None, count=False): # ONLY FOR 10.0 UP TO SAAS-15 # ignore dummy fields used for search context - for index in range(len(domain or [])): - if domain[index][0] in ('location_id', 'warehouse_id'): - domain[index] = expression.TRUE_LEAF - return super(ProductTemplate, self).search(domain, *args, **kwargs) + for index in range(len(args or [])): + if args[index][0] in ('location_id', 'warehouse_id'): + args[index] = expression.TRUE_LEAF + return super(ProductTemplate, self).search(args, offset=offset, limit=limit, order=order, count=count) @api.multi def write(self, vals): diff --git a/doc/cla/corporate/tecnativa.md b/doc/cla/corporate/tecnativa.md index 9f3601d16a0..5249fe08571 100644 --- a/doc/cla/corporate/tecnativa.md +++ b/doc/cla/corporate/tecnativa.md @@ -17,7 +17,7 @@ Rafael Blasco rafael.blasco@tecnativa.com https://github.com/rafaelbn Sergio Teruel sergio.teruel@tecnativa.com https://github.com/sergio-teruel Carlos Dauden carlos.dauden@tecnativa.com https://github.com/carlosdauden Jairo Llopis jairo.llopis@tecnativa.com https://github.com/yajo -Vicent Cubells vicent.cubells@tecnativa.com https://github.com/cubells -Luis Montalba luis.montalba@tecnativa.com https://github.com/luismontalba David Vidal david.vidal@tecnativa.com https://github.com/chienandalu -Cristina Martín cristina.martin@tecnativa.com https://github.com/cristinamartinrod +Cristina Martín cristina.martin@tecnativa.com https://github.com/cristinamartinrod (up to 2019-04-30) +Ernesto Tejeda ernesto.tejeda@tecnativa.com https://github.com/ernestotejeda +Alexandre Díaz alexandre.diaz@tecnativa.com https://github.com/Tardo diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst index a806c3fda8f..813866d9d0e 100644 --- a/doc/reference/qweb.rst +++ b/doc/reference/qweb.rst @@ -99,7 +99,7 @@ Extra conditional branching directives ``t-elif`` and ``t-else`` are also available::
-

Happy bithday!

+

Happy birthday!

Welcome master!

Welcome!