By default, when importing data (like CSV import) with the ``base_import``
module, Odoo follows this rule:
1. If you import the XMLID of a record, make an **update**.
2. If you do not, **create** a new record.
This module allows you to set additional rules to match if a given import is an
update or a new record.
This is useful when you need to sync heterogeneous databases, and the field you
use to match records in those databases with Odoo's is not the XMLID but the
name, VAT, email, etc.
After installing this module, the import logic will be changed to:
1. If you import the XMLID of a record, make an **update**.
2. If you do not:
1. If there are import match rules for the model you are importing:
1. Discard the rules that require fields you are not importing.
2. Traverse the remaining rules one by one in order to find a match in
the database.
1. If one match is found:
1. Stop traversing the rest of valid rules.
2. **Update** that record.
2. If zero or multiple matches are found:
1. Continue with the next rule.
3. If all rules are exhausted and no single match is found:
1. **Create** a new record.
2. If there are no match rules for your model:
1. **Create** a new record.
Without this sudo get_param would fail when the first user reading a parameter that has changed in the configuration file does not have write access to system parameters.
* [ADD] possibility to deactivate users not found in ldap while populating
* [IMP] search in ldap for every possibly unknown user to be really sure it
actually is not present there
* [FIX] refactoring mistake
* [IMP] don't use self.query() to be sure to be stopped if any error occurs
* [IMP] remove superfluous check as exceptions are not supressed any more
* [FIX] typo in variable name
[FIX] handle unicode characters in search filter
[FIX] search for user's login, not her name
* [FIX] don't pass user_name as assertion_value
* [FIX] don't deactivate users if we got a non-existent ldap configuration
* [FIX] flake8
* [FIX] more flake8
* [FIX] make form usable
* [FIX] name clash between function and field
* [ADD] test
[FIX] Updated travis postgresql version
[FIX] Updated phantom_js version in travis
[FIX] Configured travis to run tests for this module in isolation mode
[FIX] Configured travis to run tests for this module in isolation mode
[FIX] Added group to demo_user for test purposes
[FIX] Changed waiting condition on Phantom JS test
[FIX] Removed Travis configuration for isolated test environment
[FIX] Changed waiting condition in phantom_js test
[FIX] Changed target action in phantom_js test
[FIX] Changed target action in phantom_js test
This module makes importing data from CSV files optional for each user, allowing it only for those users belonging to a specific group.
[FIX] Solved flake8 error E305: expected 2 blank lines after class or function definition, found 1
[FIX] Renamed base_import_csv_optional in base_import_security_group
[FIX] Solved flake8 error E501: line too long;
[FIX] Removed unnecessary monkeypatch and extended Base.load method;
[FIX] Bugfixing in Base.load method;
[FIX] Code refactoring
[IMP] Tests created
* [IMP] module_auto_update: Create new module
* Add checksum_dir and checksum_installed fields to ir.module.module
* Add checksum_dir to compute current checksum of module directory
in addons path
* Add checksum_installed to store checksum of module directory
when module was last installed or upgraded
* Use checksumdir Python library to compute module directory sha1
hashes, ignoring pyc and pyo extensions
* Extend update_list method to compare modules' checksum_dir and
checksum_installed, then change state of modules with differing
checksums to 'to upgrade'
* Replace Apps/Updates menu item with menu item of same name, which
updates apps list and displays tree view of ir.module.module
records with state 'to upgrade'
* Extend create and write methods to store computed checksum_dir as
checksum_installed during module installation and upgrade, and
set checksum_installed to False on uninstall
* Use context to stop checksum_installed from being updated during
upgrade/uninstall cancellation
* Add cron job to periodically check for module upgrades by
comparing checksums, then perform any available upgrades
* Extend upgrade_module method (called by cron and 'Apply Scheduled
Upgrades' menu item) to call update_list
* Add post_init_hook to store checksum_installed of existing
modules
* Add test coverage
* [FIX] module_auto_update: Fix test broken by changes
* Use dummy module to test update_list method instead of
module_auto_update