addons14/queue_job/models/queue_job.py
def related_action_open_record(self):
        """Open a form view with the record(s) of the job.

        For instance, for a job on a ``product.product``, it will open a
        ``product.product`` form view with the product record(s) concerned by
        the job. If the job concerns more than one record, it opens them in a
        list.

        This is the default related action.

        """
        self.ensure_one()
        records = self.records.exists()
        if not records:
            return None
        action = {
            "name": _("Related Record"),
            "type": "ir.actions.act_window",
            "view_mode": "form",
            "res_model": records._name,
        }
        if len(records) == 1:
            action["res_id"] = records.id
        else:
            action.update(
                {
                    "name": _("Related Records"),
                    "view_mode": "tree,form",
                    "domain": [("id", "in", records.ids)],
                }
            )
        return action
Open a form view with the record(s) of the job.

        For instance, for a job on a ``product.product``, it will open a
        ``product.product`` form view with the product record(s) concerned by
        the job. If the job concerns more than one record, it opens them in a
        list.

        This is the default related action.

        
Open a form view with the record(s) of the job.

This is the default related action.
Open a form view with the record ( s ) of the job . This is the default related action .
def related_action_open_record(self):
        self.ensure_one()
        records = self.records.exists()
        if not records:
            return None
        action = {
            "name": _("Related Record"),
            "type": "ir.actions.act_window",
            "view_mode": "form",
            "res_model": records._name,
        }
        if len(records) == 1:
            action["res_id"] = records.id
        else:
            action.update(
                {
                    "name": _("Related Records"),
                    "view_mode": "tree,form",
                    "domain": [("id", "in", records.ids)],
                }
            )
        return action
def related_action_open_record ( self ) : self . ensure_one ( ) records = self . records . exists ( ) if not records : return None action = { "name" : _ ( "Related Record" ) , "type" : "ir.actions.act_window" , "view_mode" : "form" , "res_model" : records . _name , } if len ( records ) == 1 : action [ "res_id" ] = records . id else : action . update ( { "name" : _ ( "Related Records" ) , "view_mode" : "tree,form" , "domain" : [ ( "id" , "in" , records . ids ) ] , } ) return action
Open a form view with the record(s) of the job.
Open a form view with the record ( s ) of the job .
"""Open a form view with the record(s) of the job.

        For instance, for a job on a ``product.product``, it will open a
        ``product.product`` form view with the product record(s) concerned by
        the job. If the job concerns more than one record, it opens them in a
        list.

        This is the default related action.

        """
self