Conversation
* 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
* Rename it because it was shadowing another test * Compute in the location's context
The wizard is available on the backend.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: connector-magento-12.0/connector-magento-12.0-connector_magento Translate-URL: https://translation.odoo-community.org/projects/connector-magento-12-0/connector-magento-12-0-connector_magento/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: connector-magento-12.0/connector-magento-12.0-connector_magento Translate-URL: https://translation.odoo-community.org/projects/connector-magento-12-0/connector-magento-12-0-connector_magento/
- Rule paid to allow for order with nothing to pay (i.e. grand_total is zero) - Rule paid not to allow negative paid amount - Row totals are excl. discount amount
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: connector-magento-12.0/connector-magento-12.0-connector_magento Translate-URL: https://translation.odoo-community.org/projects/connector-magento-12-0/connector-magento-12-0-connector_magento/
0c2384d to
1f1f320
Compare
|
@bizzappdev great work! Looks Travis is failing because of a missing dependency base_technical_user. As I'm not 100% sure how Travis is taking it, but I suppose it would be enough to add server-tools to the |
| _logger.info( | ||
| "No component registry for database %s. " | ||
| "Probably because the Odoo registry has not been built " | ||
| "yet." % (self.env.cr.dbname) |
There was a problem hiding this comment.
| "yet." % (self.env.cr.dbname) | |
| "yet.", self.env.cr.dbname |
Please note that leaving the string formatting to the logger is better, since it will only format it if the logging level is enabled (avoids computation if not needed) and also it can have unintended consequences with other tools, e.g. Sentry will not group the events correctly if the log message is already formatted.
victoralmau
left a comment
There was a problem hiding this comment.
Good job, just a few small changes (mostly to simplify super())
|
|
||
| { | ||
| "name": "Magento Connector", | ||
| "version": "13.0.0.0.0", |
There was a problem hiding this comment.
| "version": "13.0.0.0.0", | |
| "version": "13.0.1.0.0", |
| _usage = "record.exporter" | ||
|
|
||
| def __init__(self, working_context): | ||
| super(MagentoBaseExporter, self).__init__(working_context) |
There was a problem hiding this comment.
| super(MagentoBaseExporter, self).__init__(working_context) | |
| super().__init__(working_context) |
| _inherit = "magento.base.exporter" | ||
|
|
||
| def __init__(self, working_context): | ||
| super(MagentoExporter, self).__init__(working_context) |
There was a problem hiding this comment.
| super(MagentoExporter, self).__init__(working_context) | |
| super().__init__(working_context) |
| _usage = "record.importer" | ||
|
|
||
| def __init__(self, work_context): | ||
| super(MagentoImporter, self).__init__(work_context) |
There was a problem hiding this comment.
| super(MagentoImporter, self).__init__(work_context) | |
| super().__init__(work_context) |
| _usage = "order.line.builder.magento.store_credit" | ||
|
|
||
| def __init__(self, work_context): | ||
| super(StoreCreditLineBuilder, self).__init__(work_context) |
There was a problem hiding this comment.
| super(StoreCreditLineBuilder, self).__init__(work_context) | |
| super().__init__(work_context) |
|
|
||
| class TestImportPartner(MagentoSyncTestCase): | ||
| def setUp(self): | ||
| super(TestImportPartner, self).setUp() |
There was a problem hiding this comment.
| super(TestImportPartner, self).setUp() | |
| super().setUp() |
|
|
||
| class TestImportProduct(MagentoSyncTestCase): | ||
| def setUp(self): | ||
| super(TestImportProduct, self).setUp() |
There was a problem hiding this comment.
| super(TestImportProduct, self).setUp() | |
| super().setUp() |
| """ Test the imports of the image of the products. """ | ||
|
|
||
| def setUp(self): | ||
| super(TestImportProductImage, self).setUp() |
There was a problem hiding this comment.
| super(TestImportProductImage, self).setUp() | |
| super().setUp() |
| """ Test related actions on stored jobs """ | ||
|
|
||
| def setUp(self): | ||
| super(TestRelatedActionStorage, self).setUp() |
There was a problem hiding this comment.
| super(TestRelatedActionStorage, self).setUp() | |
| super().setUp() |
|
|
||
| class TestSaleOrder(MagentoSyncTestCase): | ||
| def setUp(self): | ||
| super(TestSaleOrder, self).setUp() |
There was a problem hiding this comment.
| super(TestSaleOrder, self).setUp() | |
| super().setUp() |
|
@sbidoul can you help me with runboat ? 🙂 |
|
A rebase or push will create a build. |
70bb8da to
885b62c
Compare
885b62c to
747cde7
Compare
|
@bizzappdev can you rebase ? |
I just did 2 hours ago. and right now Already is up to date. |
|
Hello, any possibility to merge it to |
No description provided.