Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[12.0][MIG] product_pricelist_revision: Migration to 12.0 #524

Merged
merged 3 commits into from
Nov 7, 2019

Conversation

ernestotejeda
Copy link
Member

@ernestotejeda ernestotejeda commented Nov 5, 2019

Cc @Tecnativa TT20175

@ernestotejeda ernestotejeda force-pushed the 12.0-mig-product_pricelist_revision branch 3 times, most recently from fadce36 to 825bb37 Compare November 5, 2019 17:02
@pedrobaeza pedrobaeza added this to the 12.0 milestone Nov 6, 2019
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 6, 2019
24 tasks
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

My feeling here is that there are 2 features in this module: the revision one, which is OK with some comments, and a hidden one that is listing pricelist items, that must go into a separate module. @carlosdauden why is this in the module?

product_pricelist_revision/README.rst Outdated Show resolved Hide resolved
product_pricelist_revision/README.rst Show resolved Hide resolved
product_pricelist_revision/README.rst Outdated Show resolved Hide resolved
product_pricelist_revision/README.rst Outdated Show resolved Hide resolved
product_pricelist_revision/README.rst Outdated Show resolved Hide resolved
product_pricelist_revision/__manifest__.py Outdated Show resolved Hide resolved
product_pricelist_revision/models/pricelist.py Outdated Show resolved Hide resolved
@ernestotejeda
Copy link
Member Author

This module adds a Tree view of 'Pricelist items' so that users can select one or more 'Pricelist items' and then create copies of them with a variation in their 'fixed price', so maybe there are not 2 features in this module. The problem here is that the search view of 'Pricelist items' defined here includes the 'name' field which is a computed field. As it is a computed field we have specify a method in the search argument in the field definition

name = fields.Char(search='_search_name')

@pedrobaeza
Copy link
Member

OK, I see. Then that should be explained better in the README. Please add also coverage for the uncovered parts like that search.

@ernestotejeda ernestotejeda force-pushed the 12.0-mig-product_pricelist_revision branch 2 times, most recently from 58b3a5d to f9478b0 Compare November 6, 2019 22:20
@pedrobaeza pedrobaeza force-pushed the 12.0-mig-product_pricelist_revision branch from f9478b0 to e581cc7 Compare November 6, 2019 23:26
@pedrobaeza
Copy link
Member

/ocabot merge

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 12.0-ocabot-merge-pr-524-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Nov 6, 2019
Signed-off-by pedrobaeza
@OCA-git-bot OCA-git-bot merged commit e581cc7 into OCA:12.0 Nov 7, 2019
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 78bae31. Thanks a lot for contributing to OCA. ❤️

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants