Skip to content

Conversation

@lasley
Copy link
Contributor

@lasley lasley commented Dec 30, 2016

This is a forward port of #679

  • Rename manifest
  • Change openerp references to odoo
  • Bump version

@lasley lasley added this to the 10.0 milestone Dec 30, 2016
* 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
@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from 1f42aef to 422120f Compare December 30, 2016 00:10
Ted Salmon and others added 2 commits December 29, 2016 16:15
* 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
* 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
@lasley
Copy link
Contributor Author

lasley commented Jan 7, 2017

Added missing commits from #679 - this is ready for review

@dreispt
Copy link
Member

dreispt commented Jan 12, 2017

Hmm, your tests are failing...

@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch 15 times, most recently from cfd588d to e9d43ce Compare January 15, 2017 03:35
@lasley
Copy link
Contributor Author

lasley commented Jan 15, 2017

And now they aren't failing! Good for review.

@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from e9d43ce to e0d6bb0 Compare January 15, 2017 03:41
@lasley
Copy link
Contributor Author

lasley commented Jan 15, 2017

cc @LasLabs

@jcdrubay
Copy link
Contributor

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 LasLabs/vertical-medical:release/10.0 which contains an example for medical_prescription but I am getting an error...probably due to my environment :/

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 👍

@lasley
Copy link
Contributor Author

lasley commented Jan 27, 2017

@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 medical_prescription_stage is already merged using it, so it can be tested directly on v10 branch of our Runbot if you'd like - https://runbot.laslabs.io/runbot/repo/git-github-com-laslabs-vertical-medical-git-41

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

@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from ed9c416 to 6f106d1 Compare January 27, 2017 02:47
@lasley
Copy link
Contributor Author

lasley commented Jan 27, 2017

#681 (comment) is fixed in f7a3904 by using group_expand & updating to new API

@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from 6f106d1 to e9706ea Compare January 27, 2017 03:07
* Add group_expand attr to abstract kanban model, allowing for empty columns
* Fix `_read_group_stage_ids` for new API
@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from e9706ea to f7a3904 Compare January 27, 2017 03:08
@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from 6bfe00a to 393de7c Compare January 27, 2017 19:25
@lasley lasley force-pushed the feature/10.0/LABS-134-create-medical_base_stage-object branch from 393de7c to aebfc55 Compare January 27, 2017 19:56
model_cls (openerp.models.BaseModel): Class of model to initialize
Returns:
model_cls: Instance
"""
Copy link
Contributor

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 Returns section is wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@jcdrubay jcdrubay left a 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 = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

@dreispt
Copy link
Member

dreispt commented Feb 5, 2017

Looks like it's good to merge... doing it.

@dreispt dreispt merged commit 1329206 into OCA:10.0 Feb 5, 2017
@lasley lasley deleted the feature/10.0/LABS-134-create-medical_base_stage-object branch February 6, 2017 16:06
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (8.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants