Skip to content

[v8] Options 'create' and 'create_edit' not working. #5

@NicolasWebDev

Description

@NicolasWebDev

Hi,

In a custom class defined using the v8 API, the options 'create' and 'create_edit' in the .xml doesn't seem to hide the corresponding drop-down menu entries.

Field definition:
emergency_contact_id = fields.Many2one('hr.employee.family.member', string='Emergency contact', domain="[('employee_id', '=', id)]" )

View:
<field name="emergency_contact_id" options="{'create_edit': false, 'create': false}"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions