Browse Source

[FIX] Remove model_description field since it's not useful in v8

pull/139/head
Agathe Mollé 10 years ago
committed by Alejandro Santana
parent
commit
bcc698d158
  1. 11
      super_calendar/models/super_calendar.py
  2. 6
      super_calendar/views/super_calendar_view.xml

11
super_calendar/models/super_calendar.py

@ -131,7 +131,6 @@ class SuperCalendarConfigurator(models.Model):
super_calendar_values = {
'name': name,
'model_description': line.description,
'date_start': cur_rec[f_date_start],
'duration': duration,
'user_id': (
@ -156,11 +155,6 @@ class SuperCalendarConfiguratorLine(models.Model):
string='Model',
required=True,
)
description = fields.Char(
string='Description',
size=128,
required=True,
)
domain = fields.Char(
string='Domain',
size=512,
@ -217,11 +211,6 @@ class SuperCalendar(models.Model):
size=512,
required=True,
)
model_description = fields.Char(
string='Model Description',
size=128,
required=True,
)
date_start = fields.Datetime(
string='Start date',
required=True,

6
super_calendar/views/super_calendar_view.xml

@ -24,14 +24,12 @@
<field name="line_ids" nolabel="1" colspan="4">
<tree string="Lines">
<field name="name"/>
<field name="description"/>
<field name="domain"/>
</tree>
<form string="Line">
<group>
<group>
<field name="name"/>
<field name="description"/>
<field name="domain"/>
<field name="user_field_id"/>
</group>
@ -80,7 +78,6 @@
<field name="user_id"/>
<field name="configurator_id"/>
<field name="model_id"/>
<field name="model_description"/>
</tree>
</field>
</record>
@ -98,7 +95,6 @@
<field name="user_id" readonly="1"/>
<field name="configurator_id" readonly="1"/>
<field name="model_id" readonly="1"/>
<field name="model_description" readonly="1"/>
<field name="res_id" readonly="1"/>
</group>
</sheet>
@ -111,7 +107,6 @@
<field name="model">super.calendar</field>
<field name="arch" type="xml">
<calendar string="Calendar" color="model_id" date_start="date_start" date_delay="duration" quick_add="false">
<!--The color attribute should be: model_description but v8 calendars require many2one fields-->
<field name="name"/>
</calendar>
</field>
@ -125,7 +120,6 @@
<field name="name"/>
<field name="configurator_id" select="1"/>
<field name="model_id" select="1"/>
<field name="model_description" select="1"/>
<field name="user_id" widget="selection" >
<filter domain="[('user_id','=',uid)]" help="My Items" icon="terp-personal"/>
</field>

Loading…
Cancel
Save