What are "modifiers"?

Asked by Francois Degrave

Hi!

I see things in the code, and in the architecture of the views, such as attributes 'modifiers ="{}"'. It seems they are intended to replace attrs attributes, am I right? How do they work?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Francois Degrave
Solved:
Last query:
Last reply:
Revision history for this message
Vo Minh Thu (thu) said :
#1

modifiers are intended to replace attrs and other attributes (readonly, required, visible). For the moment, they exist along side of those attributes. The reason to introduce them is to streamline things for the new web client so it can only look at one place. Also evalution of 'modifiers' will happen server-side, relinquishing the need for a python(-like) interpreter client-side. Finally, modifiers concrete syntax will be json.

Revision history for this message
Francois Degrave (fde-be) said :
#2

Ok, great! Thank you!