[IMP] Improve ospp_base and ospp_slide modules
							parent
							
								
									7118044300
								
							
						
					
					
						commit
						3c69065731
					
				|  | @ -155,6 +155,7 @@ class ChannelInstance(models.Model): | |||
|     instance_created = fields.Boolean('Instance Created', default=False) | ||||
|     message = fields.Text('Message') | ||||
|     demo_data = fields.Boolean('Demo Data', default=True) | ||||
|     is_notified = fields.Boolean('Is Notified', default=False) | ||||
| 
 | ||||
|     def name_get(self): | ||||
|         # Prefetch the fields used by the `name_get`, so `browse` doesn't fetch other fields | ||||
|  |  | |||
|  | @ -29,8 +29,10 @@ | |||
|                             <field name="name"/> | ||||
|                             <field name="service_url" widget="url"/> | ||||
|                             <field name="admin_account"/> | ||||
|                             <field name="demo_data"/> | ||||
|                             <field name="instance_created"/> | ||||
|                             <field name="type" optional="show"/> | ||||
|                             <field name="demo_data" optional="hide"/> | ||||
|                             <field name="instance_created" optional="hide"/> | ||||
|                             <field name="is_notified" optional="hide"/> | ||||
|                             <field name="user_scope" widget="many2many_tags" invisible="1"/> | ||||
|                         </tree> | ||||
|                         <form> | ||||
|  | @ -49,6 +51,7 @@ | |||
|                                     <field name="service_url" widget="url"/> | ||||
|                                     <field name="demo_data"/> | ||||
|                                     <field name="instance_created"/> | ||||
|                                     <field name="is_notified"/> | ||||
|                                     <field name="active"/> | ||||
|                                     <field name="uuid" invisible="0"/> | ||||
|                                 </group> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Oliver Yuan
						Oliver Yuan