Skip to content
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

Product v8 migration #37

Merged
merged 30 commits into from
Jun 4, 2014
Merged

Product v8 migration #37

merged 30 commits into from
Jun 4, 2014

Conversation

guewen
Copy link
Member

@guewen guewen commented Jun 3, 2014

Migrate products!

gurneyalex and others added 27 commits June 2, 2014 13:02
Now a fields.property so the prices are moved to properties.
Also, entries for the prices will be created in product_price_history.
…roduct-v8-migration

Conflicts:
	addons/product/migrations/8.0.1.1/post-migration.py
…uct have a standard price for the past, not only from now
@StefanRijnhart
Copy link
Member

Amazing work, thanks! 👍


def copy_fields(cr, pool):
product_tmpl= pool['product.template']
# copy the active field from product to template
Copy link
Member

Choose a reason for hiding this comment

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

Oh, flake8 warns about the missing space here in line 57

@guewen
Copy link
Member Author

guewen commented Jun 3, 2014

Yep, missed this one. Should be better now.

@@ -0,0 +1,18 @@
from openerp.openupgrade import openupgrade

Choose a reason for hiding this comment

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

This file should be called post-migration.py
Also, there are pep8 issues in this script.

@bwrsandman
Copy link

A few files have the wrong name. Have they been running?

@StefanRijnhart
Copy link
Member

Everything called [pre|post]-*.py will run. Non-blocking IMHO, we can clean up and rename according to some convention later on.

@bwrsandman
Copy link

In that case, the .travis.yml file needs to reflect this.
This PR has pep8 issues which weren't caught.

@StefanRijnhart
Copy link
Member

All is well on pep-bot after changing the file pattern 👍

StefanRijnhart pushed a commit that referenced this pull request Jun 4, 2014
@StefanRijnhart StefanRijnhart merged commit 47113c6 into OCA:8.0 Jun 4, 2014
from openerp.openupgrade import openupgrade
from openerp import pooler, SUPERUSER_ID

def move_fields(cr, pool):

Choose a reason for hiding this comment

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

This function is incomplete:

  • not closed bracket
  • unused variables

@bwrsandman bwrsandman mentioned this pull request Jun 4, 2014
@guewen
Copy link
Member Author

guewen commented Jun 5, 2014

@komsas the CI actually returned a green result because it was not considering a file in mrp, that's why I didn't caught the issues. This is the only file having issues, I will make a new PR (note that mrp still needs to be migrated).

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.

5 participants