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

[16.0][MIG] stock_picking_batch_extended: Migration to 16.0 #1236

Closed

Conversation

BorisFL
Copy link

@BorisFL BorisFL commented Feb 28, 2023

No description provided.

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch 4 times, most recently from 07720a7 to 15feeec Compare March 1, 2023 15:38
@BorisFL
Copy link
Author

BorisFL commented Mar 1, 2023

@RodrigoBM
Copy link
Contributor

@rousseldenis can you add to issue #1101

@BorisFL BorisFL changed the title [MIG] migration stock_picking_batch_extended from 14.0 to 16.0 [16.0][MIG] migration stock_picking_batch_extended from 14.0 to 16.0 Mar 13, 2023
@BorisFL BorisFL changed the title [16.0][MIG] migration stock_picking_batch_extended from 14.0 to 16.0 [16.0][MIG] stock_picking_batch_extended: Migration to 16.0 Mar 13, 2023
@rousseldenis
Copy link
Contributor

/ocabot migration stock_picking_batch_extended

@rousseldenis
Copy link
Contributor

rousseldenis commented Mar 13, 2023

@BorisFL Could you check this https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0?

Could you follow especially Full process part ? Thanks

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch from 15feeec to aa93955 Compare March 14, 2023 17:53
@BorisFL
Copy link
Author

BorisFL commented Mar 14, 2023

@BorisFL Could you check this https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0?

Could you follow especially Full process part ? Thanks

Sure! I just uploaded the corrections. Can you review them to make sure they are correct?

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch 3 times, most recently from e012f47 to 0b2abca Compare March 16, 2023 16:52
Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

@BorisFL Thanks for this.

Unfortunately, you cannot change the authorship everywhere. Please keep them. You can add yourself in code parts you improve only.

Could you also limit your migration changes in migration commit, then, do other commit(s) for improvements ?

Thanks

.gitignore Outdated Show resolved Hide resolved
stock_picking_batch_extended/__manifest__.py Outdated Show resolved Hide resolved
stock_picking_batch_extended/__manifest__.py Outdated Show resolved Hide resolved
stock_picking_batch_extended/__manifest__.py Outdated Show resolved Hide resolved
stock_picking_batch_extended/__manifest__.py Outdated Show resolved Hide resolved
@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch 7 times, most recently from f8ad4d7 to b3a772d Compare March 21, 2023 12:55
@BorisFL
Copy link
Author

BorisFL commented Mar 21, 2023

@rousseldenis I have already fixed the bugs and sorry for deleting the other authors.

@pedrobaeza
Copy link
Member

Please include #1276 and #1277

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch from b3a772d to 5cc3df7 Compare April 24, 2023 10:11
@BorisFL
Copy link
Author

BorisFL commented Jun 5, 2023

@sergio-teruel I accidentally recovered the file. Initially, I was migrating from version 14, and that's why the file got recovered. I have just deleted it now.

@BorisFL
Copy link
Author

BorisFL commented Jun 6, 2023

Hi @rousseldenis . I made the corrections you asked for. Please take a look at them when you can.

@@ -10,11 +10,11 @@
name="binding_model_id"
ref="stock_picking_batch.model_stock_picking_batch"
/>
<field name="type">ir.actions.server</field>
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to add this as this is the default.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

action = env.ref('stock.action_report_delivery').report_action(pickings)
<field name="code">
pickings = records.mapped('picking_ids').filtered(lambda p: p.state != 'cancel')
action = env['ir.actions.report'].sudo()._get_report_from_name('stock.report_delivery').report_action(pickings)
Copy link
Contributor

Choose a reason for hiding this comment

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

@BorisFL Are you sure about the sudo ? As it is done in _get_report_from_name()

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@@ -6,5 +6,5 @@

def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})

env["res.company"].search([]).write({"use_oca_batch_validation": True})
Copy link
Contributor

Choose a reason for hiding this comment

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

