odoo17 项目管理预置示例模板

odoo17创建项目时,有一个比较实用的功能,就是根据不同项目特点预置示例模板,如下图:
在这里插入图片描述
要实现预置示例模板功能,可能过通过下面两个步骤实现
1、扩展js文件:

在这里插入图片描述

{
name: _t('ERP项目'),
columns: [_t('Backlog'), _t('Specifications'), _t('Development'), _t('Tests')],
foldedColumns: [_t('Delivered')],
get description() {
    return renderToMarkup("project.example.erp");
},
bullets: [greenBullet, orangeBullet, star],

}

2、扩展对应的xml文件
在这里插入图片描述

<t t-name="project.example.erp">
  Prioritize your tasks by marking important ones using the <a style="color: gold;" class="fa fa-star"></a> button.
  <br/><br/>
  Use the <span class="o_status d-inline-block o_status_green"></span> state to inform your colleagues that a task is approved for the next stage.
  <br/>
  Use the <span class="o_status d-inline-block bg-warning"></span> state to indicate a request for changes or a need for discussion on a task.
  <br/><br/>
  Use the <span class="fa fa-check-circle text-success d-inline-block"></span> state to mark the task as complete.
  <br/>
  Use the <span class="fa fa-times-circle text-danger d-inline-block"></span> state to mark the task as canceled.
  <br/><br/>
  Look for the <span class="fa fa-hourglass-o d-inline-block"></span> icon to see tasks waiting on other ones. Once a task is marked as complete or canceled, all of its dependencies will be unblocked.
  <br/><br/>
  Use the <a class="fa fa-clock-o"></a> icon to organize your daily activities.
</t>

3、最终效果:
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值