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] stock_quant_manual_assign: Migration to 11.0 #508

Merged
merged 32 commits into from
Nov 21, 2018

Conversation

cubells
Copy link
Sponsor Member

@cubells cubells commented Nov 12, 2018

Migration standard of module.

cc @Tecnativa

Supersede #361

@cubells
Copy link
Sponsor Member Author

cubells commented Nov 12, 2018

@lreficent , @rousseldenis , @pedrobaeza can you test again this?

@fanha99
Copy link
Contributor

fanha99 commented Nov 12, 2018

Hi @cubells , in my pull request, some auto test case was removed.
Is it better to check and fix them, also?

@cubells cubells force-pushed the 11.0-mig-stock_quant_manual_assign branch from dd438e3 to c3f622e Compare November 12, 2018 08:31
@cubells
Copy link
Sponsor Member Author

cubells commented Nov 12, 2018

@fanha99 I've updated tests. I think all cases are covered.

@pedrobaeza pedrobaeza added this to the 11.0 milestone Nov 13, 2018
@pedrobaeza
Copy link
Member

pedrobaeza commented Nov 13, 2018

Works very well. Only 2 minor things:

  • Change the widget of the check for being toggle widget, so that you don't have to click 2 times for selecting a line.

  • If you have already selected all the quantity needed, when you press on other line the "Select" check, if turns selected, but no quantity is added, so this is weird. I think in 2 possibilities:

    • To turn to readonly the fields where quantity = 0 and parent.remaning quantity = 0, so when you select last possible line, the rest is not possible to be selected. This one is more UX friendly.
    • On the onchange of the check, go back to unchecked if the quantity is 0.

Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

Issues I saw in the other PR are solved. Thanks 👍

Copy link
Sponsor 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.

Main part is about move link which can be done through a field.

@pedrobaeza
Copy link
Member

@cubells it seems the toggle button is working even worst. Have you tried? I remember that Odoo fixed for not needing 2 clicks for using it, but it seems it's not true. We can see this together tomorrow.

@cubells cubells force-pushed the 11.0-mig-stock_quant_manual_assign branch from dde313c to b3e83a8 Compare November 16, 2018 07:23
@cubells cubells force-pushed the 11.0-mig-stock_quant_manual_assign branch from b3e83a8 to 2234a2e Compare November 16, 2018 16:42
@cubells
Copy link
Sponsor Member Author

cubells commented Nov 16, 2018

@pedrobaeza
I've tested your two options proposed and if I change readonly attribute of selected fields in view, readonly attribute is not setted to selected in any moment.
And if I change onchange method of selected field, user has to click on checkbox twice to enter quantity.
So I leave code as is.

Copy link
Contributor

@fanha99 fanha99 left a comment

Choose a reason for hiding this comment

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

LGTM

@LoisRForgeFlow
Copy link
Contributor

@pedrobaeza @rousseldenis Could you guys check if this is good to go for you now?

@oca-clabot

This comment has been minimized.

* Better layout
* Remove active_id dependency in some computed fields
* Clean code
* Refine constraint
* Take into account if the current line is previously reserved before clicking on the button.
@pedrobaeza pedrobaeza force-pushed the 11.0-mig-stock_quant_manual_assign branch from 2d73dba to ec5025d Compare November 20, 2018 22:38
@oca-clabot

This comment has been minimized.

@pedrobaeza
Copy link
Member

@rousseldenis I have attended your comments and also improve the module with:

  • Better layout
  • Remove active_id dependency in some computed fields
  • Clean code
  • Refine constraint
  • Take into account if the current line is previously reserved before clicking on the button.

so all your comments have been honored. If you don't answer in a couple of days, I'll merge this.

Copy link
Sponsor 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. LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza pedrobaeza merged commit 4a3a551 into OCA:11.0 Nov 21, 2018
@pedrobaeza pedrobaeza deleted the 11.0-mig-stock_quant_manual_assign branch November 21, 2018 08:36
@pedrobaeza pedrobaeza mentioned this pull request Nov 21, 2018
46 tasks
i-vyshnevska pushed a commit to camptocamp/stock-logistics-warehouse that referenced this pull request Apr 13, 2020
…ative

[12.0][MIG] Migration of stock_no_negative
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.

None yet