Skip to content
Permalink
Browse files

⬆️1️⃣2️⃣ autostaging_project_task Port

  • Loading branch information...
Ommo73 committed Apr 1, 2019
1 parent 7b49955 commit 56255dc415cca7530a5746fca2ee2036b6aac1af
@@ -1,5 +1,10 @@
Autostaging project task
=========================
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: https://www.gnu.org/licenses/lgpl
:alt: License: LGPL-3

==========================
Autostaging project task
==========================

Change stages of tasks automatically after a specified time

@@ -8,7 +13,7 @@ Credits

Contributors
------------
* Ildar Nasyrov <iledarn@it-projects.info>
* 'Ildar Nasyrov <iledarn@it-projects.info>'__

Sponsors
--------
@@ -18,15 +23,25 @@ Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To get a guaranteed support
you are kindly requested to purchase the module
at `odoo apps store <https://apps.odoo.com/apps/modules/12.0/autostaging_project_task/>`__.

Thank you for understanding!

`IT-Projects Team <https://www.it-projects.info/team>`__

Further information
===================

Demo: http://runbot.it-projects.info/demo/misc-addons/10.0
Demo: http://runbot.it-projects.info/demo/misc-addons/12.0

HTML Description: https://apps.odoo.com/apps/modules/10.0/autostaging_project_task/
HTML Description: https://apps.odoo.com/apps/modules/12.0/autostaging_project_task/

Usage instructions: `<doc/index.rst>`_

Changelog: `<doc/changelog.rst>`_

Tested on Odoo 10.0 87184d0894fdb7444cc0d4b6e7028f1f97a7c4f7
Notifications on updates: `via Atom <https://github.com/it-projects-llc/misc-addons/commits/12.0/autostaging_project_task.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/misc-addons/commits/12.0/autostaging_project_task.atom>`_

Tested on Odoo 12.0 3036dd6f1b7cb7c0a03a66167f001b48533f0c66
@@ -1 +1,2 @@
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
from . import models
@@ -1,26 +1,52 @@
# Copyright 2015-2017 Ildar Nasyrov <https://it-projects.info/>
# Copyright 2018 Ruslan Ronzhin <https://it-projects.info/team/rusllan/>
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
{
'name': "Autostaging project task",
'summary': "Change stages of tasks automatically after a specified time",
'author': "IT-Projects LLC, Ildar Nasyrov",
'support': "apps@it-projects.info",
'license': 'LGPL-3',
'website': "https://it-projects.info",
'images': ['images/a.png'],
'category': 'Project',
'version': '1.0.1',
'application': False,
'price': 39.00,
'currency': 'EUR',
'depends': ['project', 'autostaging_base'],
'external_dependencies': {"python": [], "bin": []},
'data': [
'views.xml',
"name": """Autostaging project task""",
"summary": """Change stages of tasks automatically after a specified time""",
"category": "Project",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=11.0",
"images": ['images/a.png'],
"version": "12.0.1.0.1",
"application": False,

"author": "IT-Projects LLC, Ildar Nasyrov",
"support": "apps@it-projects.info",
"website": "https://it-projects.info/",
"license": "LGPL-3",
"price": 30.00,
"currency": "EUR",

"depends": [
"project",
"autostaging_base"
],
"external_dependencies": {"python": [], "bin": []},
"data": [
"views.xml",
],
"demo": [
],
"qweb": [
],

"post_load": None,
"pre_init_hook": None,
"post_init_hook": None,
"uninstall_hook": None,

'post_load': None,
'pre_init_hook': None,
'post_init_hook': None,
"auto_install": False,
"installable": True,

'auto_install': False,
'installable': False,
# "demo_title": "{MODULE_NAME}",
# "demo_addons": [
# ],
# "demo_addons_hidden": [
# ],
# "demo_url": "DEMO-URL",
# "demo_summary": "{SHORT_DESCRIPTION_OF_THE_MODULE}",
# "demo_images": [
# "images/MAIN_IMAGE",
# ]
}
@@ -1,5 +1,9 @@

from openerp import models, fields
# Copyright 2015-2017 Ildar Nasyrov <https://it-projects.info/>
# Copyright 2015-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2016 manawi <https://github.com/manawi>
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
from odoo import models, fields


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

autostaging_next_stage = 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':
Binary file not shown.
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2015 Ildar Nasyrov <https://it-projects.info/>
Copyright 2015-2016 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). -->
<openerp>
<data>
<record id="mt_autostaging" model="mail.message.subtype">
@@ -12,7 +16,7 @@
<field name="name">Autostaging</field>
<field name="res_model">project.project</field>
<field name="default" eval="True"/>
<field name="parent_id" eval="ref('mt_autostaging')"/>
<field name="parent_id" ref="mt_autostaging"/>
<field name="relation_field">project_id</field>
</record>

@@ -23,6 +27,7 @@
<field name="arch" type="xml">
<data>
<xpath expr="//group[@name='misc']" position="inside">
<label for="autostaging_enabled" string="Autostaging enabled"/>
<field name="autostaging_enabled"/>
</xpath>
</data>
@@ -68,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" />
<field name="autostaging_card_next_stage"/>
<field name="autostaging_days_left"/>
<field name="autostaging_date"/>
<field name="autostaging_enabled"/>

0 comments on commit 56255dc

Please sign in to comment.
You can’t perform that action at this time.