Skip to content
Permalink
Browse files

Merge pull request #738 from KolushovAlexandr/12.0-e926e0dc372d2b4f56…

…7a0baebe2c0dbe025071b0

12.0 e926e0d
  • Loading branch information...
yelizariev committed Apr 30, 2019
2 parents fd78333 + 1610902 commit a7ea34f6e1357531d8df2ba31881668f4bff9501
Showing with 1,084 additions and 278 deletions.
  1. +2 −0 README.md
  2. +47 −3 autostaging_base/README.rst
  3. +1 −0 autostaging_base/__init__.py
  4. +48 −10 autostaging_base/__manifest__.py
  5. +7 −5 autostaging_base/data.xml
  6. +7 −0 autostaging_base/doc/changelog.rst
  7. +8 −0 autostaging_base/doc/index.rst
  8. +11 −8 autostaging_base/models.py
  9. BIN autostaging_base/static/description/icon.png
  10. +21 −6 autostaging_project_task/README.rst
  11. +1 −0 autostaging_project_task/__init__.py
  12. +47 −21 autostaging_project_task/__manifest__.py
  13. +8 −4 autostaging_project_task/models.py
  14. BIN autostaging_project_task/static/description/icon.png
  15. +7 −2 autostaging_project_task/views.xml
  16. +2 −2 base_attendance/__manifest__.py
  17. +19 −0 base_attendance/doc/changelog.rst
  18. +11 −2 base_attendance/doc/index.rst
  19. +17 −2 base_attendance/models/res_attendance.py
  20. +38 −2 base_attendance/models/res_config.py
  21. +1 −1 base_attendance/models/res_partner.py
  22. +1 −1 base_attendance/security/ir.model.access.csv
  23. +3 −9 base_attendance/security/res_attendance_security.xml
  24. +1 −1 base_attendance/static/src/js/greeting_message.js
  25. +2 −2 base_attendance/static/src/js/kiosk_confirm.js
  26. +30 −2 base_attendance/static/src/js/kiosk_mode.js
  27. +1 −0 base_attendance/static/src/scss/hr_attendance.scss
  28. +3 −3 base_attendance/static/src/xml/attendance.xml
  29. +35 −8 base_attendance/views/res_attendance_view.xml
  30. +4 −2 base_attendance/views/res_config_view.xml
  31. +10 −5 ir_attachment_s3/i18n/es_CR.po
  32. +3 −3 ir_config_parameter_multi_company/i18n/es_CR.po
  33. +13 −8 product_category_taxes/i18n/es_CR.po
  34. +17 −16 product_tags/i18n/es_CR.po
  35. +25 −0 production_lot_details/i18n/es_CR.po
  36. +41 −0 project_gantt8/i18n/es_CR.po
  37. +6 −5 project_task_order_kanban_state/i18n/es_CR.po
  38. +17 −3 project_task_subtask/README.rst
  39. +2 −1 project_task_subtask/__init__.py
  40. +9 −1 project_task_subtask/__manifest__.py
  41. +5 −5 project_task_subtask/data/subscription_template.xml
  42. +5 −4 project_task_subtask/demo/project_task_subtask_demo.xml
  43. +5 −0 project_task_subtask/doc/changelog.rst
  44. +30 −36 project_task_subtask/i18n/es_CR.po
  45. +2 −1 project_task_subtask/models/__init__.py
  46. +82 −22 project_task_subtask/models/project_task_subtask.py
  47. +4 −5 project_task_subtask/security/project_security.xml
  48. +35 −0 project_task_subtask/static/src/css/kanban_styles.css
  49. +213 −0 project_task_subtask/static/src/js/one2many_renderer.js
  50. +10 −0 project_task_subtask/static/src/xml/templates.xml
  51. +11 −0 project_task_subtask/views/assets.xml
  52. +12 −3 project_task_subtask/views/project_task_subtask.xml
  53. +22 −19 reminder_base/i18n/es_CR.po
  54. +7 −6 reminder_crm_next_action/i18n/es_CR.po
  55. +6 −5 reminder_crm_next_action_time/i18n/es_CR.po
  56. +35 −0 reminder_hr_recruitment/i18n/es_CR.po
  57. +6 −5 reminder_task_deadline/i18n/es_CR.po
  58. +6 −5 res_partner_skype/i18n/es_CR.po
  59. +25 −0 sale_order_hide_tax/i18n/es_CR.po
  60. +0 −1 web_debranding/__manifest__.py
  61. +10 −10 web_debranding/i18n/es_CR.po
  62. +2 −1 web_debranding/models/ir_ui_view.py
  63. +0 −1 web_debranding/security/ir.model.access.csv
  64. +11 −10 web_preview/i18n/es_CR.po
  65. +1 −1 web_website/__manifest__.py
  66. +9 −0 web_website/doc/changelog.rst
  67. +4 −0 web_website/models/ir_property.py
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.com/it-projects-llc/misc-addons.svg?branch=12.0)](https://travis-ci.com/it-projects-llc/misc-addons)

Odoo addons
===========

@@ -1,5 +1,49 @@
Autostaging (technical core)
============================
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: https://www.gnu.org/licenses/lgpl
:alt: License: LGPL-3

==================
Autostaging base
==================

Tested on Odoo 8.0 a0797d3b35cc235048e7947dd7a3d38e18c3e350
Change stages of records automatically after a specified time

The records which are not modified within the idle timeout automatically moved to the next stage

Credits
=======

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

Sponsors
--------
* `IT-Projects LLC <https://it-projects.info>`__

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/11.0/autostaging_base/>`__.

Thank you for understanding!

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

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

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

HTML Description: https://apps.odoo.com/apps/modules/11.0/autostaging_base/

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

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

Notifications on updates: `via Atom <https://github.com/it-projects-llc/misc-addons/commits/11.0/autostaging_base.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/misc-addons/commits/11.0/autostaging_base.atom>`_

Tested on Odoo 11.0 a54b65bbb2f582136b0a358a4a576d3c38b0369e
@@ -1 +1,2 @@
# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).
from . import models
@@ -1,12 +1,50 @@
# 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 (technical core)",
'author': "IT-Projects LLC, Ildar Nasyrov",
'license': 'LGPL-3',
'website': "https://twitter.com/nasyrov_ildar",
'category': 'Autostaging',
'version': '1.0.0',
'data': [
'data.xml',
],
"installable": False
"name": """Autostaging (technical core)""",
"summary": """Change stages automatically after a specified time""",
"category": "Hidden",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=11.0",
"images": [],
"version": "11.0.1.0.0",
"application": False,

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

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

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

"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,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2015 Ildar Nasyrov <https://it-projects.info/>
Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).-->
<openerp>
<data>
<!-- Cron job for automatically move -->
<record forcecreate="True" id="ir_cron_autostaging"
<record id="ir_cron_autostaging" forcecreate="True"
model="ir.cron">
<field name="name">Autostaging</field>
<field eval="True" name="active" />
@@ -11,9 +13,9 @@
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall" />
<field eval="'autostaging.card'" name="model" />
<field eval="'_cron_move_cards'" name="function" />
<field eval="'()'" name="args" />
<field name="model_id" ref="model_autostaging_card"/>
<field name="state">code</field>
<field name="code">model._cron_move_cards()</field>
</record>
</data>
</openerp>
@@ -0,0 +1,7 @@
Changelog
=========

