-
-
Notifications
You must be signed in to change notification settings - Fork 147
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] connector_importer: migrate to v16 #106
Conversation
/ocabot migration connector_importer |
230d41d
to
9c04992
Compare
fbce234
to
f06be94
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
a4fc5f6
to
be74511
Compare
If the source is not ready yet, avoid running them.
Ease understanding if/when a recordset has been ran already.
Fail gracefully if a source file is not set yet.
You can now configure a custom domain on record_handler options. Eg: options: record_handler: match_domain: "[('name', =, values['name'])]" When defined, it will take precedence over the unique key if any.
Before this change if you did not override 'odoo_find' itself your custom odoo_find_domain would be bypassed if you had an empty unique_key. This was a clear issue when you specified only 'options.record_handler.match_domain'.
Values where not properly converted for x2m fields.
You can now use ref and env to compute your domain.
Keys having both prefix and a transformer like 'xid::' were discarded. A key like 'xid::foo.parent_id' would simply be ignored.
You can now pass options for specific fields converter via conf. If for instance, the model you are importing has a relation `partner_id` you can state that missing records must be created automatically. Eg:: - model: product.product options: importer: odoo_unique_key: barcode mapper: name: product.product.mapper converter: categ_id: create_missing: True All the keys inside converted/field will be propagated to the `backend_to_rel` converter.
To ease retrieval of import session reports.
You can now pass any context key to the importer (propagated to the record handler) by using 'ctx' key in the 'importer' options.
Was broken because available_importers requires an import type which is not available before editing. It was also impossible to set the backend directly.
connector_importer: fix test_recordset.test_docs_html Without components registered this is broken however it is already tested in test_recordset_importer
be74511
to
ca43da2
Compare
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 3566ce1. Thanks a lot for contributing to OCA. ❤️ |
Ported as not installable here #105 to ease review.
Depends on:
Most of the changes can be ported as is to v15. FWD ported all improvements from 14 and 15.