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

When I'm trying to add the groups to the server action (below example):

<data>

        <record id="model_account_analytic_lines_validated" model="ir.actions.server">

            <field name="name">Validate Timesheets</field>

            <field name="type">ir.actions.server</field>

            <field name="model_id" ref="analytic.model_account_analytic_line" />

            <field name="binding_model_id" ref="analytic.model_account_analytic_line" />

            <field name="groups_id" eval="[(4, ref('hr_timesheet.group_timesheet_manager'))]"/>

            <field name="state">code</field>

            <field name="code">action = records.action_validate_timesheets()</field>

        </record>

    </data>


It's not giving any traceback/error but in logs, it gives a warning as below:

WARNING v12_community odoo.models: ir.actions.server.write() with unknown fields: groups_id 

Did I make any mistake in the above example? 
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The groups_id field was added to ir.actions.server in Odoo 13. It does not exist in Odoo 12.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks for the information Paresh!

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
8079
2
มิ.ย. 25
3002
2
พ.ค. 25
7909
2
ธ.ค. 19
5097
0
ต.ค. 19
3400