Skip to content
Permalink
Browse files

⬆️1️⃣1️⃣ autostaging_project_task *Port*

  • Loading branch information...
Ommo73 committed Feb 26, 2019
1 parent 9b7ed6e commit 33cf92a21cc9e7ff52da671fdce48e9b702d6891
Showing with 4 additions and 4 deletions.
  1. +3 −3 autostaging_project_task/models.py
  2. +1 −1 autostaging_project_task/views.xml
@@ -2,7 +2,7 @@
# Copyright 2015-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
from openerp import models, fields
from odoo import models, fields


class ProjectProjectAutostaging(models.Model):
@@ -23,8 +23,8 @@ class ProjectTaskAutostaging(models.Model):
_inherit = ['project.task', 'autostaging.card']
_field_folder_id = 'project_id'
_field_stage_id = 'stage_id'

autostaging_next_stage_related = fields.Many2one('project.task.type', string='Autostaging next stage', related='stage_id.autostaging_next_stage')
_state = 'kanban_state'
autostaging_card_next_stage = fields.Many2one('project.task.type', string='Autostaging next stage', related='stage_id.autostaging_next_stage')
_track = {
'stage_id': {
'ProjectTaskAutostaging.mt_autostaging':
@@ -73,7 +73,7 @@
<data>
<xpath expr="//page[2]" position="inside">
<group colspan="2" col="2" string="Autostaging" attrs="{'invisible':[('autostaging_enabled','=',False)]}">
<field name="autostaging_next_stage_related"/>
<field name="autostaging_card_next_stage"/>
<field name="autostaging_days_left"/>
<field name="autostaging_date"/>
<field name="autostaging_enabled"/>

0 comments on commit 33cf92a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.