小编sam*_*mpa的帖子

.NET Standard/Core 中的 .vspscc 文件

如何在 .NET Standard / .NET Core 中处理 .vspscc 文件?

他们仍然应该是该项目的一部分吗?

它们应该受到源代码控制(签入)吗?

-> 如果没有,最好将其明确排除在 SourceControl Explorer 中或使用 .tfignore 文件

.net tfs configuration-files visual-studio asp.net-core

5
推荐指数
1
解决办法
2190
查看次数

Odoo/Python如何重定向到一个网站

在我的表单视图中,每个记录都应该有一个图标,其中包含重定向到特定网站的图标.例如:

记录1 | www.test.com/a

记录2 | www.test.com/b

如何在点击时创建这样的重定向?

我尝试了一个按钮 - 但我不知道如何在动作中重定向:

<form string="MyForm">
                <sheet>
                    <group>
                          <page string="MyPage">
                                <field name="MyRecords" widget="one2many_list">
                                    <tree string="Records">
                                        <field name="identifier"/>
                                        <field name="recordname"/>
                                        <button type="object" name="open_record_action" icon="fa-external-link" />
                                    </tree>
                                </field>
                            </page>
                            <page>
                            ...
                            </page>
                    </group>
                    <group>
                    ...
                    </group>
                </sheet>
Run Code Online (Sandbox Code Playgroud)

在模型中:

@api.multi
    def open_record_action(self, context):
        ????
Run Code Online (Sandbox Code Playgroud)

另外一种可能的解决方案是将链接存储在模型的字段中,并以这种方式在视图中实现它:

<field name="url" widget="url"/>
Run Code Online (Sandbox Code Playgroud)

但是使用此解决方案,将显示链接.但我只想看到图标.

任何想法如何解决?

python browser tabs redirect openerp

0
推荐指数
1
解决办法
4261
查看次数