in project widget='etherpad' added
bzr revid: tta@openerp.com-20120420133743-2o5d0spxwfxin0yo
This commit is contained in:
@@ -262,7 +262,7 @@
|
||||
<button name="%(action_project_task_reevaluate)d" string="Reevaluate" type="action" colspan="1" target="new" states="open,pending" icon="gtk-edit"/>
|
||||
</group>
|
||||
|
||||
<field colspan="4" name="description" nolabel="1" attrs="{'readonly':[('state','=','done')]}"/>
|
||||
<field colspan="4" name="description" widget="etherpad" nolabel="1" attrs="{'readonly':[('state','=','done')]}"/>
|
||||
<field colspan="4" name="work_ids" nolabel="1" attrs="{'readonly':[('state','in',['done','draft'])]}">
|
||||
<tree string="Task Work" editable="top">
|
||||
<field name="name" />
|
||||
|
||||
@@ -63,10 +63,9 @@ openerp.web_etherpad = function (instance) {
|
||||
{
|
||||
var self = this;
|
||||
if(show_value.split('\n')[0] != '')
|
||||
$.get(show_value.split('\n')[0]+'/export/html', function(data) {
|
||||
console.log(data);
|
||||
self.$element.html(data);
|
||||
});
|
||||
$.get(show_value.split('\n')[0]+'/export/html')
|
||||
.success(function(data) { self.$element.html(data); })
|
||||
.error(function() { self.$element.text('Unable to load pad'); });
|
||||
else
|
||||
self.$element.text(show_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user