[IMP] stock: stock quant import template

Task: 2764771
Part-of: odoo/odoo#91640
This commit is contained in:
Ahmed Khalaf (ahkh)
2022-06-03 12:02:08 +02:00
parent 80a52dfbbc
commit db810d14be
2 changed files with 7 additions and 0 deletions
+7
View File
@@ -303,6 +303,13 @@ class StockQuant(models.Model):
group['inventory_quantity_auto_apply'] = group['quantity']
return result
@api.model
def get_import_templates(self):
return [{
'label': _('Import Template for Inventory Adjustments'),
'template': '/stock/static/xlsx/stock_quant.xlsx'
}]
def write(self, vals):
""" Override to handle the "inventory mode" and create the inventory move. """
allowed_fields = self._get_inventory_fields_write()
Binary file not shown.