-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
[WMS][12.0] Add stock_move_location_dest_constraint_tag - alpha version #698
Conversation
stock_move_location_dest_constraint_tag/models/stock_location.py
Outdated
Show resolved
Hide resolved
1057db9
to
554a88c
Compare
…onstraint_tags Fix demo data, wrong model name
@@ -0,0 +1,53 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<odoo> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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, _ |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
@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. |
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: