mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG][16.0] stock_location_zone
This commit is contained in:
@@ -4,14 +4,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Stock Location Zone",
|
"name": "Stock Location Zone",
|
||||||
"version": "14.0.1.0.0",
|
"version": "16.0.1.0.0",
|
||||||
"author": "BCIM, Okia, Camptocamp, Odoo Community Association (OCA)",
|
"author": "BCIM, Okia, Camptocamp, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||||
"summary": "Classify locations with zones.",
|
"summary": "Classify locations with zones.",
|
||||||
"category": "Stock Management",
|
"category": "Warehouse",
|
||||||
"depends": ["stock"],
|
"depends": ["stock"],
|
||||||
"data": ["views/stock_location.xml"],
|
"data": ["views/stock_location.xml"],
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"development_status": "Alpha",
|
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,12 +19,14 @@ class StockLocation(models.Model):
|
|||||||
compute="_compute_zone_location_id",
|
compute="_compute_zone_location_id",
|
||||||
store=True,
|
store=True,
|
||||||
index=True,
|
index=True,
|
||||||
|
recursive=True,
|
||||||
)
|
)
|
||||||
area_location_id = fields.Many2one(
|
area_location_id = fields.Many2one(
|
||||||
"stock.location",
|
"stock.location",
|
||||||
string="Location Area",
|
string="Location Area",
|
||||||
compute="_compute_zone_location_id",
|
compute="_compute_zone_location_id",
|
||||||
store=True,
|
store=True,
|
||||||
|
recursive=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
location_kind = fields.Selection(
|
location_kind = fields.Selection(
|
||||||
@@ -35,7 +37,6 @@ class StockLocation(models.Model):
|
|||||||
("stock", "Main Stock"),
|
("stock", "Main Stock"),
|
||||||
("other", "Other"),
|
("other", "Other"),
|
||||||
],
|
],
|
||||||
string="Location Kind",
|
|
||||||
compute="_compute_location_kind",
|
compute="_compute_location_kind",
|
||||||
store=True,
|
store=True,
|
||||||
help="Group location according to their kinds: "
|
help="Group location according to their kinds: "
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
* Guewen Baconnier (Camptocamp) <guewen.baconnier@camptocamp.com>
|
* Guewen Baconnier (Camptocamp) <guewen.baconnier@camptocamp.com>
|
||||||
* Akim Juillerat <akim.juillerat@camptocamp.com>
|
* Akim Juillerat <akim.juillerat@camptocamp.com>
|
||||||
* Phuc Tran Thanh <phuc@trobz.com>
|
* Phuc Tran Thanh <phuc@trobz.com>
|
||||||
|
* Denis Roussel <denis.roussel@acsone.eu>
|
||||||
|
|||||||
Reference in New Issue
Block a user