-
Notifications
You must be signed in to change notification settings - Fork 6
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][ADD] sale_import_amazon #83
base: 16.0
Are you sure you want to change the base?
Conversation
ab9faba
to
38eca8d
Compare
0d2d246
to
f0c1522
Compare
@sebastienbeau @bealdav (@florian-dacosta let me jnow if you're interested) I still need to manage the encrypt part of credentials fields and how to register Amazon delivery in Odoo, but it can already connect to the API and create odoo Sale Orders with (I hope) all the information we need. However I have many questions I listed in the PR description about the work I've done so far. I'd be glad if you can have a look and clarify these questions before going further. Thanks! |
FYI @sebastienbeau @bealdav Now I only need to know to test API connection without sharing real credentials in the OCA module... And I'll need your reviews sooner or later! :) |
@clementmbr Did you find a way to test with fake credentials ? |
6cca2b7
to
8267afe
Compare
@bealdav @sebastienbeau Following @florian-dacosta advises I added the dependency on server_environment to avoid storing in db the Amazon credentials (and allowing the user to encrypt these fields with server_environment_data_encryption). Also, I managed to use the module on a real db. It works as expected but I faced some difficulties as the company_id on the Amazon's sale_channel must the same as the one on the selected crm.team and the one on the products referenced in the Amazon's payload. Beside that, I think I really need some review before trying it in production. Thanks! |
@clementmbr What is the key in ORDER_SHIPPED test data which define the company to import into ? Other topic #84 |
@bealdav Unfortunately, there is no key in the JSON given by Amazon that can be used to identify the destination company, as there is no multi-company setup on the Amazon side. But your comment gave me the idea to search for the product only on channel's company (with an explicit error message): Like this we are sure to have a product with the correct company, and we let the user clean its database if needed. What do you think? |
85535c0
to
4ab2f79
Compare
Odoo-Amazon connector for OCA based on sale_import.
Needs OCA/sale-channel#17 for
channel_type
field on sale.channel.TODO:
QUESTIONS: