Merge lp:~acsone-openerp/stock-logistic-warehouse/7.0-inventory-hierarchical-lga into lp:~numerigraphe-team/stock-logistic-warehouse/7.0-inventory-hierarchical-ls
Status: | Merged |
---|---|
Merge reported by: | Lionel Sausin - Initiatives/Numérigraphe |
Merged at revision: | not available |
Proposed branch: | lp:~acsone-openerp/stock-logistic-warehouse/7.0-inventory-hierarchical-lga |
Merge into: | lp:~numerigraphe-team/stock-logistic-warehouse/7.0-inventory-hierarchical-ls |
Diff against target: |
74 lines (+18/-13) 3 files modified
stock_inventory_hierarchical/hierarchical_inventory_view.xml (+7/-2) stock_inventory_location/stock_inventory_location.py (+9/-11) stock_inventory_location/stock_inventory_location_view.xml (+2/-0) |
To merge this branch: | bzr merge lp:~acsone-openerp/stock-logistic-warehouse/7.0-inventory-hierarchical-lga |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lionel Sausin - Initiatives/Numérigraphe | Approve | ||
Review via email: mp+222784@code.launchpad.net |
Description of the change
Hello,
I propose some little change following my first test of your module.
In stock_inventory
I redefine tree view for sub-inventories, because the context seems not transferred to name_get. I get problem in the following case :
create inventory - create sub-inventory - create sub-inventory on the sub-inventory
I also set default value for parent_id and exhaustive when create sub-inventory.
In stock_inventory
I replace the onchange_location on inventory line by a domain, I found it is easier to have only available location than display a warning message. (Maybe add an help to explain why there is not all location ?)
I update default_location method for exhaustive inventory, to take the stock location define of the first warehouse of the user company. In a multi-company context this stock location should be always correct.
I see 2 problems with replacing onchange_location with a domain:
- if the inventory is not exhaustive, the content of location_id is unspecified (probably the default, but we can't be sure)
- if users insist on entering a wrong location, openerp will propose to create it which is going to be confusing