Commit Graph

17 Commits (63b6c0d1052d7a5c8afddbb6f782c60956dc3bdf)

Author SHA1 Message Date
Stefan Rijnhart e59665e8f0 [FIX] base_name_search_improved: don't patch abstract models
When applying monkey patches, we want to skip abstract models because patching
those may mess up the inheritance. An example of this is ir.model which is
assigned the studio mixin using inherit = ['studio.mixin', 'ir.model'].
If the mixin itself is patched, and the method is overridden once again (in,
say, enterprise 15's documents_spreadsheet), the super() method called in that
override is the patched version of studio.mixin rather than the override of
ir.model in the base module, which is now skipped entirely.
2024-07-01 16:42:17 +02:00
filoquin 1d55e6280a [MIG] base_name_search_improved: Migration to 16.0 2023-05-11 10:18:37 -03:00
Rad0van a2de47b8c5 [FIX] base_name_search_improved: interactive search
Translate Spanish texts to English
2022-11-29 08:46:54 -03:00
Juan Jose Scarafia adaf70ed5e [IMP] base_name_search_improved: run pre-commit 2022-11-29 08:46:54 -03:00
Juan Jose Scarafia 0ad49ef580 [FIX] base_name_search_improved: use sudo on _get_use_smart_name_search
and avoid superself variable
2022-11-29 08:46:54 -03:00
Juan Jose Scarafia 8133a2ede6 [IMP] base_name_search_improved: better ux 2022-11-29 08:46:54 -03:00
Kitti U e37419adda [14.0][MIG] base_name_search_improved 2022-11-29 08:46:54 -03:00
Juan Jose Scarafia a768a1de63 [IMP] base_name_search_improved: patches 2022-11-29 08:46:54 -03:00
Juan Jose Scarafia 6b66b2f323 [MIG] base_name_search_improved: Migration to 13.0 2022-11-29 08:46:54 -03:00
Juan Jose Scarafia 323645077e [IMP] base_name_search_improved: run pre commit again 2022-11-29 08:46:54 -03:00
Juan Jose Scarafia bebd42a4a2 [IMP] base_name_search_improved: add v12 imp 2022-11-29 08:46:54 -03:00
Juan Jose Scarafia 21daec5241 [IMP] base_name_search_improved: black, isort, prettier 2022-11-29 08:46:54 -03:00
Katherine Zaoral 36c1bdc975 [MIG] base_name_search_improved: Migration to 11.0
- Descriptor: change __openerp__.py file to __manifest__.py also update module
  version from 9.0.1.0.0 to 11.0.1.0.0
- Update README using guideline
- Views: replace view tag openerp to odoo and rename files to match guideline
- Models

  - update imports from openerp to odoo
  - remove enconding line # -*- coding: utf-8 -*-
  - update to make it compatible
  - remove use of SUPERUSER_ID use sudo instead.
  - rename class name to make it match with guideline.
  - update methods to match api used in version 11.0
  - fix pylint errors
  - replace use of non exist self._model with self._name
  - use `Model `is not None instead of if `Model` this becuase the last one is
    a empty recordset and this one was evaluate to False and never was
    patching the method.

- apply changes resquested/suggested in the PR by the reviewers.
2022-11-29 08:46:54 -03:00
Daniel Reis be6f96e68b Do not search on empty string. Fixes #467 2022-11-29 08:46:54 -03:00
Daniel Reis 8051c95c4f Honor name_search additional domain 2022-11-29 08:46:54 -03:00
Daniel Reis aa9b06681c Return all results from the several methods, ordered by best match 2022-11-29 08:46:54 -03:00
Daniel Reis afa8e9042f base_name_search_improved: friendly and powerful name search 2022-11-29 08:46:54 -03:00