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

[MIG]Migrate stock_picking_show_return from v11 to v12 #477

Merged
merged 12 commits into from
Feb 2, 2019

Conversation

bizzappdev
Copy link
Contributor

Migrate from v11 to v12
#457

@rousseldenis rousseldenis added this to the 12.0 milestone Nov 24, 2018
@OCA-git-bot OCA-git-bot mentioned this pull request Nov 24, 2018
34 tasks
Copy link
Member

@bodedra bodedra left a comment

Choose a reason for hiding this comment

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

pedrobaeza and others added 11 commits November 25, 2018 10:18
==============================
Show returns on stock pickings
==============================

This module enables one tab in the pickings that contains returns made for that
picking.
The returned picking must be obtained from the picking of the iteration,
not the set of pickings to be calculated.
OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex
For avoiding errors when other modules add required fields on affected models
@bizzappdev bizzappdev force-pushed the 12.0-mig-stock_picking_show_return branch from e0d3553 to 4f478fb Compare November 25, 2018 04:51
@bizzappdev
Copy link
Contributor Author

Commit history has been added

Copy link
Member

@bodedra bodedra left a comment

Choose a reason for hiding this comment

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

@bizzappdev Thanks for migration. Would you please correct minor changes. Other than it's LGTM


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/154/11.0
Copy link
Member

Choose a reason for hiding this comment

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

Should be 12.0

Copy link
Member

Choose a reason for hiding this comment

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

You can use README by fragments and generate this automatically: https://github.com/OCA/maintainer-tools/#readme-generator

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

"author": "Tecnativa, "
"Odoo Community Association (OCA)",
"category": "Warehouse Management",
"website": "https://www.tecnativa.com",
Copy link
Member

Choose a reason for hiding this comment

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

Should be https://github.com/OCA/stock-logistics-workflow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@bizzappdev
Copy link
Contributor Author

suggested change are done

Copy link
Member

@bodedra bodedra 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 👍

@nikul-serpentcs
Copy link
Member

@bizzappdev Use new README by fragment system, copying https://github.com/OCA/maintainer-tools/tree/master/template/module/readme and editing or removing the needed sections. You can then run locally oca-gen-addon-readme if you have OCA/maintainer-tools installed and you want to pre-generate the README.rst file (preferred), or keep the previous README.rst file.

class StockPicking(models.Model):
_inherit = 'stock.picking'

returned_ids = fields.Many2many(

Choose a reason for hiding this comment

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

We should use table name (Eg. relation='returned_picking_relation') explicitly to prevent sharing same table name (In case one have m2m with same object)
Related PR on Github: odoo/odoo#29376 and odoo/odoo#29323

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Swapnesh-SerpentCS As it is non-store field it will not create any database table

Copy link
Member

@nikul-serpentcs nikul-serpentcs left a comment

Choose a reason for hiding this comment

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

Improve Code

|badge1| |badge2| |badge3| |badge4| |badge5|

=================================
Display returns on stock pickings
Copy link
Member

Choose a reason for hiding this comment

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

@bizzappdev Remove it, Two time added

@@ -0,0 +1,6 @@
=================================
Display returns on stock pickings
Copy link
Member

Choose a reason for hiding this comment

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

same as

Copy link
Contributor Author

@bizzappdev bizzappdev Dec 24, 2018

Choose a reason for hiding this comment

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

Done

@nikul-serpentcs
Copy link
Member

@bizzappdev squash commits

@bizzappdev
Copy link
Contributor Author

squash commits

sorry but I am not good in Squashing. might be the merger will do.

@pedrobaeza
Copy link
Member

You can see the guide for that: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests

Tell me if you have any doubt. This can't be done at merge time unless the merger downloads locally the branch, do the squashing and force push over your PR. If no luck, I'll do it.

@nikul-serpentcs
Copy link
Member

squash commits

sorry but I am not good in Squashing. might be the merger will do.

@bizzappdev follow this command/steps:
git rebase -i HEAD~6
after open file like this pick c70a0dc ..,
you rename pick to f,
Note: not rename first pick.( this one [MIG]stock_picking_show_return: migration from 11 to v12)
after save file and git push origin branch_name -f

@bizzappdev bizzappdev force-pushed the 12.0-mig-stock_picking_show_return branch from 45c6c48 to a41fe7e Compare January 30, 2019 09:51
@bizzappdev
Copy link
Contributor Author

thanks @pedrobaeza for pointing doc. I had only doubt that last time when I forced push the PR was automatically closed that is why I was worrying. I have force pushed the commit with squash. Please check
cc @nikul-serpentcs

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.

Code review. Minor changes

@bizzappdev bizzappdev force-pushed the 12.0-mig-stock_picking_show_return branch from a5f759f to 4bca2ca Compare January 30, 2019 13:49
@pedrobaeza pedrobaeza merged commit 789a848 into OCA:12.0 Feb 2, 2019
jaredkipe pushed a commit to hibou-io/oca-stock-logistics-workflow that referenced this pull request May 6, 2019
[11.0][NEW] stock_secondary_unit: New module for get stock in a secondary unit
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.