-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[11.0][MIG] apps_product_creator: Migration to 11.0 #9
Conversation
- Renamed attribute names on product.product model; - Removed some unused attribute definition on product.product model; - Attribute image_module on product.template is now not stored; - Views definition made compliant with OCA guidelines; - Added values 5, 6, 6.1, 7 and 11 to product attribute Odoo Version; - On odoo.module form views, replaced "Create Products" with Smartbutton for showing related product variants; - Products created from modules are now set as not purchasable and with 0 cost and sell price; - Rearranged product.product view definition in "Module Informations" tab;
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.
Thanks!
small details
IMO quite straightforward but no test.
.idea/apps-store.iml
Outdated
@@ -0,0 +1,11 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
please remove this file or edit gitignore
<!--License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).--> | ||
<odoo noupdate="1"> | ||
|
||
<record id="attribute_odoo_version" model="product.attribute"> |
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.
Following #8 (comment) should be data not demo
<field name="product_template_id"/> | ||
</xpath> | ||
<xpath expr="//div[@name='button_box']" position="inside"> | ||
<button type="object" class="oe_stat_button" icon="fa-arrows-v" name="action_view_products" attrs="{'invisible': [('product_qty', '=', 0)]}"> |
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 you improve the format for readability?
<field name="inherit_id" ref="product.product_normal_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//notebook" position="inside"> | ||
<page string="Module Informations" id="module_informations" attrs="{'invisible':[('odoo_module_version_id','=',False)]}"> |
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.
and here?
@elicoidal Thanks for your review! I applied the improvements. |
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. needs test
Please take care of travis too |
@tafaRU @espo-tony @hurrinico @acsonefho can you help review here? |
Code LGTM (not tested) |
thanks for the review @acsonefho ! |
Code LGTM too. |
Not sure who could help in the testing, any idea? |
Add file |
@astirpe It turned green, thanks!! |
@tarteo just a note we have changed few things in V10 in https://github.com/OCA/apps-store/pull/10/files which might later have to be migrated also. |
@elicoidal is this ready for merge? \cc @jgrandguillaume |
Yep |
Depends on OCA/interface-github#9