Button readonly

Asked by aymen

Hello,

I have a field one2many. when i try to add a line in this field, all buttons appear in mode readonly. But when i try to modify an existant line buttons appear normally.

Someone can help me please?
Thank's

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Aymen,

This is by design.

For an unsaved record, the button is not activated.

Thanks.

Revision history for this message
aymen (alaya-mohamedaymen) said :
#2

Thank you for the answer, but how can i make it activated because i have to apply a constraint when clicking on the button

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

When you click button, constraint will automatically apply.

In easy words, you should create _constraints, which will be enough for you.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask aymen for more information if necessary.

To post a message you must log in.