-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
[MIG] mrp_analytic: Migration to 11.0 #186
Conversation
It seems you haven't used properly the migration method, as there are other modules included in this PR: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0 |
Using the method exposed, you don't need to remove the other addons, and it's the proper way to do it. Please try. |
I tried, it didn't merge, i get many errors.
|
You have to try to resolve conflicts. |
Must i to resend this pull request? |
You can use locally the same branch name and forced push your new commits without problems. |
[FIX] mrp_analytic: openerp => odoo
48f4692
to
c843600
Compare
Done. |
Great, you did it! Now I let space for the reviewers. |
Thank you. |
🆙 👍 |
I cannot understand what is the problem with the |
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.
======== Testing test_flake8 ========
mrp_analytic/models/analytic_account.py:4:1: F401 'odoo.api' imported but unused
mrp_analytic/models/analytic_account.py:12:80: E501 line too long (88 > 79 characters)
The final error, i cannot understand it. |
|
||
def _compute_num_productions(self): | ||
for analytic_account in self: | ||
analytic_account.num_productions = self.env['mrp.production'].search_count([ |
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.
Travis says this line is too long. Find a way to write it within 80 characters, either splitting it on multiple lines or (best way, IMHO) renaming analytic_account
into something shorter (an_acc
or record
should make the job)
mrp_analytic/README.rst
Outdated
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/129/8.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.
Please, enter 11.0 runbot, not 8.0
@espo-tony Ok, i did it, but i am still getting an error. |
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from odoo import models | ||
from odoo import fields |
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, put the 2 imports above on the same line
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.
@SalahAdDin Thanks. Travis is not failing anymore. Runbot failing is something different, don't know exactly what's wrong with it but I suspect it doesn't directly depends from your PR.
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, put the 2 imports above on the same line
Must i to do this?
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.
Yeah, it doesn't really change anything, but it's required to be compliant with OCA guidelines.
from odoo import fields, models
@espo-tony @aheficent Thank you very much for your reviews, in hour instance we need this module very much. Thank you. |
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.
@SalahAdDin Thanks to you!. Testing on runbot and working fine. 👍
a nice module also would be to pass the analytic accounts to the stock moves when the stock_analytic module is merged |
@aheficent I would take more time to add that feature, we can put it as a TODO task, and i can try it after, because right now i don't know how can i do that XD. |
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.
@SalahAdDin , Thank you for your work. This looks good to me 👍
@SalahAdDin Sure. It is just an idea, I will not work on that now but maybe in the following weeks. Stock_analytic is still not in 11.0 anyway |
Thank you very much, just merging left. |
Can you squash your commits into one before? |
@aheficent Last commits? |
The ones of this migration. From |
1c53b06
to
d42a54d
Compare
Done :D |
Waiting for CI :) |
4aff32d
to
1bf6cef
Compare
dc2be94
to
405eb94
Compare
@moylop260 Hi man, i'm sorry but i need your help. |
The other module is waiting for this module: OCA/manufacture#296 (comment) |
No description provided.