parent
d17e291031
commit
d708c4ae0c
|
@ -5,7 +5,10 @@ from osv import fields, osv
|
|||
class task(osv.osv):
|
||||
_name = "project.task"
|
||||
_inherit = ["project.task",'pad.common']
|
||||
_pad_url = 'description'
|
||||
_pad_url = 'description_pad'
|
||||
_columns = {
|
||||
'description_pad': fields.char('PAD Description', size=250)
|
||||
}
|
||||
_defaults = {
|
||||
_pad_url: lambda self, cr, uid, context: self.pad_generate_url(cr, uid, self._name, context),
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<field name="inherit_id" ref="project.view_task_form2"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="description" position="replace">
|
||||
<field name="description"
|
||||
<field name="description_pad"
|
||||
attrs="{'readonly':[('state','=','done')]}"
|
||||
widget="etherpad"
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue