mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Allow to create stock.quants making the quants smart button not invisible when quantity is equal to 0. (Removing one of the invisible conditions). [IMP] stock_inventory: adds exclude_sublocation flag [IMP] stock_inventory: Add flag to autocomplete adjustment when fully done. [IMP] stock_inventory Add company to adjustments to avoid multi-company errors. Adds information fields to tree view. Also adds 'Assign to' in stock inventory that propagates to quants. Also propagates the date field.
13 lines
383 B
Python
13 lines
383 B
Python
# Copyright 2024 ForgeFlow S.L. (http://www.forgeflow.com)
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = "res.config.settings"
|
|
|
|
stock_inventory_auto_complete = fields.Boolean(
|
|
related="company_id.stock_inventory_auto_complete", readonly=False
|
|
)
|