[IMP] crm,project_caldav: remove the dulpicate field
bzr revid: sbh@tinyerp.com-20101215094233-0y0ycserqvd6kuov
This commit is contained in:
parent
1415c477fc
commit
77f150fb03
|
@ -74,17 +74,6 @@ class crm_meeting(crm_case, osv.osv):
|
|||
('done', 'Done')], 'State', \
|
||||
size=16, readonly=True),
|
||||
}
|
||||
def onchange_edit_all(self, cr, uid, ids, rrule_type,edit_all, context=None):
|
||||
if not context:
|
||||
context = {}
|
||||
|
||||
data_obj = self.pool.get('ir.model.data')
|
||||
|
||||
value = {}
|
||||
if edit_all and rrule_type:
|
||||
for id in ids:
|
||||
base_calendar.base_calendar_id2real_id(id)
|
||||
return value
|
||||
_defaults = {
|
||||
'state': lambda *a: 'draft',
|
||||
'active': lambda *a: 1,
|
||||
|
|
|
@ -41,8 +41,6 @@ class project_task(osv.osv):
|
|||
'state': fields.selection([('draft', 'Draft'),('open', 'In Progress'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True,
|
||||
help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\
|
||||
\n If the task is over, the states is set to \'Done\'.'),
|
||||
'recurrency': fields.boolean('Recurrency', help="Recurrent Tasks"),
|
||||
'edit_all': fields.boolean('Edit All', help="Edit all Occurrences of recurrent Task."),
|
||||
}
|
||||
_defaults = {
|
||||
'state': 'draft',
|
||||
|
|
|
@ -66,7 +66,8 @@
|
|||
<field name="arch" type="xml">
|
||||
<field name="progress" position="after">
|
||||
<field name="recurrency"/>
|
||||
<field name="edit_all" attrs="{'invisible':[('recurrency','=', False)]}"/>
|
||||
<field name="edit_all" attrs="{'invisible':[('recurrency','=', False)]}"
|
||||
on_change="onchange_edit_all(rrule_type,edit_all)"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue