跳至内容
菜单
此问题已终结

I'd like to configure the priority widget I added to the kanban view in the "Projects" module to look like the one in the "Next Activities" in the "Sales" module.

I added the widget to the detail page of a project, and there the widget looks like it should look like: filled golden stars when clicked and emtpy stars with a grey border when not clicked.

So far I have the following XML:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="univention_project_valuation" model="ir.ui.view">
            <field name="name">univention.project.valuation</field>
            <field name="model">project.project</field>
            <field name="inherit_id" ref="project.edit_project"/>
            <field name="arch" type="xml">
                <field name="user_id" position="after">
                    <field name="project_valuation" required="False" widget="priority"/>
                </field>
            </field>
        </record>
        <record id="univention_project_valuation_kanban" model="ir.ui.view">
            <field name="name">univention.project.valuation.kanban</field>
            <field name="model">project.project</field>
            <field name="inherit_id" ref="project.view_project_kanban"/>
            <field name="arch" type="xml">
                <xpath expr="//div[contains(@class, 'o_primary')]" position="after">
                    <field name="project_valuation" widget="priority"/>
                </xpath>
            </field>
        </record>
    </data>
</openerp>

Where must I change what to achieve what I want to do?

形象
丢弃
相关帖文 回复 查看 活动
1
1月 24
13731
1
7月 20
4804
0
8月 19
3262
0
7月 19
6480
6
7月 19
13038