camptocamp/odoo-cloud-platform

Platform check should take in account the env variable DISABLE_ATTACHMENT_STORAGE

StephaneMangin opened this issue · 1 comments

def _check_filestore(self, environment_name):

    def is_storage_disabled():
        from distutils.util import strtobool
        return bool(strtobool(os.environ.get("DISABLE_ATTACHMENT_STORAGE") or '0'))

    @api.model
    def _check_filestore(self, environment_name):
        params = self.env["ir.config_parameter"].sudo()
        use_azure = params.get_param("ir_attachment.location") == AZURE_STORE_KIND.name
        if self.is_storage_disabled():
            return False
        if environment_name in ("prod", "integration"):
        (...)       

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.