Why changing this?

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch from c39c508 to 42562f7 Compare June 6, 2023 08:24
@@ -99,6 +105,22 @@ def action_print_picking(self):
def remove_undone_pickings(self):
"""Remove of this batch all pickings which state is not done / cancel."""
self.mapped("active_picking_ids").write({"batch_id": False})
self.verify_state()

def verify_state(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Last but not least, this is an addition in behavior from previous version.

IMHO, this module deserves a good DESCRIPTION.rst in readme folder to explain what it does as 'extended' is too general term to understand at first sight. Thanks

Copy link
Author

@BorisFL BorisFL Jun 6, 2023

Choose a reason for hiding this comment

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

I have fixed it. I have cleaned up some errors from an initial import I made from v14, and the only change is the removal of "remove_undone_pickings." This change ensures that when a picking is canceled, its grouping is removed in v16

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, nevertheless, a good module description could be a great improvement 😃

Copy link
Author

Choose a reason for hiding this comment

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

I have added a description to the readme and index files

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch 8 times, most recently from fe1c794 to 9217cb2 Compare June 6, 2023 20:04
Copy link
Member

@FrancoMaxime FrancoMaxime left a comment

Choose a reason for hiding this comment

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

LGTM, minor suggestion

# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Stock batch picking extended",
"summary": "Allows manage a lot of pickings in batch",
"version": "15.0.2.2.0",
"version": "16.0.1.0.0",
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)",
Copy link
Member

Choose a reason for hiding this comment

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

Hi @BorisFL , thanks for contributing.
can you fix this old pre-commit result?

Suggested change
"author": "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)",
"author": "Camptocamp, Tecnativa, Odoo Community Association (OCA)",

Copy link
Author

Choose a reason for hiding this comment

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

I have fixed the concatenation of the authors

Copy link
Member

Choose a reason for hiding this comment

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

thanks :)

@BorisFL BorisFL force-pushed the 16.0-mig-stock_picking_batch_extended branch from 9217cb2 to 989b691 Compare June 7, 2023 14:16
@rousseldenis
Copy link
Contributor

@pedrobaeza @sergio-teruel Could you update your review ?

@BorisFL
Copy link
Author

BorisFL commented Jun 12, 2023

Hello @pedrobaeza and @sergio-teruel .

I have made the mentioned modifications. Can you review them?

@BorisFL
Copy link
Author

BorisFL commented Jun 14, 2023

Good morning @pedrobaeza and @sergio-teruel , I apologize for insisting, but have you received any notification? Can you review your comments?

@pedrobaeza pedrobaeza dismissed their stale review June 14, 2023 08:25

Letting others to decide

@xAdrianCif
Copy link

Hello, @sergio-teruel Could you review the changes made and leave an approval if you think it's appropriate? If you see the need for any additional changes, please let me know. From now on, I will take care of this PR, so if anyone thinks we should make any changes, please let me know as well! Thanks to all!

@xAdrianCif
Copy link

Hello everyone, the person who developed and maintained this PR is no longer collaborating with our company. We have detect some minor issues so we have decided to close it, reanalyze it, and develop it again. We will upload the new one as soon as possible.

PD: I do not have the permissions to close this PR. If someone could do it, I would greatly appreciate it.

CC @pedrobaeza @rousseldenis @sergio-teruel @FrancoMaxime

@pedrobaeza pedrobaeza closed this Jun 21, 2023
@nicomacr
Copy link
Contributor

@xAdrianC-FactorLibre any news about the new PR of the module?

@xAdrianCif
Copy link

Hello @nicomacr , we have conducted a preliminary analysis and believe that changes need to be made compared to the previous MR. However, I cannot provide much information regarding actions or possible dates as we are currently focused on other priorities.

@xAdrianCif
Copy link

@nicomacr @rousseldenis @FrancoMaxime
Hello everyone, a colleague has carried out the migration that was postponed in this issue. I'll leave the link here in case you're still interested. Thank you!
#1353

@nicomacr
Copy link
Contributor

@xAdrianCif Thank you for taking care of the migration of the module.

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.