odoo field components

Each field type will use the appropriate default display in the form assembly. But there are alternative components may be used. For text fields , the following components:

  • email email text to be used to make operational "mail-to" address
  • url URL for text formatted as clickable
  • html for text rendered as HTML content; in the edit mode, it shows a case where the WYSIWYG formatting (WYSIWYG) editor, without the use of HTML code content.

For numeric fields , the following components:

  • handle as a sort field in the list view, showing a handle to drag and drop so that we can customize sorting
  • float_time The field formatted as a float with the value of the hours and minutes
  • monetary field will display a float currency amounts. It is used with currency_id field, can also options = "{ 'currency_field': 'currency_id'}" to use another field name
  • progressbar a floating point value is displayed as a percentage of the progress bar, the field will help to show completion rates
  • assemblies may be used and percentage percentpie float field

For the association and option fields , the following additional components:

  • many2many_tags the value displayed as a button label list
  • many2many_checkboxes the option value is displayed as a list of checkboxes
  • selection using the selection field component of many-to-one field
  • radio to radio button selection field options
  • priority option field will appear as a clickable list star. Select an item usually value.
  • state_selection the selection list is displayed as kanban status lights. Normal state appears as gray finish is green, the other state is displayed in red.
  • pdf_viewer is a binary field (incorporated in Odoo 12).

Guess you like

Origin www.cnblogs.com/fly-kaka/p/11024878.html