add widget time sample for jq

This commit is contained in:
Ivan Office
2024-12-07 04:42:15 +08:00
parent b153d88813
commit 8d407027de
2 changed files with 5 additions and 2 deletions

View File

@@ -108,10 +108,11 @@ class ModelNew(models.Model):
column1="new_id", column2="partner_id",
string="autosave_many2many_tags")
w_date_begin = fields.Char(string='Date Begin')
w_date_end = fields.Char(string='Date End')
w_date_begin = fields.Char(string='Widget Date Begin')
w_date_end = fields.Char(string='Widget Date End')
w_toggle_button = fields.Boolean(string='toggle_button')
w_res_partner_many2one = fields.Char(string='Boolean toggle')
w_int_time_delta = fields.Integer(string='time_delta', default=50)
_sql_constraints = [('uniq_ref', 'unique(ref)', 'The reference must be unique.')]

View File

@@ -26,6 +26,7 @@
widget="badge" optional="show"/>
<field name="active" optional="show" widget="boolean_toggle"/>
<field name="user_id" optional="show" widget="many2one_avatar_user"/>
<field name="w_int_time_delta" widget="time_delta"/>
</list>
</field>
</record>
@@ -121,6 +122,7 @@
<field name="w_progressbar" widget="progressbar" options="{'editable': true}" title="Integer"/>
<field name="w_percentpie" widget="percentpie" title="float"/>
<field name="w_percentage" widget="percentage" title="float"/>
<field name="w_int_time_delta" widget="time_delta" title="int"/>
</group>
<group string="selection">
<!-- status_with_color 是在 kanban中使用-->