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

[WIP] [MIG] mrp_project: Migration to 11.0 #296

Closed
wants to merge 38 commits into from

Conversation

SalahAdDin
Copy link
Contributor

@SalahAdDin SalahAdDin commented Aug 16, 2018

TODO:

  • Track Sale Order's source in order to take the source project if it exists.
  • Review automatic project linking with sale order resource: mrp_sale_info provide both sale_id and partner_id, so, it must to be a dependency.

@oca-clabot
Copy link

Hey @SalahAdDin, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@SalahAdDin SalahAdDin mentioned this pull request Aug 16, 2018
25 tasks
@pedrobaeza pedrobaeza added this to the 11.0 milestone Aug 16, 2018
@SalahAdDin
Copy link
Contributor Author

I have a question: should we move this module to the project module? I say this because sale_project_order is also in project module. Or, should we move the sale_project_order to the sales repository?

@oca-clabot
Copy link

Hey @SalahAdDin,
We acknowledge that the following users have signed our Contributor License Agreement:

Appreciation of efforts,
OCA CLAbot

@SalahAdDin
Copy link
Contributor Author

👍

@SalahAdDin
Copy link
Contributor Author

@moylop260 Thank you man.

@SalahAdDin SalahAdDin force-pushed the 11.0-mig-mrp_project branch 2 times, most recently from 7a81039 to 313e823 Compare October 11, 2018 10:33
@SalahAdDin
Copy link
Contributor Author

Guys, we need to merge the mrp_analytic pull request before to test this pull request:

odoo.exceptions.UserError: ("You try to install module 'mrp_project' that depends on module 'mrp_analytic'.\nBut the latter module is not available in your system.", '')
Message not found: 'Modules loaded.'
----------

@moylop260
Copy link

@pedrobaeza
Remember if the translation commits should be squashed to one

@pedrobaeza
Copy link
Member

Yeah, with "OCA Transbot", that's needed for reducing dramatically the number of commits and the repo size, as most changes overwrites each other. Now with Weblate, commits are made by author, so it's better to preserve authorship although we lose some of space efficiency, but it's not the case in this migration.

@SalahAdDin
Copy link
Contributor Author

I squashed all commits that i can, before that commit this branch can break the order, i tried locally many times.

@SalahAdDin
Copy link
Contributor Author

mrp_sale_info exists:

Failed to load registry
Traceback (most recent call last):
  File "/home/odoo/OCB-11.0/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/odoo/OCB-11.0/odoo/modules/loading.py", line 345, in load_modules
    modules.button_install()
  File "<decorator-gen-41>", line 2, in button_install
  File "/home/odoo/OCB-11.0/odoo/addons/base/module/module.py", line 71, in check_and_log
    return method(self, *args, **kwargs)
  File "/home/odoo/OCB-11.0/odoo/addons/base/module/module.py", line 398, in button_install
    modules._state_update('to install', ['uninstalled'])
  File "/home/odoo/OCB-11.0/odoo/addons/base/module/module.py", line 363, in _state_update
    raise UserError(_("You try to install module '%s' that depends on module '%s'.\nBut the latter module is not available in your system.") % (module.name, dep.name,))
odoo.exceptions.UserError: ("You try to install module 'mrp_project' that depends on module 'mrp_sale_info'.\nBut the latter module is not available in your system.", '')
Failed to initialize database `openerp_test`.
Traceback (most recent call last):
  File "/home/odoo/OCB-11.0/odoo/service/server.py", line 925, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/home/odoo/OCB-11.0/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/odoo/OCB-11.0/odoo/modules/loading.py", line 345, in load_modules
    modules.button_install()
  File "<decorator-gen-41>", line 2, in button_install
  File "/home/odoo/OCB-11.0/odoo/addons/base/module/module.py", line 71, in check_and_log
    return method(self, *args, **kwargs)
  File "/home/odoo/OCB-11.0/odoo/addons/base/module/module.py", line 398, in button_install
    modules._state_update('to install', ['uninstalled'])
  File "/home/odoo/OCB-11.0/odoo/addons/base/module/module.py", line 363, in _state_update
    raise UserError(_("You try to install module '%s' that depends on module '%s'.\nBut the latter module is not available in your system.") % (module.name, dep.name,))
