-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Add configurable support #264
base: 10.0
Are you sure you want to change the base?
Conversation
Hey @PierrickBrun, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
Hi @gurneyalex |
089eb98
to
ffe6c51
Compare
@guewen Our plan is (please fix us):
The main question here is: step 2 and 3 should be synchro or deferred with a new job ? |
af9c42d
to
37664ea
Compare
704d2e1
to
8663e37
Compare
- import product attribute OK - import product attributes values OK - import product attribute lines OK - change product template OK - remove useless product templates WIP TODO : - too many unlink product.template jobs - find a way to hide the principal product.product (linked to the magento configurable product) without removing the magento.product.product associated - unit tests
8663e37
to
3224dc8
Compare
As step 1 alone doesn't make sense without 2 and 3, it seems to me that it can be synchronous. |
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.
A few details spotted on quick eyeballing
connector_magento_configurable/models/product_attribute_line/importer.py
Outdated
Show resolved
Hide resolved
a567d00
to
b2b7163
Compare
- switch to synchronous - problem : in magento, products created before a change in attribute prices don't change their price. In odoo they do -> can result in prices mismatch
b2b7163
to
7792275
Compare
Will start testing tomorrow, I think the functional perimeter is OK. @guewen Do you have an idea how to hide the product.product without attributes ? (screenshot in the first post). If i disable it, the connector will stop updating the template. Also, what is your opinion on the problem in product attribute prices ? |
What is needed to update on the template? I'm really far to have the whole context, so I can be totally wrong, but I see these options:
I don't know what this problem is... In any way there must be a check in the sale order (it exists I think). |
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.
Thanks!
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.
Oops, I reviewed only the last commit. What's the status, still WIP?
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.
Looks good overall. Do you plan to add tests?
connector_magento_configurable/models/product_attribute_line/importer.py
Outdated
Show resolved
Hide resolved
…(for easier filtering)
…or-magento into 10-configurable
Hi @guewen, I think everything is OK now, can you confirm ? |
…ique template/attribute couple
… magento.product.template
219a8b0
to
5ede698
Compare
5ede698
to
c4ffd66
Compare
1beefbe
to
b3051c4
Compare
4a5ae9e
to
b8d2779
Compare
connector_magento_configurable/models/product_product/importer.py
Outdated
Show resolved
Hide resolved
b8d2779
to
abc95a6
Compare
Following the example of the bundle product, empty methods are created in order to be inherited.
That way the "flat" default system stays the same and the additional module will allow to import the configurable products in the Odoo format
import product attribute
import product attributes values
import product attribute lines
change product template
remove useless product templates
import product attribute prices
find a way to hide the principal product.product (linked to the magento configurable product) without removing the magento.product.product associated
example on the first line :
unit tests