(self, fp_templates)
return self.env["account.fiscal.position"].browse(fp_ids)
Return company fiscal positions that match the given templates.
Return company fiscal positions that match the given templates.
Return company fiscal positions that match the given templates .
def get_fps_from_templates(self, fp_templates):
        """Return company fiscal positions that match the given templates."""
        self.ensure_one()
        fp_ids = []
        for tmpl in fp_templates:
            fp_id = self._get_fp_id_from_fp_template(tmpl, self)
            if fp_id:
                fp_ids.append(fp_id)
        return self.env["account.fiscal.position"].browse(fp_ids)
def get_fps_from_templates ( self , fp_templates ) : self . ensure_one ( ) fp_ids = [ ] for tmpl in fp_templates : fp_id = self . _get_fp_id_from_fp_template ( tmpl , self ) if fp_id : fp_ids . append ( fp_id ) return self . env [ "account.fiscal.position" ] . browse ( fp_ids )