-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[10.0][MIG] base_kanban_stage #681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0][MIG] base_kanban_stage #681
Conversation
* Add Kanban-compatible stage model web.kanban.stage * Add views, menu items, actions, and access controls needed to manage web.kanban.stage records * Add abstract model web.kanban.abstract that other models can inherit from to gain Kanban stage functionality * Add base Kanban view web_kanban_abstract_view_kanban, which can be customized as needed for use with models that inherit from web.kanban.abstract * Add model web.kanban.abstract.tester, which is needed for web.kanban.abstract unit tests
1f42aef to
422120f
Compare
* Add Kanban-compatible stage model base.kanban.stage * Add views, menu items, actions, and access controls needed to manage base.kanban.stage records * Add abstract model base.kanban.abstract that other models can inherit from to gain Kanban stage functionality * Add base Kanban view base_kanban_abstract_view_kanban, which can be customized as needed for use with models that inherit from base.kanban.abstract * Add model base.kanban.abstract.tester, which is needed for base.kanban.abstract unit tests
* Rename manifest * Change openerp references to odoo * Bump version
422120f to
2b2666a
Compare
* Update depends to `base` * Update priority selections to match Odoo guidelines * Update comment block to triple double quotes * Update `kanban_user_id` to `user_id` in code and view * Update README to incorporate use of mode in example view
|
Added missing commits from #679 - this is ready for review |
|
Hmm, your tests are failing... |
cfd588d to
e9d43ce
Compare
|
And now they aren't failing! Good for review. |
e9d43ce to
e0d6bb0
Compare
|
cc @LasLabs |
|
I wanted to test but it seems not easy to test because this module is abstract and therefore meaningless unless being used. I tried to test combining the server-tool branch from LasLabs from this Pull Request + the Is there any easier way to test? Anyway, I believe we should move this PR forward quickly to help @lasley merging the LasLabs:vertical-medical to OCA. The code looks good and includes with some tests 👍 |
|
@jcdrubay - Yeah I wish there was a better way to test this functionally, but yeah your way is pretty much the best. Our incubator v10 has it in the oca_dependencies, and the I identified in LasLabs/vertical-medical#119 (comment) that there seems to be a bug that if a record is not in the stage, the stage will not actually appear on the view after a refresh. This can be replicated by going to Medical => Dispensing => Add New Column => A Name => Add => Refresh the Page => New magic trick - Disappearing Stages cc @obulkin |
ed9c416 to
6f106d1
Compare
|
#681 (comment) is fixed in f7a3904 by using |
6f106d1 to
e9706ea
Compare
* Add group_expand attr to abstract kanban model, allowing for empty columns * Fix `_read_group_stage_ids` for new API
e9706ea to
f7a3904
Compare
6bfe00a to
393de7c
Compare
393de7c to
aebfc55
Compare
| model_cls (openerp.models.BaseModel): Class of model to initialize | ||
| Returns: | ||
| model_cls: Instance | ||
| """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some issues with this docblock:
- As currently written, the method does actually create a table for the model. That happens as part of
_auto_init() - The var name in the
Returnssection is wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came from template. Added note to PR https://github.com/OCA/maintainer-tools/pull/242/files#r98305473
jcdrubay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested in runbot of Laslabs for prescription and it works well.
I had reviewed the code already.
👍
|
|
||
| _name = 'base.kanban.abstract' | ||
| _order = 'kanban_priority desc, kanban_sequence' | ||
| _group_by_full = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed
|
Looks like it's good to merge... doing it. |
Syncing from upstream OCA/server-tools (8.0)
This is a forward port of #679