[MIG] project_task_line: Migrated to 18.0

H14631
This commit is contained in:
Mayank Patel
2024-10-24 14:53:35 +00:00
parent 36bfe3e726
commit 535112b3c5
3 changed files with 4 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
{
'name': 'Project Task Lines',
'version': '17.0.1.0.0',
'version': '18.0.1.0.0',
'author': 'Hibou Corp. <hello@hibou.io>',
'website': 'https://hibou.io/',
'license': 'AGPL-3',

View File

@@ -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')
""",
)

View File

@@ -10,13 +10,13 @@
</xpath>
<xpath expr="//page[@name='description_page']" position="after">
<page name="task_lines" string="Todo List">
<field name="line_ids" context="{'default_task_id': active_id}">
<tree editable="bottom">
<field name="line_ids">
<list editable="bottom">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="state" widget="selection"/>
<field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False), ('active', '=', True)]"/>
</tree>
</list>
</field>
</page>
</xpath>