mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add widget time sample for jq
This commit is contained in:
@@ -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.')]
|
||||
|
||||
|
||||
@@ -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中使用-->
|
||||
|
||||
Reference in New Issue
Block a user