-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3409][IMP] stock_product_shelfinfo: create new model area1 & area2 a…
…nd change the fields type to many2one on product.shelfinfo model #24 [IMP] stock_product_shelfinfo: create new model area1 & area2 and change the fields type to many2one on product.shelfinfo model
- Loading branch information
1 parent
278506c
commit 99ae12a
Showing
17 changed files
with
339 additions
and
38 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
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<menuitem | ||
id="menu_stock_product_shelfinfo" | ||
parent="stock.menu_stock_config_settings" | ||
name="Product Shelf Info" | ||
sequence="20" | ||
/> | ||
</odoo> |
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,4 +1,7 @@ | ||
from . import product_product | ||
from . import product_shelf_area1 | ||
from . import product_shelf_area2 | ||
from . import product_shelf_position | ||
from . import product_shelfinfo | ||
from . import product_template | ||
from . import stock_move |
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,13 @@ | ||
# Copyright 2023 Quartile Limited | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ProductShelfArea1(models.Model): | ||
_name = "product.shelf.area1" | ||
_description = "Product Shelf Area 1" | ||
_order = "name" | ||
|
||
name = fields.Char(required=True) | ||
active = fields.Boolean(default=True) |
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,13 @@ | ||
# Copyright 2023 Quartile Limited | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ProductShelfArea2(models.Model): | ||
_name = "product.shelf.area2" | ||
_description = "Product Shelf Area 2" | ||
_order = "name" | ||
|
||
name = fields.Char(required=True) | ||
active = fields.Boolean(default=True) |
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,13 @@ | ||
# Copyright 2023 Quartile Limited | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ProductShelfPosition(models.Model): | ||
_name = "product.shelf.position" | ||
_description = "Product Shelf Position" | ||
_order = "name" | ||
|
||
name = fields.Char(required=True) | ||
active = fields.Boolean(default=True) |
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,3 @@ | ||
Go to the menu items under *Inventory > Settings > Product Shelf Info* and create | ||
area 1, area 2 and position records to be selected in the product shelf information | ||
accordingly. |
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,3 +1,9 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_product_shelfinfo_user,access.product.shelfinfo.user,model_product_shelfinfo,stock.group_stock_user,1,0,0,0 | ||
access_product_shelfinfo_manager,access.product.shelfinfo.manager,model_product_shelfinfo,stock.group_stock_manager,1,1,1,1 | ||
access_product_shelf_area1_user,access.product.shelf.area1.user,model_product_shelf_area1,stock.group_stock_user,1,0,0,0 | ||
access_product_shelf_area1_manager,access.product.shelf.area1.manager,model_product_shelf_area1,stock.group_stock_manager,1,1,1,1 | ||
access_product_shelf_area2_user,access.product.shelf.area2.user,model_product_shelf_area2,stock.group_stock_user,1,0,0,0 | ||
access_product_shelf_area2_manager,access.product.shelf.area2.manager,model_product_shelf_area2,stock.group_stock_manager,1,1,1,1 | ||
access_product_shelf_position_user,access.product.shelf.position.user,model_product_shelf_position,stock.group_stock_user,1,0,0,0 | ||
access_product_shelf_position_manager,access.product.shelf.position.manager,model_product_shelf_position,stock.group_stock_manager,1,1,1,1 |
Oops, something went wrong.