Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NicolasWebDev opened this issue Nov 24, 2014 · 1 comment
Open

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

NicolasWebDev opened this issue Nov 24, 2014 · 1 comment

Comments

@NicolasWebDev
Copy link

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}"/>

@njeudy
Copy link
Member

njeudy commented Nov 24, 2014

Ok I will for that .. thanks,

Le 24 nov. 2014 à 16:48, Sathors <[email protected] mailto:[email protected]> a écrit :

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:


Reply to this email directly or view it on GitHub #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants