Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
9276 Visualizzazioni

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? 
Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

Thanks for the information Paresh!

Post correlati Risposte Visualizzazioni Attività
1
mar 15
7887
2
giu 25
2456
2
mag 25
7722
2
dic 19
4936
0
ott 19
3274