[MIG][16.0] stock_location_zone

This commit is contained in:
Denis Roussel
2022-12-07 11:58:27 +01:00
parent aa294647a0
commit 525f42035a
3 changed files with 5 additions and 4 deletions

View File

@@ -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",
} }

View File

@@ -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: "

View File

@@ -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>