Commit Graph
9 Commits
Author SHA1 Message Date
Kinjal Mehta 32498c008c [IMP] anonymization: changed duplicate field label in the same model 2018-01-04 17:56:52 +05:30
Xavier Morel 7dd062f835 [FIX] P3: text model types
* remove references to basestring & unicode (use relevant pycompat
  helpers)
* remove some str calls (either entirely or replaced by relevant
  helper, either text or native)
* use better API to avoid unnecessary conversions
* remove some XML declarations in views
2017-08-20 23:25:54 +02:00
xmo-odoo fffaf735f5 [FIX] P3: list -> iterable builtins (#16811)
In Python 3:

* various builtins and dict methods were changed to return
  view/iterable objects rather than lists
* and the separate Python 2 view/iterable builtins and methods were
  removed altogether

This is problematic when using these items as list (which the happens
repeatedly in Odoo), but more viciously when iterating *multiple times*
over them (which also happens, which I've messed up multiple times while
writing this, and which is a pain to debug even when you've just created
the issue).

Convert all code using these to semantics-matching cross-version
helper functions to get the LCD behaviour between P2 and P3, and
forbid the builtins via lint.

issue #8530
2017-05-10 09:39:55 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Yannick Tivisse 14c56188d1 [IMP] all: Remove error message translation in _sql_constraints
This is automatically taken into account by the translation mechanism. Thus it is useless to make it a translatable label with _('')
2017-03-16 15:26:41 +01:00
Raphael Collet 5d746d0ac6 [IMP] base, *: tighten ir.model access rights
Remove unrestricted "read" access.  To make code internally using `ir.model`
work, add a private method `_get` on `ir.model` to retrieve the record
corresponding to a model name, without access rights issue.

Change signature of method `get_authorized_fields` to make it use a model name
instead of a model id.  This removes the necessity of a search on `ir.model`.
2017-01-03 16:52:49 +01:00
Jigar Patel 94ba7cd75e [MIG] anonymization: Migrated to new api. 2016-08-09 11:47:34 +02:00
Ravi Gohil cc57fcba7a [SPLIT] anonymization: Move wizard related code to wizard directory 2016-08-09 11:47:09 +02:00
Jigar Patel 6374a25b4b [MOV] anonymization: Re-organized file structure 2016-08-09 11:45:39 +02:00