odoo.exceptions.UserError: ("You try to install module 'mrp_project' that depends on module 'mrp_sale_info'.\nBut the latter module is not available in your system.", '')
Message not found: 'Modules loaded.'

@SalahAdDin
Copy link
Contributor Author

@moylop260 can you review it please?

@moylop260
Copy link

Could you check the ERROR: null value in column "product_uom_id" violates not-null constraint, please?

@SalahAdDin
Copy link
Contributor Author

SalahAdDin commented Oct 20, 2018

@moylop260, i didn't touch any product variable, it is not normal.
Yes, we are not touching that value in this module; so, i don't know what is happening.

@moylop260
Copy link

moylop260 commented Oct 22, 2018 via email

@SalahAdDin
Copy link
Contributor Author

@moylop260 runbot raises the same bug again:

    raise UserError(_("You try to install module '%s' that depends on module '%s'.\nBut the latter module is not available in your system.") % (module.name, dep.name,))
odoo.exceptions.UserError: ("You try to install module 'mrp_project' that depends on module 'mrp_sale_info'.\nBut the latter module is not available in your system.", '')
Message not found: 'Modules loaded.'

@moylop260
Copy link

moylop260 commented Nov 23, 2018

Hi @SalahAdDin Sorry for delay Where is the module `mrp_sale_info`?

@moylop260
Copy link

I got it
The problem is that your branch doesn't have the following module:

You can see a 404 error opening the following URL:

You need a rebase in order to update your branch.

@SalahAdDin
Copy link
Contributor Author

SalahAdDin commented Nov 23, 2018

@moylop260 so, I must rebase my branch with the 11.0 branch, isn't it?

@moylop260
Copy link

@moylop260 so, I must rebase my branch with the 11.0 branch, isn't it?

Yes

pedrobaeza and others added 2 commits December 7, 2018 09:15
================
MRP Project Link
================

This module links projects and tasks to *manufacturing orders* (MO) and
*work orders* (WO).

Usage
=====

In a manufacturing order (MO), you can select a project to be attached to it.
If none is selected, a project is automatically created when the MO is
confirmed.

When the MO starts, a task is created and assigned to the order.
@oca-clabot
Copy link

Hey @SalahAdDin, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@amjaden
Copy link

amjaden commented Dec 7, 2018

in progress

@SalahAdDin
Copy link
Contributor Author

@mhdamjadenaya Can you help to me with tests? I have no experience in this things.

Copy link

@amjaden amjaden left a comment

Choose a reason for hiding this comment

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

Code Review , test
it works fine.
Thank you for your contribution

@oca-clabot
Copy link

Hey @SalahAdDin, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

Copy link

@marianhtuyet marianhtuyet left a comment

Choose a reason for hiding this comment

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

Please check my comment and fix your code :) thank you!

# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

import time
import openerp.tests.common as common

Choose a reason for hiding this comment

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

please change openerp to odoo


import time
import openerp.tests.common as common
from openerp import fields

Choose a reason for hiding this comment

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

Please change openerp to odoo

)
project_id = fields.Many2one(
'project.project',
string='Project',

Choose a reason for hiding this comment

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

Should bbe remove the string because the system automatically compute the name of field, so we don't need define it again!

Fixed importing libraries.
@oca-clabot
Copy link

Hey @SalahAdDin, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

Removed unrequired `string` attribute.
@LoisRForgeFlow
Copy link
Contributor

LoisRForgeFlow commented Feb 11, 2020

Could you squash together transifex commits into one and also your migration commits into another one?

screenshot-2020-02-11

@SalahAdDin
Copy link
Contributor Author

@LoisRForgeFlow I will try later.

@github-actions
Copy link

github-actions bot commented Dec 5, 2021

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Dec 5, 2021
@github-actions github-actions bot closed this Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet