Skip to content
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

Merged
merged 781 commits into from
Feb 23, 2023
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jan 30, 2023

  1. Correct flake8 warning: long line

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    31440ff View commit details
    Browse the repository at this point in the history
  2. Slight changes in the docstrings

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    504236f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    429ea6b View commit details
    Browse the repository at this point in the history
  4. Add a line in the changes file

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    37a3344 View commit details
    Browse the repository at this point in the history
  5. Release 3.2.0

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    548217e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b5e76b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8ca3931 View commit details
    Browse the repository at this point in the history
  8. Add OCA icon

    flotho authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    6f67fb5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1c0beb5 View commit details
    Browse the repository at this point in the history
  10. [IMP] mention web_kanban in the --load option as it is the odoo default

    Plus various cosmetic improvements.
    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2952d6e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    02caf7b View commit details
    Browse the repository at this point in the history
  12. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fb9a7e6 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    562e57d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    bfb1365 View commit details
    Browse the repository at this point in the history
  15. [UPD] prefix versions with 8.0

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    7062e26 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    34add1d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c640d24 View commit details
    Browse the repository at this point in the history
  18. [MIG] Make modules uninstallable

    pedrobaeza authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d435ac4 View commit details
    Browse the repository at this point in the history
  19. 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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ae693a3 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    ffdbf6d View commit details
    Browse the repository at this point in the history
  21. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    8e98038 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    3eb7d1d View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    1154131 View commit details
    Browse the repository at this point in the history
  24. Update mailing list address

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d3a7655 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    db503d3 View commit details
    Browse the repository at this point in the history
  26. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3542273 View commit details
    Browse the repository at this point in the history
  27. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    075a77c View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    d044d8e View commit details
    Browse the repository at this point in the history
  29. Update index.rst

    maxime-c2c authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    863210c View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    9156aaa View commit details
    Browse the repository at this point in the history
  31. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ac17591 View commit details
    Browse the repository at this point in the history
  32. Fix the fix c3fefd2 :-(

    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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9332dcc View commit details
    Browse the repository at this point in the history
  33. [FIX] correctly obtain the list of database with odoo is started with…

    … --no-database-list
    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    775290a View commit details
    Browse the repository at this point in the history
  34. [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.
    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    eb8ad71 View commit details
    Browse the repository at this point in the history
  35. Manage non-ascii PG errors

    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.
    npiganeau authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    8ee1248 View commit details
    Browse the repository at this point in the history
  36. Removed trailing whitespace

    npiganeau authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    969c791 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    14be240 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    0dd95d8 View commit details
    Browse the repository at this point in the history
  39. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    7965dc4 View commit details
    Browse the repository at this point in the history
  40. Fix too long line

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    bd5186c View commit details
    Browse the repository at this point in the history
  41. Release 8.0.3.3.0

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    879bbda View commit details
    Browse the repository at this point in the history
  42. Update mailing list address

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    30afec3 View commit details
    Browse the repository at this point in the history
  43. Update index.rst

    maxime-c2c authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5373a7d View commit details
    Browse the repository at this point in the history
  44. [FIX] ignore dbfilter, fixes OCA#58

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    72cd302 View commit details
    Browse the repository at this point in the history
  45. [MIG] Make module installable

    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    7f16188 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    5aaa708 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    b214e8a View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    1aa302b View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    30f3a3d View commit details
    Browse the repository at this point in the history
  50. [PEP8]

    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e04eb06 View commit details
    Browse the repository at this point in the history
  51. [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)
    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    0b3d8d9 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    70606a9 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    0146ddc View commit details
    Browse the repository at this point in the history
  54. [DEL] Remove deprecated APIs

    * 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.
    *
    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fd24a26 View commit details
    Browse the repository at this point in the history
  55. remove remnants of workers

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    90fde46 View commit details
    Browse the repository at this point in the history
  56. enable the jobrunner by default

    fixes OCA#175
    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f72f36a View commit details
    Browse the repository at this point in the history
  57. bump version

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b1f586c View commit details
    Browse the repository at this point in the history
  58. remove unused import

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    492c54d View commit details
    Browse the repository at this point in the history
  59. update changelog

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ea3dfbf View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    fe2bfaa View commit details
    Browse the repository at this point in the history
  61. Bump version number

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    0353793 View commit details
    Browse the repository at this point in the history
  62. Update changelog for 9.0.1.0.2

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9239012 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    4bc8d6a View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    4989bf4 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    b05470a View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    b3c8bc6 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    76a5fb0 View commit details
    Browse the repository at this point in the history
  68. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e3fd073 View commit details
    Browse the repository at this point in the history
  69. [DOC] fix highlight of license

    yvaucher authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    4756275 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    f4604c0 View commit details
    Browse the repository at this point in the history
  71. Add job_uuid in context

    YannickB authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    7311430 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    11de9ba View commit details
    Browse the repository at this point in the history
  73. Removing log traces.

    nicolas-petit authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9ea7ee7 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    f007305 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    7ce1ffc View commit details
    Browse the repository at this point in the history
  76. [FIX] error handling bug

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    54896b3 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    06b6cfa View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    38f61fc View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    21f71b0 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    cadc6c0 View commit details
    Browse the repository at this point in the history
  81. [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.
    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    22038c9 View commit details
    Browse the repository at this point in the history
  82. rename delay key as throttle

    sbidoul authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    01a8fd2 View commit details
    Browse the repository at this point in the history
  83. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    c0e8922 View commit details
    Browse the repository at this point in the history
  84. [FIX] connector: Zero value assertion

    * Switch zero assertion to type strict eval (`is`)
    lasley authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    57ccd98 View commit details
    Browse the repository at this point in the history
  85. Remove cancellation of jobs and their active flag

    Now jobs are only set to Done when NothingToDoJob is raised.
    
    Closes OCA#197
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d094c81 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    5ca2a90 View commit details
    Browse the repository at this point in the history
  87. Set addons uninstallable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5e96417 View commit details
    Browse the repository at this point in the history
  88. Make the connector addon installable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5c8fdf5 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    d70c7c7 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    da19826 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    26e2da3 View commit details
    Browse the repository at this point in the history
  92. Rename openerp to odoo in docs

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    dea4594 View commit details
    Browse the repository at this point in the history
  93. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    57be4b9 View commit details
    Browse the repository at this point in the history
  94. Remove usage of @api.one

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    8575267 View commit details
    Browse the repository at this point in the history
  95. Upgrade version number

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    1da1b25 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    00b41d4 View commit details
    Browse the repository at this point in the history
  97. Merge JobStorage into Job

    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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    401ffd5 View commit details
    Browse the repository at this point in the history
  98. Extract the queue_job from connector

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    99856fa View commit details
    Browse the repository at this point in the history
  99. Remove ConnectorSession

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fd7a4a9 View commit details
    Browse the repository at this point in the history
  100. Typo

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d6cf1dd View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    d43848e View commit details
    Browse the repository at this point in the history
  102. Use short license headers

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    179e8c2 View commit details
    Browse the repository at this point in the history
  103. Add is_module_installed function

    It has been removed from queue_job, move it back here
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    11fdcdc View commit details
    Browse the repository at this point in the history
  104. 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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fc404a9 View commit details
    Browse the repository at this point in the history
  105. Add a test_connector addon

    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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f90b0f3 View commit details
    Browse the repository at this point in the history
  106. Start to actualize documentation

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    bea5582 View commit details
    Browse the repository at this point in the history
  107. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    834b50b View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    31f8115 View commit details
    Browse the repository at this point in the history
  109. str to ustr

    leemannd authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    872e0bd View commit details
    Browse the repository at this point in the history
  110. Tentative to build docs

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5b9c4c9 View commit details
    Browse the repository at this point in the history
  111. Remove invalid URL

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2d5244f View commit details
    Browse the repository at this point in the history
  112. Configuration menu
    Copy the full SHA
    edacb95 View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    c4751be View commit details
    Browse the repository at this point in the history
  114. Configuration menu
    Copy the full SHA
    f04a2bc View commit details
    Browse the repository at this point in the history
  115. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e3cfba5 View commit details
    Browse the repository at this point in the history
  116. Configuration menu
    Copy the full SHA
    f1b4479 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    e31dc2d View commit details
    Browse the repository at this point in the history
  118. Configuration menu
    Copy the full SHA
    2e95a16 View commit details
    Browse the repository at this point in the history
  119. Add test_component

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    8ac23dd View commit details
    Browse the repository at this point in the history
  120. Configuration menu
    Copy the full SHA
    6fcd428 View commit details
    Browse the repository at this point in the history
  121. Add core components in connector

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3b75785 View commit details
    Browse the repository at this point in the history
  122. Add AbstractComponent

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    a0d708b View commit details
    Browse the repository at this point in the history
  123. Remove overrides of attributes

    when inheriting from multiple components, we might inadvertly override a
    value with None
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    bd79ad6 View commit details
    Browse the repository at this point in the history
  124. Replace unit_for by components

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    c48e761 View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    e2503b2 View commit details
    Browse the repository at this point in the history
  126. Get rid of MetaMapper

    The mapping methods are now built by the component initialization when
    the "aggregated" class is built.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    a031bf2 View commit details
    Browse the repository at this point in the history
  127. Configuration menu
    Copy the full SHA
    c7eb8c3 View commit details
    Browse the repository at this point in the history
  128. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e3101ec View commit details
    Browse the repository at this point in the history
  129. Add tests for connector mapper

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    c799001 View commit details
    Browse the repository at this point in the history
  130. Add deprecation comments

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    21ae83a View commit details
    Browse the repository at this point in the history
  131. 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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    620dcb9 View commit details
    Browse the repository at this point in the history
  132. Add/move tests for advisory locks

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5789f33 View commit details
    Browse the repository at this point in the history
  133. Update documentation

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ecca14e View commit details
    Browse the repository at this point in the history
  134. Start to write a migration guide

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fb08b73 View commit details
    Browse the repository at this point in the history
  135. Draft new component_event addon

    Proposing a new API based on components for the events
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    0a96d2e View commit details
    Browse the repository at this point in the history
  136. Move test_producer in deprecated

    We'll now use the component_event events
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9926a03 View commit details
    Browse the repository at this point in the history
  137. Continue the migration guide

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b64bd13 View commit details
    Browse the repository at this point in the history
  138. Configuration menu
    Copy the full SHA
    c4eec9c View commit details
    Browse the repository at this point in the history
  139. Fix test: post_install

    Tests using odoo transactions must run post install, because during the
    install the registry is not ready, so the components aren't neither.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2680eb5 View commit details
    Browse the repository at this point in the history
  140. Configuration menu
    Copy the full SHA
    665cfc1 View commit details
    Browse the repository at this point in the history
  141. Configuration menu
    Copy the full SHA
    c31d549 View commit details
    Browse the repository at this point in the history
  142. 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)
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e20a60e View commit details
    Browse the repository at this point in the history
  143. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    eb9512e View commit details
    Browse the repository at this point in the history
  144. Remove required on the version field

    It is no longer necessary for the Components and most of the connectors
    redefine it.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    55678c5 View commit details
    Browse the repository at this point in the history
  145. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    68d4d2d View commit details
    Browse the repository at this point in the history
  146. 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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d55f9e2 View commit details
    Browse the repository at this point in the history
  147. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3660eb8 View commit details
    Browse the repository at this point in the history
  148. Configuration menu
    Copy the full SHA
    b1d82f3 View commit details
    Browse the repository at this point in the history
  149. Checkpoint wizard is too slow

    Because it calls a name_get per row. As the information is only
    repeating the selection, better to hide it.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    353d3be View commit details
    Browse the repository at this point in the history
  150. Add readme files

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    a1691ce View commit details
    Browse the repository at this point in the history
  151. Bump connector version

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    849e65a View commit details
    Browse the repository at this point in the history
  152. Add links for versions in doc

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ccf05d7 View commit details
    Browse the repository at this point in the history
  153. [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, {})]}
    rousseldenis authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    02a7abc View commit details
    Browse the repository at this point in the history
  154. [MIG] Set modules uninstallable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    aa35870 View commit details
    Browse the repository at this point in the history
  155. Make addons installable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5ad2818 View commit details
    Browse the repository at this point in the history
  156. Configuration menu
    Copy the full SHA
    d3d5e2c View commit details
    Browse the repository at this point in the history
  157. Remove ConnectorUnit features

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    524864b View commit details
    Browse the repository at this point in the history
  158. Configuration menu
    Copy the full SHA
    4164b5b View commit details
    Browse the repository at this point in the history
  159. PY3: hashlib.hasher takes bytes

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3251aea View commit details
    Browse the repository at this point in the history
  160. Use the conventional module layout

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    bab9b7d View commit details
    Browse the repository at this point in the history
  161. Fix build of docs

    * Install odoo with pip so sphinx  can import it
    * Find the addons which can be installed to add them in the python path
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    939d9d1 View commit details
    Browse the repository at this point in the history
  162. Build 11.0 docs

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    155dd4d View commit details
    Browse the repository at this point in the history
  163. Configuration menu
    Copy the full SHA
    21f593f View commit details
    Browse the repository at this point in the history
  164. Configuration menu
    Copy the full SHA
    5a634d8 View commit details
    Browse the repository at this point in the history
  165. 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/
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d6fd2e8 View commit details
    Browse the repository at this point in the history
  166. Improve documentation of APIs

    * 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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    cf68dbf View commit details
    Browse the repository at this point in the history
  167. Add RecordLocker component

    This component locks the records for the duration of the transaction
    or raise a RetryableJobError if it can't acquire the lock.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    7bebeb8 View commit details
    Browse the repository at this point in the history
  168. 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/
    Rodrigo Macedo authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f227434 View commit details
    Browse the repository at this point in the history
  169. Fix documentation build

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9aea42b View commit details
    Browse the repository at this point in the history
  170. Migrate connector to 12.0

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3af2f4d View commit details
    Browse the repository at this point in the history
  171. Configuration menu
    Copy the full SHA
    4e3c075 View commit details
    Browse the repository at this point in the history
  172. Configuration menu
    Copy the full SHA
    b3617fa View commit details
    Browse the repository at this point in the history
  173. Configuration menu
    Copy the full SHA
    e8c33f1 View commit details
    Browse the repository at this point in the history
  174. 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/
    Rodrigo Macedo authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5ff1f75 View commit details
    Browse the repository at this point in the history
  175. 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/
    liweijie0812 authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d4d799b View commit details
    Browse the repository at this point in the history
  176. 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/
    liweijie0812 authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    113e466 View commit details
    Browse the repository at this point in the history
  177. 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/
    liweijie0812 authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5b12bf2 View commit details
    Browse the repository at this point in the history
  178. Set modules uninstallable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    99d95c8 View commit details
    Browse the repository at this point in the history
  179. Configuration menu
    Copy the full SHA
    242773d View commit details
    Browse the repository at this point in the history
  180. Configuration menu
    Copy the full SHA
    c7a4a73 View commit details
    Browse the repository at this point in the history
  181. [MIG] connector and test_connector: Migration to 13.0

    Laurent-Corron authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    211cd83 View commit details
    Browse the repository at this point in the history
  182. Configuration menu
    Copy the full SHA
    3b98e92 View commit details
    Browse the repository at this point in the history
  183. 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/
    liweijie0812 authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    15abdb8 View commit details
    Browse the repository at this point in the history
  184. 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/
    Rodrigo Macedo authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e9804b2 View commit details
    Browse the repository at this point in the history
  185. Configuration menu
    Copy the full SHA
    cb2a30e View commit details
    Browse the repository at this point in the history
  186. [doc] fix links

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d9c7a8b View commit details
    Browse the repository at this point in the history
  187. Configuration menu
    Copy the full SHA
    a169705 View commit details
    Browse the repository at this point in the history
  188. 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/
    liweijie0812 authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    5a1ca93 View commit details
    Browse the repository at this point in the history
  189. Configuration menu
    Copy the full SHA
    fa47ff2 View commit details
    Browse the repository at this point in the history
  190. [MIG] connector: Migration to 14.0

    eantones authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b8ae035 View commit details
    Browse the repository at this point in the history
  191. Remove connector checkpoints

    Alternatives such as activities can be used.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    32a08cf View commit details
    Browse the repository at this point in the history
  192. [UPD] Update connector.pot

    oca-travis authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e3b9857 View commit details
    Browse the repository at this point in the history
  193. [UPD] README.rst

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b21db15 View commit details
    Browse the repository at this point in the history
  194. connector: add web_icon to root menu item

    This is used as icon in app drawer.
    ruuter authored and asierneiradev committed Jan 30, 2023
    1 Configuration menu
    Copy the full SHA
    4b748bd View commit details
    Browse the repository at this point in the history
  195. connector: new app icon

    Since connector adds root menu item, it should have proper icon.
    This is most apparent in app drawer provided by web_responsive.
    ruuter authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    a22b20b View commit details
    Browse the repository at this point in the history
  196. connector 14.0.1.1.0

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    fb66700 View commit details
    Browse the repository at this point in the history
  197. Initialize 15.0 branch

    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ca5ac01 View commit details
    Browse the repository at this point in the history
  198. [MIG][15.0] component

    i-vyshnevska authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    c778643 View commit details
    Browse the repository at this point in the history
  199. [UPD] Update connector.pot

    oca-ci authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    2120e52 View commit details
    Browse the repository at this point in the history
  200. [UPD] README.rst

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    659a2ac View commit details
    Browse the repository at this point in the history
  201. Configuration menu
    Copy the full SHA
    f50f9db View commit details
    Browse the repository at this point in the history
  202. connector 15.0.1.0.1

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    897f964 View commit details
    Browse the repository at this point in the history
  203. Use built-in callable()

    florentx authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    51c7957 View commit details
    Browse the repository at this point in the history
  204. connector 15.0.1.0.2

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f19226b View commit details
    Browse the repository at this point in the history
  205. Configuration menu
    Copy the full SHA
    f8879a5 View commit details
    Browse the repository at this point in the history
  206. [REF] obsolete coding cookie

    florentx authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    6dee0e3 View commit details
    Browse the repository at this point in the history
  207. Configuration menu
    Copy the full SHA
    f9881ca View commit details
    Browse the repository at this point in the history
  208. Configuration menu
    Copy the full SHA
    a307d46 View commit details
    Browse the repository at this point in the history
  209. connector 15.0.1.0.3

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    466d092 View commit details
    Browse the repository at this point in the history
  210. Configuration menu
    Copy the full SHA
    ec7aa36 View commit details
    Browse the repository at this point in the history
  211. connector 15.0.1.0.4

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    66de2a2 View commit details
    Browse the repository at this point in the history
  212. Add a test_connector addon

    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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    4260157 View commit details
    Browse the repository at this point in the history
  213. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ca2a458 View commit details
    Browse the repository at this point in the history
  214. Configuration menu
    Copy the full SHA
    dcb7107 View commit details
    Browse the repository at this point in the history
  215. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    91871d8 View commit details
    Browse the repository at this point in the history
  216. Configuration menu
    Copy the full SHA
    fc551a0 View commit details
    Browse the repository at this point in the history
  217. Configuration menu
    Copy the full SHA
    4b3ef71 View commit details
    Browse the repository at this point in the history
  218. Add test_component

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9c61979 View commit details
    Browse the repository at this point in the history
  219. Fix error messages

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    deb522c View commit details
    Browse the repository at this point in the history
  220. Update test_connector

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b6a0419 View commit details
    Browse the repository at this point in the history
  221. Fix test: post_install

    Tests using odoo transactions must run post install, because during the
    install the registry is not ready, so the components aren't neither.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    e5f70cf View commit details
    Browse the repository at this point in the history
  222. 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.
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b05c1aa View commit details
    Browse the repository at this point in the history
  223. 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
    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f2514f1 View commit details
    Browse the repository at this point in the history
  224. Configuration menu
    Copy the full SHA
    7b3d6e5 View commit details
    Browse the repository at this point in the history
  225. [MIG] Set modules uninstallable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    1185f39 View commit details
    Browse the repository at this point in the history
  226. Make addons installable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    7c1c442 View commit details
    Browse the repository at this point in the history
  227. Configuration menu
    Copy the full SHA
    abbc66c View commit details
    Browse the repository at this point in the history
  228. Remove ConnectorUnit features

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b9b8328 View commit details
    Browse the repository at this point in the history
  229. Fix some pylint-odoo warnings

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ae7b4cf View commit details
    Browse the repository at this point in the history
  230. Configuration menu
    Copy the full SHA
    59103ed View commit details
    Browse the repository at this point in the history
  231. Configuration menu
    Copy the full SHA
    f0793da View commit details
    Browse the repository at this point in the history
  232. Migrate connector to 12.0

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3de179d View commit details
    Browse the repository at this point in the history
  233. [UPD] README.rst

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    548e3ad View commit details
    Browse the repository at this point in the history
  234. [ADD] icon.png

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d9994aa View commit details
    Browse the repository at this point in the history
  235. [UPD] Update test_connector.pot

    oca-travis authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    22cb36a View commit details
    Browse the repository at this point in the history
  236. Set modules uninstallable

    guewen authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    3bd7fc3 View commit details
    Browse the repository at this point in the history
  237. Configuration menu
    Copy the full SHA
    df295f8 View commit details
    Browse the repository at this point in the history
  238. [MIG] connector and test_connector: Migration to 13.0

    Laurent-Corron authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    f28e145 View commit details
    Browse the repository at this point in the history
  239. Configuration menu
    Copy the full SHA
    51c0e6d View commit details
    Browse the repository at this point in the history
  240. test_connector: fix tests

    removes unknown fields from backend creation args
    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    d2b4c18 View commit details
    Browse the repository at this point in the history
  241. [UPD] README.rst

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    ae3b9c9 View commit details
    Browse the repository at this point in the history
  242. Configuration menu
    Copy the full SHA
    d8ba0c3 View commit details
    Browse the repository at this point in the history
  243. Configuration menu
    Copy the full SHA
    eaca2b0 View commit details
    Browse the repository at this point in the history
  244. [UPD] Update test_connector.pot

    oca-travis authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    4cb2a55 View commit details
    Browse the repository at this point in the history
  245. [UPD] README.rst

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    a03c041 View commit details
    Browse the repository at this point in the history
  246. Initialize 15.0 branch

    lmignon authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    b5e2170 View commit details
    Browse the repository at this point in the history
  247. [MIG][15.0] test_connector

    i-vyshnevska authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    25af7fb View commit details
    Browse the repository at this point in the history
  248. [UPD] Update test_connector.pot

    oca-ci authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    354951d View commit details
    Browse the repository at this point in the history
  249. [UPD] README.rst

    OCA-git-bot authored and asierneiradev committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    cdbe101 View commit details
    Browse the repository at this point in the history
  250. Configuration menu
    Copy the full SHA
    c316d5d View commit details
    Browse the repository at this point in the history