Differing testing import and actually importing
Hello everyone, i am trying to sync my Odoo application with a external ecommerce. When I import products by CSV, I need to then upload the products to this ecommerce. For this, was trying to overwrite the create and write methods Odoo provudes, to perform the syncing inside these methods.
However, when I run the Test Import, the create method is called anyways and so is my external upload method. Is there a way I can differ when the methods are being called by a test or an actual import?