小编Jin*_*nna的帖子

grunt magento2警告标志显示magento命令

我使用grunt遇到了问题

警告标志是

jit-grunt: Plugin for the "&&" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "&&" failed. Used --force, continuing.

jit-grunt: Plugin for the "php" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "php" failed. Used --force, continuing.

jit-grunt: Plugin for the "bin/magento" task not found.
If you have installed the plugin already, please setting the static mapping. …
Run Code Online (Sandbox Code Playgroud)

php gruntjs magento2

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

Odoo 9如何将自定义视图模板附加到现有视图中?

我想在KanbanView.buttons和KanbanView.Group之间添加一个模板,以便在我查看"project.task"看板视图时在"project.project"模型中显示描述字段.

我想应该有一些地方可以将这些模板附加到看板视图中,但不幸的是,我找不到它.

我做的是

我创建了一个自定义模板layouts.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <templates>
            <t t-name="eric-kanban-view">
                <div>This is Eric's kanban view</div>
            </t>
        </templates>
    </data>
</openerp>
Run Code Online (Sandbox Code Playgroud)

我想将模板添加到"project.view_task_kanban"以查找上面的看板视图project.xml

<record id="project_task_custom_kanban" model="ir.ui.view">
    <field name="inherit_id" ref="project.view_task_kanban"/>
    <field name="model">project.task</field>
    <field name="arch" type="xml">
        <xpath expr="//templates" position="before">
            <t t-call="eric-kanban-view"/>
        </xpath>
    </field>
</record>
Run Code Online (Sandbox Code Playgroud)

openerp .py

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

{
    'name' : 'project_customized',
    'version' : '1.1',
    'author' : "Eric Lee",
    'description': 'eric\'s Project customized module',
    'installable' : True, …
Run Code Online (Sandbox Code Playgroud)

odoo odoo-9 odoo-view

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

标签 统计

gruntjs ×1

magento2 ×1

odoo ×1

odoo-9 ×1

odoo-view ×1

php ×1