`1.0.0`
-------

- Init version
@@ -0,0 +1,8 @@
==================
Autostaging base
==================

Installation
============

* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way
@@ -1,9 +1,13 @@

from openerp import models, fields, api
# Copyright 2015 Ildar Nasyrov <https://it-projects.info/>
# Copyright 2016 x620 <https://github.com/x620>
# Copyright 2017-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 odoo import models, fields, api
import datetime
import time
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
from openerp.exceptions import ValidationError
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
from odoo.exceptions import ValidationError
from odoo.tools.translate import _


@@ -67,7 +71,6 @@ def _compute_enabled_one(self):
@api.multi
def _get_autostaging_date(self):
self.ensure_one()

delta = datetime.timedelta(days=getattr(self, self._field_stage_id).autostaging_idle_timeout)
return (datetime.datetime.strptime(
self.write_date, DEFAULT_SERVER_DATETIME_FORMAT) + delta).strftime(DEFAULT_SERVER_DATETIME_FORMAT)
@@ -112,7 +115,7 @@ def _compute_autostaging_days_left_one(self):

def _get_model_list(self):
res = []
for r in self.env['ir.model.fields'].search([('name', '=', 'next_stage_related')]):
for r in self.env['ir.model.fields'].search([('name', '=', 'autostaging_card_next_stage')]):
res.append(r.model_id.model)
return res

@@ -128,9 +131,9 @@ def _move_cards(self):
(self._field_folder_id, '=', False),
'&', '&',
((self._field_stage_id + '.autostaging_enabled'), '=', True),
((self._field_stage_id + '.next_stage'), '!=', False),
((self._field_stage_id + '.autostaging_next_stage'), '!=', False),
('autostaging_date', '<=', time.strftime('%Y-%m-%d'))]
cards = self.search(domain)
for card in cards:
card.with_context(autostaging=True).write(
{self._field_stage_id: getattr(card, self._field_stage_id).next_stage.id})
{self._field_stage_id: getattr(card, self._field_stage_id).autostaging_next_stage.id})
Binary file not shown.
@@ -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/11.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/11.0

HTML Description: https://apps.odoo.com/apps/modules/10.0/autostaging_project_task/
HTML Description: https://apps.odoo.com/apps/modules/11.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/11.0/autostaging_project_task.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/misc-addons/commits/11.0/autostaging_project_task.atom>`_

Tested on Odoo 11.0 3819120395fbeb22ccefeb200d498d1bd9ba7d34
@@ -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": "11.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": 39.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": False,

'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"/>
Oops, something went wrong.

0 comments on commit a7ea34f

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