-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][MIG] connector + test_connector: Migration to 16.0 #442
Commits on Jan 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 31440ff - Browse repository at this point
Copy the full SHA 31440ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 504236f - Browse repository at this point
Copy the full SHA 504236fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 429ea6b - Browse repository at this point
Copy the full SHA 429ea6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 37a3344 - Browse repository at this point
Copy the full SHA 37a3344View commit details -
Configuration menu - View commit details
-
Copy full SHA for 548217e - Browse repository at this point
Copy the full SHA 548217eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b5e76b9 - Browse repository at this point
Copy the full SHA b5e76b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ca3931 - Browse repository at this point
Copy the full SHA 8ca3931View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f67fb5 - Browse repository at this point
Copy the full SHA 6f67fb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c0beb5 - Browse repository at this point
Copy the full SHA 1c0beb5View commit details -
[IMP] mention web_kanban in the --load option as it is the odoo default
Plus various cosmetic improvements.
Configuration menu - View commit details
-
Copy full SHA for 2952d6e - Browse repository at this point
Copy the full SHA 2952d6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02caf7b - Browse repository at this point
Copy the full SHA 02caf7bView commit details -
Allow to define seconds when raising RetryableJobError
The job will be retried after the given number of seconds if the exception is raised with a defined 'seconds' argument.
Configuration menu - View commit details
-
Copy full SHA for fb9a7e6 - Browse repository at this point
Copy the full SHA fb9a7e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 562e57d - Browse repository at this point
Copy the full SHA 562e57dView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfb1365 - Browse repository at this point
Copy the full SHA bfb1365View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7062e26 - Browse repository at this point
Copy the full SHA 7062e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34add1d - Browse repository at this point
Copy the full SHA 34add1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c640d24 - Browse repository at this point
Copy the full SHA c640d24View commit details -
Configuration menu - View commit details
-
Copy full SHA for d435ac4 - Browse repository at this point
Copy the full SHA d435ac4View commit details -
Check if a module is installed from the registry
Instead of `ir.module.module`. Simplifies as we never hit the database nor have to maintain a cache. Also, it fixes an issue when we run tests directly at the installation of a module, during the tests the previous implementation was considering the module as uninstalled instead of installed. Change proposed @bealdav. Thanks! Fixes OCA#85
Configuration menu - View commit details
-
Copy full SHA for ae693a3 - Browse repository at this point
Copy the full SHA ae693a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffdbf6d - Browse repository at this point
Copy the full SHA ffdbf6dView commit details -
Add 'mock_job_delay_to_direct' to ease tests on jobs
This context manager allows to execute a job function synchronously when it should normally have been delayed in a asynchronous job. This is really useful for writing tests that check the flow of a synchronisation without having to deal with the jobs execution mechanisms. It is used in the OCA/connector-magento project and ought to be used by other projects.
Configuration menu - View commit details
-
Copy full SHA for 8e98038 - Browse repository at this point
Copy the full SHA 8e98038View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eb7d1d - Browse repository at this point
Copy the full SHA 3eb7d1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1154131 - Browse repository at this point
Copy the full SHA 1154131View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3a7655 - Browse repository at this point
Copy the full SHA d3a7655View commit details -
Configuration menu - View commit details
-
Copy full SHA for db503d3 - Browse repository at this point
Copy the full SHA db503d3View commit details -
Context manager to acquire Postgres advisory locks
This Postgres feature is invaluable when dealing with synchronisations, especially when importing concurrently records from a system. When we export a record, we are able to acquire a lock on the exported record to prevent 2 jobs to export it at the same time. This is different when we import a record for the first time and with several jobs running in parallel, chances are high that 2 jobs will import the same record at the same moment. The Postgres advisory lock comes handy there for they allow to acquire an application lock. Usually we'll acquire the lock at the beginning of an import (beginning of ``Importer.run()``) and we'll throw a ``RetryableJobError`` if the lock cannot be acquired so the job is retried later. The lock will remain in place until the end of the transaction. Example: - Job 1 imports Partner A - Job 2 imports Partner B - Partner A has a category X which happens not to exist yet - Partner B has a category X which happens not to exist yet - Job 1 import category X as a dependency - Job 2 import category X as a dependency Since both jobs are executed concurrently, they both create a record for category X. With this lock: - Job 1 imports Partner A, it puts a lock for this partner - Job 2 imports Partner B, it puts a lock for this partner - Partner A has a category X which happens not to exist yet - Partner B has a category X which happens not to exist yet - Job 1 import category X as a dependency, it puts a lock for this category - Job 2 import category X as a dependency, try to put a lock but can't, Job 2 is retried later, and when it is retried, it sees the category X created by Job 1 See http://topopps.com/implementing-postgres-advisory-locks/ for the article where I learned about the computation of the hash for this purpose.
Configuration menu - View commit details
-
Copy full SHA for 3542273 - Browse repository at this point
Copy the full SHA 3542273View commit details -
Rename try_advisory_lock to advisory_lock_or_retry
It is no longer a context manager, because we would expect the lock to be released at the end of the 'with' statement but it lasts until the end of the transaction.
Configuration menu - View commit details
-
Copy full SHA for 075a77c - Browse repository at this point
Copy the full SHA 075a77cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d044d8e - Browse repository at this point
Copy the full SHA d044d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 863210c - Browse repository at this point
Copy the full SHA 863210cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9156aaa - Browse repository at this point
Copy the full SHA 9156aaaView commit details -
Fix bug introduced in c97ebbd in jobrunner
Commit c97ebbd was a frontport from 7.0. However, openerp.sql_db.dsn was changed in 8.0 in that it now returns a tuple. Extract the db_name from the returned tuple.
Configuration menu - View commit details
-
Copy full SHA for ac17591 - Browse repository at this point
Copy the full SHA ac17591View commit details -
The first item contains the name of the DB such as 'odoo_db' and the second item contains 'user=gbaconnier dbname=odoo_db' which is what expects psycopg2.connect.
Configuration menu - View commit details
-
Copy full SHA for 9332dcc - Browse repository at this point
Copy the full SHA 9332dccView commit details -
[FIX] correctly obtain the list of database with odoo is started with…
… --no-database-list
Configuration menu - View commit details
-
Copy full SHA for 775290a - Browse repository at this point
Copy the full SHA 775290aView commit details -
[FIX] ignore dbfilter containing %d or %h, fixes OCA#58
This is a temporary fix. In version 4.0, dbfilter will be completely ignored by connector.
Configuration menu - View commit details
-
Copy full SHA for eb8ad71 - Browse repository at this point
Copy the full SHA eb8ad71View commit details -
When PG is localized, error messages are not ascii and jobs are not postponed. Instead they are failed with a 'unicode decode error'. Note: even if PG ```lc_messages``` is set to en_us.utf8 on a localized system, the error message prefixes (such as ```DETAILS:```) are still localized.
Configuration menu - View commit details
-
Copy full SHA for 8ee1248 - Browse repository at this point
Copy the full SHA 8ee1248View commit details -
Configuration menu - View commit details
-
Copy full SHA for 969c791 - Browse repository at this point
Copy the full SHA 969c791View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14be240 - Browse repository at this point
Copy the full SHA 14be240View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dd95d8 - Browse repository at this point
Copy the full SHA 0dd95d8View commit details -
Prevent to unpickle globals which are not jobs
This is a safeguard to prevent someone to write arbitrary code in jobs. Builtin types and datetime/timedelta are allowed in job arguments, and a new function 'whitelist_unpickle_global' allows to register new objects if needed.
Configuration menu - View commit details
-
Copy full SHA for 7965dc4 - Browse repository at this point
Copy the full SHA 7965dc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd5186c - Browse repository at this point
Copy the full SHA bd5186cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 879bbda - Browse repository at this point
Copy the full SHA 879bbdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30afec3 - Browse repository at this point
Copy the full SHA 30afec3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5373a7d - Browse repository at this point
Copy the full SHA 5373a7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72cd302 - Browse repository at this point
Copy the full SHA 72cd302View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f16188 - Browse repository at this point
Copy the full SHA 7f16188View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aaa708 - Browse repository at this point
Copy the full SHA 5aaa708View commit details -
Configuration menu - View commit details
-
Copy full SHA for b214e8a - Browse repository at this point
Copy the full SHA b214e8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1aa302b - Browse repository at this point
Copy the full SHA 1aa302bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 30f3a3d - Browse repository at this point
Copy the full SHA 30f3a3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e04eb06 - Browse repository at this point
Copy the full SHA e04eb06View commit details -
[FIX] In the last release of Odoo related partner created from an ina…
…ctive user is also inactive Fix the test accordingly (odoo/odoo@328d34a)
Configuration menu - View commit details
-
Copy full SHA for 0b3d8d9 - Browse repository at this point
Copy the full SHA 0b3d8d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70606a9 - Browse repository at this point
Copy the full SHA 70606a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0146ddc - Browse repository at this point
Copy the full SHA 0146ddcView commit details -
* In openerp.addons.connector.session.ConnectorSession: * Remove method 'search' * Remove method 'write' * Remove method 'browse' * Remove method 'read' * Remove method 'create' * Remove method 'unlink' * In openerp.addons.connector.connector.ConnectorUnit: * Remove method 'get_connector_unit_for_model' * Remove method 'get_binder_for_model' * Remove property 'environment' * In openerp.addons.connector.connector.ConnectorEnvironment: * Remove method 'set_lang' * In openerp.addons.connector.connector.connector.MetaConnectorUnit * Remove property 'model_name' * Remove class openerp.addons.connector.connector.Environment * Remove method openerp.addons.connector.connector.intall_in_connector * In openerp.addons.connector.unit.synchronizer: * Remove class 'ExportSynchronizer' * Remove class 'ImportSynchronizer' * Remove class 'DeleteSynchronizer' * Remove module openerp.addons.connector.deprecate. *
Configuration menu - View commit details
-
Copy full SHA for fd24a26 - Browse repository at this point
Copy the full SHA fd24a26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90fde46 - Browse repository at this point
Copy the full SHA 90fde46View commit details -
Configuration menu - View commit details
-
Copy full SHA for f72f36a - Browse repository at this point
Copy the full SHA f72f36aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1f586c - Browse repository at this point
Copy the full SHA b1f586cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 492c54d - Browse repository at this point
Copy the full SHA 492c54dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea3dfbf - Browse repository at this point
Copy the full SHA ea3dfbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe2bfaa - Browse repository at this point
Copy the full SHA fe2bfaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0353793 - Browse repository at this point
Copy the full SHA 0353793View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9239012 - Browse repository at this point
Copy the full SHA 9239012View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bc8d6a - Browse repository at this point
Copy the full SHA 4bc8d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4989bf4 - Browse repository at this point
Copy the full SHA 4989bf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for b05470a - Browse repository at this point
Copy the full SHA b05470aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3c8bc6 - Browse repository at this point
Copy the full SHA b3c8bc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76a5fb0 - Browse repository at this point
Copy the full SHA 76a5fb0View commit details -
Fix backend_to_m2o to extract id of the binding
The default binder returns a recordset of one record since 41561c8 so backend_to_m2o should extract the Id from it.
Configuration menu - View commit details
-
Copy full SHA for e3fd073 - Browse repository at this point
Copy the full SHA e3fd073View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4756275 - Browse repository at this point
Copy the full SHA 4756275View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4604c0 - Browse repository at this point
Copy the full SHA f4604c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7311430 - Browse repository at this point
Copy the full SHA 7311430View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11de9ba - Browse repository at this point
Copy the full SHA 11de9baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ea7ee7 - Browse repository at this point
Copy the full SHA 9ea7ee7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f007305 - Browse repository at this point
Copy the full SHA f007305View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ce1ffc - Browse repository at this point
Copy the full SHA 7ce1ffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54896b3 - Browse repository at this point
Copy the full SHA 54896b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06b6cfa - Browse repository at this point
Copy the full SHA 06b6cfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38f61fc - Browse repository at this point
Copy the full SHA 38f61fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21f71b0 - Browse repository at this point
Copy the full SHA 21f71b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for cadc6c0 - Browse repository at this point
Copy the full SHA cadc6c0View commit details -
[IMP] more precise wakeup at the end of delays between jobs
This also runs jobs that have an ETA at a more precise time: before the runner was waking up only every minute when there was no other activity.
Configuration menu - View commit details
-
Copy full SHA for 22038c9 - Browse repository at this point
Copy the full SHA 22038c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01a8fd2 - Browse repository at this point
Copy the full SHA 01a8fd2View commit details -
Fix wrong recordset returned when no binding found
When we call the binder 'to_openerp' method with 'unwrap', we expect the binder to return the 'unwrapped' record of the binding, e.g. product.product instead of prestashop.product.product. When no record is found, the binder *must* return an empty recordset of the correct (unwrapped) model too.
Configuration menu - View commit details
-
Copy full SHA for c0e8922 - Browse repository at this point
Copy the full SHA c0e8922View commit details -
[FIX] connector: Zero value assertion
* Switch zero assertion to type strict eval (`is`)
Configuration menu - View commit details
-
Copy full SHA for 57ccd98 - Browse repository at this point
Copy the full SHA 57ccd98View commit details -
Remove cancellation of jobs and their active flag
Now jobs are only set to Done when NothingToDoJob is raised. Closes OCA#197
Configuration menu - View commit details
-
Copy full SHA for d094c81 - Browse repository at this point
Copy the full SHA d094c81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ca2a90 - Browse repository at this point
Copy the full SHA 5ca2a90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e96417 - Browse repository at this point
Copy the full SHA 5e96417View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c8fdf5 - Browse repository at this point
Copy the full SHA 5c8fdf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d70c7c7 - Browse repository at this point
Copy the full SHA d70c7c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for da19826 - Browse repository at this point
Copy the full SHA da19826View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26e2da3 - Browse repository at this point
Copy the full SHA 26e2da3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dea4594 - Browse repository at this point
Copy the full SHA dea4594View commit details -
Replace monkey-patch by a proper inherit
Now that we have a root model 'base', we can properly override the methods to fire the events.
Configuration menu - View commit details
-
Copy full SHA for 57be4b9 - Browse repository at this point
Copy the full SHA 57be4b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8575267 - Browse repository at this point
Copy the full SHA 8575267View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1da1b25 - Browse repository at this point
Copy the full SHA 1da1b25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00b41d4 - Browse repository at this point
Copy the full SHA 00b41d4View commit details -
The reason of being for the separation was to be able to support another storage than postgres if needed. Nothing has ever been done in this way and the current backend storage (postgres) has proved to be efficient.
Configuration menu - View commit details
-
Copy full SHA for 401ffd5 - Browse repository at this point
Copy the full SHA 401ffd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99856fa - Browse repository at this point
Copy the full SHA 99856faView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd7a4a9 - Browse repository at this point
Copy the full SHA fd7a4a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6cf1dd - Browse repository at this point
Copy the full SHA d6cf1ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for d43848e - Browse repository at this point
Copy the full SHA d43848eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 179e8c2 - Browse repository at this point
Copy the full SHA 179e8c2View commit details -
Add is_module_installed function
It has been removed from queue_job, move it back here
Configuration menu - View commit details
-
Copy full SHA for 11fdcdc - Browse repository at this point
Copy the full SHA 11fdcdcView commit details -
Rework slighty the default Binder
* Remove notion of "id", we work with recordsets. * Rename 'to_backend' to 'to_external' to avoid confusion with the notion of backend * Rename 'to_odoo' to 'to_internal' for reciprocity * Rename m2o_to_backend and backend_to_m2o in the same manner
Configuration menu - View commit details
-
Copy full SHA for fc404a9 - Browse repository at this point
Copy the full SHA fc404a9View commit details -
So we can write tests using real pieces of the framework on real models instead of using mocks which is quite limited and wring things in confusing ways. * Fix the related action implementation * Move the tests of the Default Binding in this module so we have tests that reflect the reality
Configuration menu - View commit details
-
Copy full SHA for f90b0f3 - Browse repository at this point
Copy the full SHA f90b0f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for bea5582 - Browse repository at this point
Copy the full SHA bea5582View commit details -
Remove 'env' argument from ConnectorEnvironment
We probably want to use the same env that we have in the backend_record! Besides, having 2 environments bring issues when we modify one but not the other one.
Configuration menu - View commit details
-
Copy full SHA for 834b50b - Browse repository at this point
Copy the full SHA 834b50bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f8115 - Browse repository at this point
Copy the full SHA 31f8115View commit details -
Configuration menu - View commit details
-
Copy full SHA for 872e0bd - Browse repository at this point
Copy the full SHA 872e0bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b9c4c9 - Browse repository at this point
Copy the full SHA 5b9c4c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d5244f - Browse repository at this point
Copy the full SHA 2d5244fView commit details -
Configuration menu - View commit details
-
Copy full SHA for edacb95 - Browse repository at this point
Copy the full SHA edacb95View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4751be - Browse repository at this point
Copy the full SHA c4751beView commit details -
Configuration menu - View commit details
-
Copy full SHA for f04a2bc - Browse repository at this point
Copy the full SHA f04a2bcView commit details -
Start prototype of a component system
The inheritance system is copied from the Odoo on, because it works well for extending addons and because it will be easier to use for developers accustomed to it.
Configuration menu - View commit details
-
Copy full SHA for e3cfba5 - Browse repository at this point
Copy the full SHA e3cfba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1b4479 - Browse repository at this point
Copy the full SHA f1b4479View commit details -
Configuration menu - View commit details
-
Copy full SHA for e31dc2d - Browse repository at this point
Copy the full SHA e31dc2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e95a16 - Browse repository at this point
Copy the full SHA 2e95a16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ac23dd - Browse repository at this point
Copy the full SHA 8ac23ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fcd428 - Browse repository at this point
Copy the full SHA 6fcd428View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b75785 - Browse repository at this point
Copy the full SHA 3b75785View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0d708b - Browse repository at this point
Copy the full SHA a0d708bView commit details -
Remove overrides of attributes
when inheriting from multiple components, we might inadvertly override a value with None
Configuration menu - View commit details
-
Copy full SHA for bd79ad6 - Browse repository at this point
Copy the full SHA bd79ad6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c48e761 - Browse repository at this point
Copy the full SHA c48e761View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2503b2 - Browse repository at this point
Copy the full SHA e2503b2View commit details -
The mapping methods are now built by the component initialization when the "aggregated" class is built.
Configuration menu - View commit details
-
Copy full SHA for a031bf2 - Browse repository at this point
Copy the full SHA a031bf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7eb8c3 - Browse repository at this point
Copy the full SHA c7eb8c3View commit details -
Use 2 different methods for single/many lookup
the 'components' method had 2 different return types depending of the 'multi' argument. Now we have 'component' or 'many_components' that return a Component instance or a list of Component instances.
Configuration menu - View commit details
-
Copy full SHA for e3101ec - Browse repository at this point
Copy the full SHA e3101ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for c799001 - Browse repository at this point
Copy the full SHA c799001View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21ae83a - Browse repository at this point
Copy the full SHA 21ae83aView commit details -
Remove some Mapper duplication
We keep the ComponentUnit classes though, there is some duplication of code but it will be dropped in Odoo 11.0
Configuration menu - View commit details
-
Copy full SHA for 620dcb9 - Browse repository at this point
Copy the full SHA 620dcb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5789f33 - Browse repository at this point
Copy the full SHA 5789f33View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecca14e - Browse repository at this point
Copy the full SHA ecca14eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb08b73 - Browse repository at this point
Copy the full SHA fb08b73View commit details -
Draft new component_event addon
Proposing a new API based on components for the events
Configuration menu - View commit details
-
Copy full SHA for 0a96d2e - Browse repository at this point
Copy the full SHA 0a96d2eView commit details -
Move test_producer in deprecated
We'll now use the component_event events
Configuration menu - View commit details
-
Copy full SHA for 9926a03 - Browse repository at this point
Copy the full SHA 9926a03View commit details -
Configuration menu - View commit details
-
Copy full SHA for b64bd13 - Browse repository at this point
Copy the full SHA b64bd13View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4eec9c - Browse repository at this point
Copy the full SHA c4eec9cView commit details -
Tests using odoo transactions must run post install, because during the install the registry is not ready, so the components aren't neither.
Configuration menu - View commit details
-
Copy full SHA for 2680eb5 - Browse repository at this point
Copy the full SHA 2680eb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 665cfc1 - Browse repository at this point
Copy the full SHA 665cfc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c31d549 - Browse repository at this point
Copy the full SHA c31d549View commit details -
Add @skip_if decorator to skip events
It takes a condition which skip the event when evaluated to True. A new base listener for the connector adds a default condition based on self.env.context.get('connector_no_export'). Every export event listener should be decorated with: @skip_if(lambda self, *args, **kwargs: self.no_connector_export)
Configuration menu - View commit details
-
Copy full SHA for e20a60e - Browse repository at this point
Copy the full SHA e20a60eView commit details -
Change Collection.work_on() to a context manager
It allows to open/close objects on start/end of a synchro / work session. The base method does none of that, but this is a really common use case. Example: at the beginning of the work session, I open a webservice client that is available in our WorkContext for the duration of our work. At the end, I close the client to end the connection.
Configuration menu - View commit details
-
Copy full SHA for eb9512e - Browse repository at this point
Copy the full SHA eb9512eView commit details -
Remove required on the version field
It is no longer necessary for the Components and most of the connectors redefine it.
Configuration menu - View commit details
-
Copy full SHA for 55678c5 - Browse repository at this point
Copy the full SHA 55678c5View commit details -
Simplify tests by loading modules components
It the previous commit, @lmignon added the possibility to load all components of an addon in a Component Registry. This commit takes benefit of this feature to simplify the existing tests and to add a base test case for the Connector (that loads all components of 'component', 'component_event', 'connector'). It can be used in implementations using the connector.
Configuration menu - View commit details
-
Copy full SHA for 68d4d2d - Browse repository at this point
Copy the full SHA 68d4d2dView commit details -
Add new TestCase classes to test connectors
When we want to test the implementation of a connector, it must be simple. Add 2 new test cases for TransactionCase and SavepointCase which load all the components of the dependencies addons on the tested addons. Only the components of the addons in state 'installed' are loaded, so we don't load components of addons that depend on the tested addon. The tests must call _init_global_registry and build_registry instead of _register_hook, so the registry is not set to ready. If the global registry is set to ready during tests, the event will trigger during the installation of addons which is not what we want. The existing test case is meant only to be used when one has to manipulate components in a custom registry. See discussion on guewen@447b22f#commitcomment-22851711
Configuration menu - View commit details
-
Copy full SHA for d55f9e2 - Browse repository at this point
Copy the full SHA d55f9e2View commit details -
Exclude current addon in ComponentRegistryCase setup
When we run a ComponentRegistryCase test using odoo's way to run tests (--test-enable), the current addon is in state 'to install' or 'to upgrade', thus its components not loaded (which is what we want in this test Case, as it allow us to load manually the components / load different components). When we run the same test Case from pytest or nosetest, which are not run during an odoo upgrade, the state of the addon is 'installed', thus components are loaded. To ensure the same behavior with --test-enable and external tests runners, the current addon is always excluded from the components to load.
Configuration menu - View commit details
-
Copy full SHA for 3660eb8 - Browse repository at this point
Copy the full SHA 3660eb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1d82f3 - Browse repository at this point
Copy the full SHA b1d82f3View commit details -
Because it calls a name_get per row. As the information is only repeating the selection, better to hide it.
Configuration menu - View commit details
-
Copy full SHA for 353d3be - Browse repository at this point
Copy the full SHA 353d3beView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1691ce - Browse repository at this point
Copy the full SHA a1691ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 849e65a - Browse repository at this point
Copy the full SHA 849e65aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccf05d7 - Browse repository at this point
Copy the full SHA ccf05d7View commit details -
[10.0][FIX] connector : Avoid creating void child values
When there is no direct mapping and child elements are filtered and return no value, the resulting record to write is like {'field_xxx': 'value', child_ids': [(0, 0, {})]}
Configuration menu - View commit details
-
Copy full SHA for 02a7abc - Browse repository at this point
Copy the full SHA 02a7abcView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa35870 - Browse repository at this point
Copy the full SHA aa35870View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ad2818 - Browse repository at this point
Copy the full SHA 5ad2818View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3d5e2c - Browse repository at this point
Copy the full SHA d3d5e2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 524864b - Browse repository at this point
Copy the full SHA 524864bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4164b5b - Browse repository at this point
Copy the full SHA 4164b5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3251aea - Browse repository at this point
Copy the full SHA 3251aeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bab9b7d - Browse repository at this point
Copy the full SHA bab9b7dView commit details -
* Install odoo with pip so sphinx can import it * Find the addons which can be installed to add them in the python path
Configuration menu - View commit details
-
Copy full SHA for 939d9d1 - Browse repository at this point
Copy the full SHA 939d9d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 155dd4d - Browse repository at this point
Copy the full SHA 155dd4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21f593f - Browse repository at this point
Copy the full SHA 21f593fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a634d8 - Browse repository at this point
Copy the full SHA 5a634d8View commit details -
Translated using Weblate (French)
Currently translated at 100.0% (47 of 47 strings) Translation: connector-11.0/connector-11.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-11-0/connector-11-0-connector/fr/
Configuration menu - View commit details
-
Copy full SHA for d6fd2e8 - Browse repository at this point
Copy the full SHA d6fd2e8View commit details -
* Sphinx crashes with a recursion error when trying to document Models fields. Remove the fields from the documentation altogether, they didn't bring much value anyway * Gone through all the API pages and removed many useless autodoc with a mix of __all__, :exclude-members: or by defining more precisely what we want with :autoclass:, :autoatttribute:, ... or simply removing them * Changed the order of a few autodocs by putting the most useful classes/functions first * Improved a few docstrings
Configuration menu - View commit details
-
Copy full SHA for cf68dbf - Browse repository at this point
Copy the full SHA cf68dbfView commit details -
This component locks the records for the duration of the transaction or raise a RetryableJobError if it can't acquire the lock.
Configuration menu - View commit details
-
Copy full SHA for 7bebeb8 - Browse repository at this point
Copy the full SHA 7bebeb8View commit details -
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100,0% (47 of 47 strings) Translation: connector-11.0/connector-11.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-11-0/connector-11-0-connector/pt_BR/
Configuration menu - View commit details
-
Copy full SHA for f227434 - Browse repository at this point
Copy the full SHA f227434View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aea42b - Browse repository at this point
Copy the full SHA 9aea42bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3af2f4d - Browse repository at this point
Copy the full SHA 3af2f4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e3c075 - Browse repository at this point
Copy the full SHA 4e3c075View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3617fa - Browse repository at this point
Copy the full SHA b3617faView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8c33f1 - Browse repository at this point
Copy the full SHA e8c33f1View commit details -
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (70 of 70 strings) Translation: connector-12.0/connector-12.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-12-0/connector-12-0-connector/pt_BR/
Configuration menu - View commit details
-
Copy full SHA for 5ff1f75 - Browse repository at this point
Copy the full SHA 5ff1f75View commit details -
Translated using Weblate (Chinese (Simplified))
Currently translated at 35.7% (25 of 70 strings) Translation: connector-12.0/connector-12.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-12-0/connector-12-0-connector/zh_CN/
Configuration menu - View commit details
-
Copy full SHA for d4d799b - Browse repository at this point
Copy the full SHA d4d799bView commit details -
Translated using Weblate (Chinese (Simplified))
Currently translated at 60.0% (42 of 70 strings) Translation: connector-12.0/connector-12.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-12-0/connector-12-0-connector/zh_CN/
Configuration menu - View commit details
-
Copy full SHA for 113e466 - Browse repository at this point
Copy the full SHA 113e466View commit details -
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (70 of 70 strings) Translation: connector-12.0/connector-12.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-12-0/connector-12-0-connector/zh_CN/
Configuration menu - View commit details
-
Copy full SHA for 5b12bf2 - Browse repository at this point
Copy the full SHA 5b12bf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99d95c8 - Browse repository at this point
Copy the full SHA 99d95c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 242773d - Browse repository at this point
Copy the full SHA 242773dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c7a4a73 - Browse repository at this point
Copy the full SHA c7a4a73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 211cd83 - Browse repository at this point
Copy the full SHA 211cd83View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b98e92 - Browse repository at this point
Copy the full SHA 3b98e92View commit details -
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (73 of 73 strings) Translation: connector-13.0/connector-13.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-13-0/connector-13-0-connector/zh_CN/
Configuration menu - View commit details
-
Copy full SHA for 15abdb8 - Browse repository at this point
Copy the full SHA 15abdb8View commit details -
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (74 of 74 strings) Translation: connector-13.0/connector-13.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-13-0/connector-13-0-connector/pt_BR/
Configuration menu - View commit details
-
Copy full SHA for e9804b2 - Browse repository at this point
Copy the full SHA e9804b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb2a30e - Browse repository at this point
Copy the full SHA cb2a30eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9c7a8b - Browse repository at this point
Copy the full SHA d9c7a8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a169705 - Browse repository at this point
Copy the full SHA a169705View commit details -
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (74 of 74 strings) Translation: connector-13.0/connector-13.0-connector Translate-URL: https://translation.odoo-community.org/projects/connector-13-0/connector-13-0-connector/zh_CN/
Configuration menu - View commit details
-
Copy full SHA for 5a1ca93 - Browse repository at this point
Copy the full SHA 5a1ca93View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa47ff2 - Browse repository at this point
Copy the full SHA fa47ff2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8ae035 - Browse repository at this point
Copy the full SHA b8ae035View commit details -
Alternatives such as activities can be used.
Configuration menu - View commit details
-
Copy full SHA for 32a08cf - Browse repository at this point
Copy the full SHA 32a08cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3b9857 - Browse repository at this point
Copy the full SHA e3b9857View commit details -
Configuration menu - View commit details
-
Copy full SHA for b21db15 - Browse repository at this point
Copy the full SHA b21db15View commit details -
connector: add web_icon to root menu item
This is used as icon in app drawer.
1Configuration menu - View commit details
-
Copy full SHA for 4b748bd - Browse repository at this point
Copy the full SHA 4b748bdView commit details -
Since connector adds root menu item, it should have proper icon. This is most apparent in app drawer provided by web_responsive.
Configuration menu - View commit details
-
Copy full SHA for a22b20b - Browse repository at this point
Copy the full SHA a22b20bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb66700 - Browse repository at this point
Copy the full SHA fb66700View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca5ac01 - Browse repository at this point
Copy the full SHA ca5ac01View commit details -
Configuration menu - View commit details
-
Copy full SHA for c778643 - Browse repository at this point
Copy the full SHA c778643View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2120e52 - Browse repository at this point
Copy the full SHA 2120e52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 659a2ac - Browse repository at this point
Copy the full SHA 659a2acView commit details -
Configuration menu - View commit details
-
Copy full SHA for f50f9db - Browse repository at this point
Copy the full SHA f50f9dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 897f964 - Browse repository at this point
Copy the full SHA 897f964View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51c7957 - Browse repository at this point
Copy the full SHA 51c7957View commit details -
Configuration menu - View commit details
-
Copy full SHA for f19226b - Browse repository at this point
Copy the full SHA f19226bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8879a5 - Browse repository at this point
Copy the full SHA f8879a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6dee0e3 - Browse repository at this point
Copy the full SHA 6dee0e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9881ca - Browse repository at this point
Copy the full SHA f9881caView commit details -
Configuration menu - View commit details
-
Copy full SHA for a307d46 - Browse repository at this point
Copy the full SHA a307d46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 466d092 - Browse repository at this point
Copy the full SHA 466d092View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec7aa36 - Browse repository at this point
Copy the full SHA ec7aa36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66de2a2 - Browse repository at this point
Copy the full SHA 66de2a2View commit details -
So we can write tests using real pieces of the framework on real models instead of using mocks which is quite limited and wring things in confusing ways. * Fix the related action implementation * Move the tests of the Default Binding in this module so we have tests that reflect the reality
Configuration menu - View commit details
-
Copy full SHA for 4260157 - Browse repository at this point
Copy the full SHA 4260157View commit details -
Remove 'env' argument from ConnectorEnvironment
We probably want to use the same env that we have in the backend_record! Besides, having 2 environments bring issues when we modify one but not the other one.
Configuration menu - View commit details
-
Copy full SHA for ca2a458 - Browse repository at this point
Copy the full SHA ca2a458View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcb7107 - Browse repository at this point
Copy the full SHA dcb7107View commit details -
Start prototype of a component system
The inheritance system is copied from the Odoo on, because it works well for extending addons and because it will be easier to use for developers accustomed to it.
Configuration menu - View commit details
-
Copy full SHA for 91871d8 - Browse repository at this point
Copy the full SHA 91871d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc551a0 - Browse repository at this point
Copy the full SHA fc551a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b3ef71 - Browse repository at this point
Copy the full SHA 4b3ef71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c61979 - Browse repository at this point
Copy the full SHA 9c61979View commit details -
Configuration menu - View commit details
-
Copy full SHA for deb522c - Browse repository at this point
Copy the full SHA deb522cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6a0419 - Browse repository at this point
Copy the full SHA b6a0419View commit details -
Tests using odoo transactions must run post install, because during the install the registry is not ready, so the components aren't neither.
Configuration menu - View commit details
-
Copy full SHA for e5f70cf - Browse repository at this point
Copy the full SHA e5f70cfView commit details -
Change Collection.work_on() to a context manager
It allows to open/close objects on start/end of a synchro / work session. The base method does none of that, but this is a really common use case. Example: at the beginning of the work session, I open a webservice client that is available in our WorkContext for the duration of our work. At the end, I close the client to end the connection.
Configuration menu - View commit details
-
Copy full SHA for b05c1aa - Browse repository at this point
Copy the full SHA b05c1aaView commit details -
Add new TestCase classes to test connectors
When we want to test the implementation of a connector, it must be simple. Add 2 new test cases for TransactionCase and SavepointCase which load all the components of the dependencies addons on the tested addons. Only the components of the addons in state 'installed' are loaded, so we don't load components of addons that depend on the tested addon. The tests must call _init_global_registry and build_registry instead of _register_hook, so the registry is not set to ready. If the global registry is set to ready during tests, the event will trigger during the installation of addons which is not what we want. The existing test case is meant only to be used when one has to manipulate components in a custom registry. See discussion on guewen@447b22f#commitcomment-22851711
Configuration menu - View commit details
-
Copy full SHA for f2514f1 - Browse repository at this point
Copy the full SHA f2514f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b3d6e5 - Browse repository at this point
Copy the full SHA 7b3d6e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1185f39 - Browse repository at this point
Copy the full SHA 1185f39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c1c442 - Browse repository at this point
Copy the full SHA 7c1c442View commit details -
Configuration menu - View commit details
-
Copy full SHA for abbc66c - Browse repository at this point
Copy the full SHA abbc66cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9b8328 - Browse repository at this point
Copy the full SHA b9b8328View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae7b4cf - Browse repository at this point
Copy the full SHA ae7b4cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59103ed - Browse repository at this point
Copy the full SHA 59103edView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0793da - Browse repository at this point
Copy the full SHA f0793daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3de179d - Browse repository at this point
Copy the full SHA 3de179dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 548e3ad - Browse repository at this point
Copy the full SHA 548e3adView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9994aa - Browse repository at this point
Copy the full SHA d9994aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22cb36a - Browse repository at this point
Copy the full SHA 22cb36aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bd7fc3 - Browse repository at this point
Copy the full SHA 3bd7fc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for df295f8 - Browse repository at this point
Copy the full SHA df295f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f28e145 - Browse repository at this point
Copy the full SHA f28e145View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51c0e6d - Browse repository at this point
Copy the full SHA 51c0e6dView commit details -
removes unknown fields from backend creation args
Configuration menu - View commit details
-
Copy full SHA for d2b4c18 - Browse repository at this point
Copy the full SHA d2b4c18View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae3b9c9 - Browse repository at this point
Copy the full SHA ae3b9c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8ba0c3 - Browse repository at this point
Copy the full SHA d8ba0c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for eaca2b0 - Browse repository at this point
Copy the full SHA eaca2b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cb2a55 - Browse repository at this point
Copy the full SHA 4cb2a55View commit details -
Configuration menu - View commit details
-
Copy full SHA for a03c041 - Browse repository at this point
Copy the full SHA a03c041View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5e2170 - Browse repository at this point
Copy the full SHA b5e2170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 25af7fb - Browse repository at this point
Copy the full SHA 25af7fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 354951d - Browse repository at this point
Copy the full SHA 354951dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdbe101 - Browse repository at this point
Copy the full SHA cdbe101View commit details -
Configuration menu - View commit details
-
Copy full SHA for c316d5d - Browse repository at this point
Copy the full SHA c316d5dView commit details