mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_cycle_count: deleted stock_inventory_exclude_sublocation dependency
This commit is contained in:
@@ -10,11 +10,7 @@
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||
"category": "Warehouse Management",
|
||||
"depends": [
|
||||
"stock_account",
|
||||
"stock_inventory_discrepancy",
|
||||
"stock_inventory_exclude_sublocation",
|
||||
],
|
||||
"depends": ["stock_account", "stock_inventory_discrepancy", "stock_inventory"],
|
||||
"data": [
|
||||
"views/stock_cycle_count_view.xml",
|
||||
"views/stock_cycle_count_rule_view.xml",
|
||||
|
||||
@@ -25,15 +25,6 @@ class StockInventory(models.Model):
|
||||
if not inv.stock_quant_ids and inv.state == "done":
|
||||
inv.inventory_accuracy = PERCENT
|
||||
|
||||
company_id = fields.Many2one(
|
||||
"res.company",
|
||||
"Company",
|
||||
readonly=True,
|
||||
index=True,
|
||||
required=True,
|
||||
states={"draft": [("readonly", False)]},
|
||||
default=lambda self: self.env.company,
|
||||
)
|
||||
prefill_counted_quantity = fields.Selection(
|
||||
string="Counted Quantities",
|
||||
help="Allows to start with a pre-filled counted quantity for each lines or "
|
||||
@@ -57,11 +48,6 @@ class StockInventory(models.Model):
|
||||
store=True,
|
||||
group_operator="avg",
|
||||
)
|
||||
responsible_id = fields.Many2one(
|
||||
comodel_name="res.users",
|
||||
tracking=True,
|
||||
help="Specific responsible of Inventory Adjustment.",
|
||||
)
|
||||
|
||||
def _get_default_counted_quantitites(self):
|
||||
company_id = self.env.context.get("default_company_id", self.env.company)
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="location_ids" />
|
||||
<field name="responsible_id" />
|
||||
<field name="cycle_count_id" />
|
||||
<field name="inventory_accuracy" />
|
||||
</field>
|
||||
@@ -21,9 +20,7 @@
|
||||
<field name="inherit_id" ref="stock_inventory.view_inventory_group_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="date" position="after">
|
||||
<field name="company_id" />
|
||||
<field name="cycle_count_id" />
|
||||
<field name="responsible_id" />
|
||||
<label for="inventory_accuracy" />
|
||||
<div>
|
||||
<field name="inventory_accuracy" class="oe_inline" /> %
|
||||
|
||||
Reference in New Issue
Block a user