-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
[12.0][MIG] connector_magento #292
Conversation
This is missing all the commit history in 10.0, as you are using a different starting branch. |
Well, not all, but a part. Maybe it was added after the 11.0 PR. Please compare both. |
@pedrobaeza indeed, I tried to retrieve all previous commits when the module was still called |
Well, I think it's enough with commits after renaming. I miss 2 o 3 only. |
58b6e63
to
2acd90f
Compare
* Use vcr.py to record the exchanges instead of a self-made recorder * Use new base Components test case classes * Separate export tests in 2 phases: trigger of the export which check that the jobs are delayed, and test the job itself in a second test
I removed it earlier, but it is required when we import products
… on the wrong one
Unpacks the giftcard code from the PHP serialized information about the giftcards using regex.
Since the value will be a string like '0.0000', the prior tests were insufficient to prevent always adding a line.
* Rename it because it was shadowing another test * Compute in the location's context
cdcace8
to
6f3e828
Compare
@rvalyi I rebased this branch to remove the pending merge on OCA/connector-ecommerce#49, it's ready to review/merge now. |
@sebalix hi! Have you evaluated the complexity to support Magento 2? |
@JordiBForgeFlow Hi! Not on latest versions of Odoo, but we are currently migrating this connector to Magento 2.2+ for OpenERP 7.0... :) (based on the work already started by @StefanRijnhart on Odoo 8.0 here: #289 ). I should take time to forward port some fixes in his PR BTW. |
@@ -0,0 +1,163 @@ | |||
interactions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this file was added unintendedly.
Great work! I've got just the one comment. |
@sebalix please throw your fixes in my direction. I'll be starting to port Magento2 compatibility to 12.0 based to this branch if noone else is on it already (@JordiBForgeFlow?) |
@sebalix I took the liberty of removing this ':w' file myself and pushing it to your branch because that is the only flaw I could find this PR. Hoping we can merge it soon. |
Oh, I see runbot fails. Probably on these warnings:
|
@StefanRijnhart thank you for fixing this branch! Feel free to push on my branch to get it merged, I'm quite busy at the moment so I can't work on it sadly. |
Thanks, I'll have a look at the warnings then. |
Runbot green! Travis borked on failed nodejs download (and feedback missing in Github?) but previous run was green: https://travis-ci.org/github/OCA/connector-magento/builds/671728251 |
@sebalix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StefanRijnhart I reviewed your commit, LG (but can't approve my own PR), feel free to squash your commits
@JordiBForgeFlow a bit late sorry, no sadly I didn't see these branches until now. |
@sebalix thanks for the review. Can you squash my little commits into your migration commit? |
for storeview in lang_storeviews: | ||
lang_record = self._get_magento_data(storeview.external_id) | ||
map_record = mapper.map_record(lang_record) | ||
record = list(map_record.values()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't convert this dictionary of values to list
. You can tell from line 320 that record
needs to stay in dictionary format so that you can fetch its items()
item_qty = {} | ||
# get product and quantities to ship from the picking | ||
for line in binding.move_lines: | ||
sale_line = line.procurement_id.sale_line_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sale_line = line.sale_line_id
@StefanRijnhart @pedrobaeza sorry for the delay, yes of course, I'll close this one. |
Thanks, and thank you for your work on this @sebalix! |
PR itself ready to be reviewed, but dependencies are not ready.
Depends on:
base_technical_user: [12.0][MIG] base_technical_user server-tools#1560connector_ecommerce: [12.0][MIG] connector ecommerce connector-ecommerce#49sale_exception: [12.0][MIG] sale_exception sale-workflow#831base_exception: [12.0][MIG] base_exception server-tools#1557sale_automatic_workflow_payment_mode: [12.0][MIG] sale_automatic_workflow_payment_mode sale-workflow#786sale_automatic_workflow: [12.0][MIG] sale_automatic_workflow sale-workflow#830[BUG] account_payment_sale: [12.0][BUG] account_payment_sale bank-payment#536fixed by https://github.com/OCA/bank-payment/pull/630/files
oca_dependencies.txt
has been updated to include all the dependencies and install the module on Travis.Documentation generation is stuck because of this bug: odoo/odoo#28125Don't know what to do about this, excepting disable the
api/api_models
part of the documentation (need to check if some other parts depend on it).EDIT: I disabled the documentation for class members using
fields
as a workaround.