mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] project_task_line: Migrated to 18.0
H14631
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
'name': 'Project Task Lines',
|
'name': 'Project Task Lines',
|
||||||
'version': '17.0.1.0.0',
|
'version': '18.0.1.0.0',
|
||||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||||
'website': 'https://hibou.io/',
|
'website': 'https://hibou.io/',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
def migrate(cr, installed_version):
|
|
||||||
cr.execute(
|
|
||||||
"""
|
|
||||||
ALTER TABLE project_task_line
|
|
||||||
ADD COLUMN IF NOT EXISTS state VARCHAR
|
|
||||||
""",
|
|
||||||
)
|
|
||||||
cr.execute(
|
|
||||||
"""
|
|
||||||
UPDATE project_task_line
|
|
||||||
SET state = kanban_state
|
|
||||||
WHERE kanban_state IN ('done', 'blocked')
|
|
||||||
""",
|
|
||||||
)
|
|
||||||
@@ -10,13 +10,13 @@
|
|||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//page[@name='description_page']" position="after">
|
<xpath expr="//page[@name='description_page']" position="after">
|
||||||
<page name="task_lines" string="Todo List">
|
<page name="task_lines" string="Todo List">
|
||||||
<field name="line_ids" context="{'default_task_id': active_id}">
|
<field name="line_ids">
|
||||||
<tree editable="bottom">
|
<list editable="bottom">
|
||||||
<field name="sequence" widget="handle"/>
|
<field name="sequence" widget="handle"/>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="state" widget="selection"/>
|
<field name="state" widget="selection"/>
|
||||||
<field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False), ('active', '=', True)]"/>
|
<field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False), ('active', '=', True)]"/>
|
||||||
</tree>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|||||||
Reference in New Issue
Block a user