# -*- coding: utf-8 -*-# Part of Softhealer Technologies.fromodooimportmodels,apiclassIrAttachment(models.Model):_inherit='ir.attachment'@api.modeldefcreate(self,vals):res=super(IrAttachment,self).create(vals)ifres.res_modelandres.res_idandres.res_model=='helpdesk.ticket':res.public=TruereturnresclassIrModel(models.Model):_inherit='ir.model.data'@api.modeldefxmlid_to_res_model_res_id(self,xmlid,raise_if_not_found=False):returnself._xmlid_to_res_model_res_id(xmlid,raise_if_not_found)[1]