[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) |     instance_created = fields.Boolean('Instance Created', default=False) | ||||||
|     message = fields.Text('Message') |     message = fields.Text('Message') | ||||||
|     demo_data = fields.Boolean('Demo Data', default=True) |     demo_data = fields.Boolean('Demo Data', default=True) | ||||||
|  |     is_notified = fields.Boolean('Is Notified', default=False) | ||||||
| 
 | 
 | ||||||
|     def name_get(self): |     def name_get(self): | ||||||
|         # Prefetch the fields used by the `name_get`, so `browse` doesn't fetch other fields |         # Prefetch the fields used by the `name_get`, so `browse` doesn't fetch other fields | ||||||
|  |  | ||||||
|  | @ -29,8 +29,10 @@ | ||||||
|                             <field name="name"/> |                             <field name="name"/> | ||||||
|                             <field name="service_url" widget="url"/> |                             <field name="service_url" widget="url"/> | ||||||
|                             <field name="admin_account"/> |                             <field name="admin_account"/> | ||||||
|                             <field name="demo_data"/> |                             <field name="type" optional="show"/> | ||||||
|                             <field name="instance_created"/> |                             <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"/> |                             <field name="user_scope" widget="many2many_tags" invisible="1"/> | ||||||
|                         </tree> |                         </tree> | ||||||
|                         <form> |                         <form> | ||||||
|  | @ -49,6 +51,7 @@ | ||||||
|                                     <field name="service_url" widget="url"/> |                                     <field name="service_url" widget="url"/> | ||||||
|                                     <field name="demo_data"/> |                                     <field name="demo_data"/> | ||||||
|                                     <field name="instance_created"/> |                                     <field name="instance_created"/> | ||||||
|  |                                     <field name="is_notified"/> | ||||||
|                                     <field name="active"/> |                                     <field name="active"/> | ||||||
|                                     <field name="uuid" invisible="0"/> |                                     <field name="uuid" invisible="0"/> | ||||||
|                                 </group> |                                 </group> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Oliver Yuan
						Oliver Yuan