[10.0] Add base_kanban_stage_state: Map stages to states#760
Conversation
bad9979 to
fdb5444
Compare
|
Build is failing due to #758 |
| @@ -0,0 +1,60 @@ | |||
| .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | |||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | |||
| :alt: License: AGPL-3 | |||
There was a problem hiding this comment.
Switch to LGPL-3.
Future reference, anything our LasLabs/SMD teams create should always be LGPL-3 unless we are depending on an AGPL-3 module.
| ======================= | ||
|
|
||
| This module extends the functionality of base_kanban_stage to allow you to | ||
| map stages from base_kanban_stage to states. |
| ('draft', 'New'), | ||
| ('open', 'In Progress'), | ||
| ('pending', 'Pending'), | ||
| ('done', 'Done'), |
There was a problem hiding this comment.
Add ('exception', 'Exception')
| @@ -0,0 +1,79 @@ | |||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |||
There was a problem hiding this comment.
Remove the svg icon, we only need to provide the SVG if we edited or created. It's so that future maintainers can quickly make edits if need be. We have the SVG of this icon in the template module though, so we can save diff space.
|
Changes made @lasley |
| "category": "Base", | ||
| "website": "https://odoo-community.org/", | ||
| "author": "SMDrugstore, Odoo Community Association (OCA)", | ||
| "license": "AGPL-3", |
| from odoo import fields, models | ||
|
|
||
|
|
||
| _STATE = [ |
There was a problem hiding this comment.
On second thought, this should actually be an api.model method in base.kanban.stage - _get_states(). Allows for easier inheritance
There was a problem hiding this comment.
OK, should that be a separate PR since it's in a different module?
There was a problem hiding this comment.
I don't understand the question. That model is a few lines below this comment.
|
@kellylougheed - please rebase onto current OCA/10.0 to fix build (#762) |
fb22f8b to
0a70970
Compare
0a70970 to
59c78ce
Compare
|
Changes made @lasley |
Syncing from upstream OCA/server-tools (14.0)
Adds a new module, base_kanban_stage_state, which maps the stages from base_kanban_stage to states.