Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4302 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 24
13732
1
ก.ค. 20
4804
0
ส.ค. 19
3262
0
ก.ค. 19
6480
6
ก.ค. 19
13053