-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from beescoop/12.0-split-beesdoo_inventory
12.0 split beesdoo inventory
- Loading branch information
Showing
10 changed files
with
39 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
from . import models | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import logging | ||
|
||
from odoo import SUPERUSER_ID | ||
from odoo.api import Environment | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
def migrate(cr, version): | ||
# remove all users from group "Manage Packages" sometimes | ||
# translated as "Gérer les emplacements multiples | ||
# et les entrepôts" | ||
_logger.info( | ||
"removing all users from groups 'Manage Packages'," | ||
" 'Manage Multiple Stock Locations'" | ||
" and 'Manage Different Stock Owners'" | ||
) | ||
with Environment.manage(): | ||
env = Environment(cr, SUPERUSER_ID, {}) | ||
group_tracking_lot = env.ref("stock.group_tracking_lot") | ||
group_stock_multi_locations = env.ref("stock.group_stock_multi_locations") | ||
group_tracking_owner = env.ref("stock.group_tracking_owner") | ||
group_tracking_lot.users = [(5, 0, 0)] | ||
group_stock_multi_locations.users = [(5, 0, 0)] | ||
group_tracking_owner.users = [(5, 0, 0)] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Adds a responsible, a max shipping date and a button to copy quantity to stock pickings. | ||
Restrict selectable products to those sold as main supplier by the picking partner. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ git+https://github.com/coopiteasy/[email protected]#subdirectory=setup/partner_contact | |
git+https://github.com/grap/[email protected]#subdirectory=setup/product_print_category | ||
git+https://github.com/coopiteasy/[email protected]_invoice_date_required#subdirectory=setup/account_invoice_date_required | ||
git+https://github.com/coopiteasy/[email protected]_invoice_negative_total#subdirectory=setup/account_invoice_negative_total | ||
git+https://github.com/coopiteasy/[email protected]_picking_responsible#subdirectory=setup/stock_picking_responsible |