Monday, August 24, 2020
2 changes · master
Enhancements to existing features
Calendar quick creation can now use a configured field instead of assuming every record is named with a standard "name" field. This helps customized Odoo models create calendar entries faster without forcing users into the full form view.
Original PR description
Until now, the quick creation dialog of the calendar view assumed that the underlying model used a 'name' field for quick creation, with a graceful degradation if it was not the case (redirect to the form view). This prevented quick creation of models created through customizations (for example). This commit adds a `create_name_field` attribute on the view declaration (similarly to many2one field) that allows to specify the field to use during quick creation. Task-2185423
Users configuring calendar views in Studio can now choose which field is used when quickly creating a new calendar entry. This makes calendar setup more flexible and helps newly created records use the right name or label from the start.
Original PR description
Add support for the `create_name_field` attribute on the calendar view in the view editor and in the modelconfigurator. Task-2185423