Browse Source

[MIG] base_kanban_stage: Migration to 12.0

12.0
ahenriquez 5 years ago
committed by mreficent
parent
commit
50e3d1f7d8
  1. 17
      base_kanban_stage/README.rst
  2. 1
      base_kanban_stage/__init__.py
  3. 3
      base_kanban_stage/__manifest__.py
  4. 1
      base_kanban_stage/models/__init__.py
  5. 2
      base_kanban_stage/models/base_kanban_abstract.py
  6. 1
      base_kanban_stage/models/base_kanban_stage.py
  7. 1
      base_kanban_stage/tests/__init__.py
  8. 3
      base_kanban_stage/tests/test_base_kanban_abstract.py
  9. 1
      base_kanban_stage/tests/test_base_kanban_stage.py
  10. 12
      base_kanban_stage/views/base_kanban_abstract.xml

17
base_kanban_stage/README.rst

@ -1,5 +1,5 @@
.. image:: https://img.shields.io/badge/licence-lgpl--3-blue.svg
:target: http://www.gnu.org/licenses/LGPL-3.0-standalone.html
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: https://www.gnu.org/licenses/lgpl
:alt: License: LGPL-3 :alt: License: LGPL-3
====================== ======================
@ -62,7 +62,7 @@ Usage
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/162/10.0
:target: https://runbot.odoo-community.org/runbot/162/12.0
Known Issues / Roadmap Known Issues / Roadmap
====================== ======================
@ -73,10 +73,10 @@ Known Issues / Roadmap
Bug Tracker Bug Tracker
=========== ===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smash it by providing detailed and welcomed
feedback.
Bugs are tracked on `GitHub Issue
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.
Credits Credits
======= =======
@ -84,8 +84,7 @@ Credits
Images Images
------ ------
* Odoo Community Association:
`Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Contributors Contributors
------------ ------------

1
base_kanban_stage/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc. # Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

3
base_kanban_stage/__manifest__.py

@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc. # Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{ {
'name': 'Kanban - Stage Support', 'name': 'Kanban - Stage Support',
'summary': 'Provides stage model and abstract logic for inheritance', 'summary': 'Provides stage model and abstract logic for inheritance',
'version': '10.0.1.2.1',
'version': '12.0.1.2.1',
'author': 'LasLabs, Odoo Community Association (OCA)', 'author': 'LasLabs, Odoo Community Association (OCA)',
'category': 'base', 'category': 'base',
'depends': [ 'depends': [

1
base_kanban_stage/models/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc. # Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

2
base_kanban_stage/models/base_kanban_abstract.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc. # Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@ -15,6 +14,7 @@ class BaseKanbanAbstract(models.AbstractModel):
""" """
_name = 'base.kanban.abstract' _name = 'base.kanban.abstract'
_description = 'Kanban Abstract'
_order = 'kanban_priority desc, kanban_sequence' _order = 'kanban_priority desc, kanban_sequence'
_group_by_full = { _group_by_full = {
'stage_id': lambda s, *a, **k: s._read_group_stage_ids(*a, **k), 'stage_id': lambda s, *a, **k: s._read_group_stage_ids(*a, **k),

1
base_kanban_stage/models/base_kanban_stage.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc. # Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

1
base_kanban_stage/tests/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc. # Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

3
base_kanban_stage/tests/test_base_kanban_abstract.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 LasLabs Inc. # Copyright 2016-2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@ -28,7 +27,7 @@ class TestBaseKanbanAbstract(TransactionCase):
def setUp(self): def setUp(self):
super(TestBaseKanbanAbstract, self).setUp() super(TestBaseKanbanAbstract, self).setUp()
self.registry.enter_test_mode()
self.registry.enter_test_mode(self.cr)
self.old_cursor = self.cr self.old_cursor = self.cr
self.cr = self.registry.cursor() self.cr = self.registry.cursor()
self.env = api.Environment(self.cr, self.uid, {}) self.env = api.Environment(self.cr, self.uid, {})

1
base_kanban_stage/tests/test_base_kanban_stage.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc. # Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

12
base_kanban_stage/views/base_kanban_abstract.xml

@ -24,7 +24,8 @@
<t t-name="kanban-box"> <t t-name="kanban-box">
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.kanban_color.raw_value)} o_kanban_record oe_kanban_global_click"> <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.kanban_color.raw_value)} o_kanban_record oe_kanban_global_click">
<div class="o_dropdown_kanban dropdown" name="card_dropdown_menu"> <div class="o_dropdown_kanban dropdown" name="card_dropdown_menu">
<a class="dropdown-toggle btn" data-toggle="dropdown" href="#">
<a role="button" class="dropdown-toggle o-no-caret btn" data-toggle="dropdown"
href="#" aria-label="Dropdown menu" title="Dropdown menu">
<span class="fa fa-bars fa-lg"/> <span class="fa fa-bars fa-lg"/>
</a> </a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
@ -50,10 +51,11 @@
<div class="oe_kanban_bottom_left"> <div class="oe_kanban_bottom_left">
<field name="kanban_priority" widget="priority"/> <field name="kanban_priority" widget="priority"/>
</div> </div>
<div class="oe_kanban_bottom_right" t-if="record.user_id">
<img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)"
class="oe_kanban_avatar_smallbox pull-right"/>
</div>
<div class="oe_kanban_bottom_right">
<img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)"
t-att-title="record.user_id.value" t-att-alt="record.user_id.value"
width="24" height="24" class="oe_kanban_avatar float-right"/>
</div>
</div> </div>
</div> </div>
</t> </t>

Loading…
Cancel
Save