Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在任务中创建一个表,除了任务中的描述之外没有其他地方可以这样做,但问题是我找不到可以帮助我的工具。我曾经尝试使用像“_”和“|”这样的简单行来创建一个表 但是每次我们想向那个表添加东西时,它都搞砸了;
那么有没有办法在一些任务描述中添加一个表格呢?
您可以创建一个简单的模块来覆盖任务的描述字段以使用 html。您需要一个继承project.task并重新定义描述字段的模型,如下所示:
project.task
_columns = { 'description': fields.html('Description') }
然后,您可以在任务描述中使用 HTML 表格。缺点是创建表格的人需要熟悉 HTML,因为您必须自己编写 HTML 代码,而不是使用表格工具,因为 OpenERP HTML 编辑器不提供该选项。