U
    ¦«d!  ã                   @   s*   d dl T d dlmZ G dd„ dejƒZdS )é    )Ú*)Úcmf_task_reportc                       s<   e Zd Zedeedœ‡ fdd„ƒZdd„ Zdd	d
„Z‡  Z	S )ÚCmfTaskReportNF)Úall_optionsÚmodels_filtersc           
         sN   |sg }|dkr2|o|  dd ¡}	|	r2|dd|	gg}tƒ j|f|||dœ|—ŽS )NZreport_filterZ	parent_idz==)ÚfilterÚmodels_listÚobject_fields)ÚgetÚsuperÚfield_options_list)
ÚclsZrelation_field_nameZ	object_idr	   r   r   r   r   ÚkwargsÚparent©Ú	__class__© ú"./common/models/cmf_task_report.pyr      s    ÿÿz CmfTaskReport.field_options_listc                 C   s   |   ¡  d S ©N)Z_check_simple_perm)Úselfr   r   r   Úcheck_simple_perm   s    zCmfTaskReport.check_simple_permõ   Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ðµc                 O   s   d S r   r   )r   ÚtextZnotify_nameÚargsr   r   r   r   Úall_place_notify   s    zCmfTaskReport.all_place_notify)NNNFNN)r   )
Ú__name__Ú
__module__Ú__qualname__ÚclassmethodÚboolÚdictr   r   r   Ú__classcell__r   r   r   r   r      s             þ þr   N)Zcmf.includeZcommon.fieldsr   r   r   r   r   r   Ú<module>   s   