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

[WMS][12.0] Add stock_move_location_dest_constraint_tag - alpha version #698

Conversation

grindtildeath
Copy link
Contributor

This module implements destination location constraint on stock move line.

When installed stock moves will only be allowed if the destination location
includes the same tags as defined on the product or its product category.

N.B.: If tags are defined on the product, tags defined on its product category
will not be considered

Related to #691

Requires:

@grindtildeath grindtildeath changed the title [WMS][12.0] Add stock_move_location_dest_constraint_tag [WMS][12.0] Add stock_move_location_dest_constraint_tag - alpha version Sep 5, 2019
@grindtildeath grindtildeath force-pushed the 12.0_add_stock_move_location_dest_constraint_tags branch from 1057db9 to 554a88c Compare September 9, 2019 14:39
@jgrandguillaume jgrandguillaume mentioned this pull request Sep 13, 2019
32 tasks
…onstraint_tags

Fix demo data, wrong model name
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

Choose a reason for hiding this comment

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

should use odoo noupdate="1"

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

Choose a reason for hiding this comment

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

noupdate="1" is missing for all demo files

@@ -0,0 +1,13 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import models, fields

Choose a reason for hiding this comment

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

import should be in alphabetical order
from odoo import fields, models

@@ -0,0 +1,12 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import models, fields

Choose a reason for hiding this comment

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

same as above

@@ -0,0 +1,13 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import models, fields

Choose a reason for hiding this comment

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

same as above

@@ -0,0 +1,37 @@
# Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import models, fields, _

Choose a reason for hiding this comment

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

It should be from odoo import _, fields, models

Copy link
Member

@gurneyalex gurneyalex left a comment

Choose a reason for hiding this comment

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

I'm concerned about a few issues here:

  • with this implementation, the Customers location needs to be updated with every possible tag, otherwise you will never be able to deliver a SO
  • same for PACK and OUT locations of a WH
  • there is no domain update in the choice of a destination location to help the user choose an appropriate location.

@jgrandguillaume
Copy link
Member

@gurneyalex I agree with you. We need to review all this put away design at a whole. The POC prooved it works, but it's not optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants