-
-
Notifications
You must be signed in to change notification settings - Fork 720
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 Brand #390
Conversation
203a5e7
to
6402016
Compare
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.
LGTM (about code)
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.
code review and tested on runbot
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.
Small Change
Please check Travis and runbot status |
This also misses commits from #365 |
@ThomasBinsfeld can you please review #364 and incorporate it here if everything is correct? |
#364 has been merged |
… Thanks to NetAndCo who starts the module
* add smart button, move menu to a more visible position. * show brand in product.template kanban and tree views. * show brand in product variant kanban and tree views. * add product_brand kanban view. * update module's README and manifest file. * Search and group by brand for both product.product and product.template. * Convert model to new APIs. * Refactor products_count computation using product_ids one2many field. * Add public read access to product.brand (fixes 403 error on webshop for public user). * Make brand name required.
Migration to 10.0
Old form view was out of order: form blocks misaligned, because it was not using Odoo 10 views styling and layout.
Lookup fails when the ID is formatted. The unformatted version of the data is located under `raw_value`.
Currently translated at 100,0% (21 of 21 strings) Translation: product-attribute-11.0/product-attribute-11.0-product_brand Translate-URL: https://translation.odoo-community.org/projects/product-attribute-11-0/product-attribute-11-0-product_brand/de/
… with other odoo apps. (OCA#364) * Make the logo always the same width (64px). * Remove the description (200 first caracters). Not relevant for a configuration model. * Move the brand name and product count beside the image. This is the way it is displayed in partners and products kanban views.
6402016
to
5b2e212
Compare
@pedrobaeza All 11.0 commits are here now |
2 little pylint things:
|
@SimoRubi @nikul-serpentcs can you review again? |
select_str += """ | ||
, sub.product_brand_id as product_brand_id | ||
""" | ||
return select_str |
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.
can be summarized by
return super()._select() + ", sub.product_brand_id as product_brand_id"
Just typo, not blocking
The same below
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.
@bealdav Thanks for your review. I don't think we should refactor code in migration PR if it's not required. Feel free to submit a refactoring in a PR after the migration merge.
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.
OK. No problem
@ThomasBinsfeld please check runbot and Travis, everything is red |
1a51c33
to
a97bd05
Compare
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 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.
Minor Change
def setUp(self): | ||
super().setUp() | ||
self.product = self.env.ref('product.product_product_4') | ||
self.supplier = self.ref('base.res_partner_2') |
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.
@ThomasBinsfeld Here self.env.ref
not self.ref
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.
@nikul-serpentcs self.ref
is a good way to get the id of the record and self.env.ref
a good way to get the record itself. I won't change it since we only need the ID in this unit test. Please feel free to submit a refactoring PR after the migration merge.
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.
@ThomasBinsfeld In case, In future use supplier record then change the self.env.ref
.
meanwhile, We change this(self.env.ref) and using self.supplier.id
.
It's not a blocking issue but It's Good for us.
rather than, Code review LGTM.
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.
@ThomasBinsfeld If you're review is non-blocking, you can update your review and add an approval. Thanks for the review.
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.
Code Revie LGTM 👍
Can pick #114, or add as an option? |
@youring I don't plan to forward port improvements from previous versions in this migration. But feel free to open a pull request targeting my branch and I will review/merge it. |
Could this PR merged? |
Please squash migration commits together. |
a97bd05
to
bb05cb7
Compare
@pedrobaeza Done |
Migration of product_attribute from 11.0 to 12.0.
#389