Browse Source

[FIX] base_kanban_stage: fix wrong field referenced in base_kanban_abstract_view_kanban; user_id instead of kanban_user_id

pull/949/head
Alex Comba 7 years ago
parent
commit
5721fa5653
  1. 1
      base_kanban_stage/README.rst
  2. 2
      base_kanban_stage/__manifest__.py
  3. 7
      base_kanban_stage/models/base_kanban_abstract.py
  4. 2
      base_kanban_stage/views/base_kanban_abstract.xml

1
base_kanban_stage/README.rst

@ -93,6 +93,7 @@ Contributors
* Dave Lasley <dave@laslabs.com> * Dave Lasley <dave@laslabs.com>
* Oleg Bulkin <obulkin@laslabs.com> * Oleg Bulkin <obulkin@laslabs.com>
* Daniel Reis <dreis.pt@hotmail.com> * Daniel Reis <dreis.pt@hotmail.com>
* Alex Comba <alex.comba@agilebg.com>
Maintainer Maintainer
---------- ----------

2
base_kanban_stage/__manifest__.py

@ -5,7 +5,7 @@
{ {
'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.0.0',
'version': '10.0.1.0.1',
'author': "LasLabs, Odoo Community Association (OCA)", 'author': "LasLabs, Odoo Community Association (OCA)",
'category': 'base', 'category': 'base',
'depends': [ 'depends': [

7
base_kanban_stage/models/base_kanban_abstract.py

@ -8,8 +8,11 @@ from odoo import api, fields, models
class BaseKanbanAbstract(models.AbstractModel): class BaseKanbanAbstract(models.AbstractModel):
""" Inherit from this class to add support for Kanban stages to your model. """ Inherit from this class to add support for Kanban stages to your model.
All public properties are preceded with kanban_ in order to isolate from All public properties are preceded with kanban_ in order to isolate from
child models, with the exception of stage_id, which is a required field in
the Kanban widget and must be defined as such. """
child models, with the exception of: stage_id, which is a required field in
the Kanban widget and must be defined as such, and user_id, which is a
special field that has special treatment in some places (such as the
mail module).
"""
_name = 'base.kanban.abstract' _name = 'base.kanban.abstract'
_order = 'kanban_priority desc, kanban_sequence' _order = 'kanban_priority desc, kanban_sequence'

2
base_kanban_stage/views/base_kanban_abstract.xml

@ -50,7 +50,7 @@
<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.kanban_user_id">
<div class="oe_kanban_bottom_right" t-if="record.user_id">
<img t-att-src="kanban_image('res.users', 'image_small', record.kanban_user_id.raw_value)" <img t-att-src="kanban_image('res.users', 'image_small', record.kanban_user_id.raw_value)"
class="oe_kanban_avatar_smallbox pull-right"/> class="oe_kanban_avatar_smallbox pull-right"/>
</div> </div>

Loading…
Cancel
Save