first commit

This commit is contained in:
root
2026-03-14 09:42:12 +00:00
commit 0adbd20c2c
10991 changed files with 1646955 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,80 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, fields
from trytond.pool import Pool
from trytond.transaction import Transaction
from trytond.wizard import Button, StateAction, StateView, Wizard
class CreateInventoriesStart(ModelView):
__name__ = 'stock.inventory.create.start'
date = fields.Date('Date', required=True)
company = fields.Many2One('company.company', "Company", required=True)
empty_quantity = fields.Selection(
'get_empty_quantities', "Empty Quantity",
help="How lines without a quantity are handled.")
complete_lines = fields.Boolean(
"Complete",
help="Add an inventory line for each missing product.")
locations = fields.Many2Many('stock.location', None, None,
'Locations', required=True, domain=[('type', '=', 'storage')])
@classmethod
def default_date(cls):
return Pool().get('ir.date').today()
@staticmethod
def default_company():
return Transaction().context.get('company')
@classmethod
def get_empty_quantities(cls):
pool = Pool()
Inventory = pool.get('stock.inventory')
return Inventory.fields_get(
['empty_quantity'])['empty_quantity']['selection']
@classmethod
def default_empty_quantity(cls):
pool = Pool()
Inventory = pool.get('stock.inventory')
try:
return Inventory.default_empty_quantity()
except AttributeError:
return
@classmethod
def default_complete_lines(cls):
return True
class CreateInventories(Wizard):
__name__ = 'stock.inventory.create'
start = StateView('stock.inventory.create.start',
'stock_inventory_location.inventory_create_start_view_form', [
Button('Cancel', 'end', 'tryton-cancel'),
Button('Create', 'create_', 'tryton-ok', default=True),
])
create_ = StateAction('stock.act_inventory_form')
def get_inventory(self, location, Inventory):
return Inventory(
location=location,
date=self.start.date,
company=self.start.company,
empty_quantity=self.start.empty_quantity)
def do_create_(self, action):
pool = Pool()
Inventory = pool.get('stock.inventory')
inventories = [
self.get_inventory(location, Inventory)
for location in self.start.locations]
Inventory.save(inventories)
if self.start.complete_lines:
Inventory.complete_lines(inventories)
data = {'res_id': [i.id for i in inventories]}
return action, data

View File

@@ -0,0 +1,39 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.action.wizard" id="wizard_create_inventory">
<field name="name">Create Inventories</field>
<field name="wiz_name">stock.inventory.create</field>
</record>
<record model="ir.action-res.group"
id="wizard_create_inventory_group_stock">
<field name="action" ref="wizard_create_inventory"/>
<field name="group" ref="stock.group_stock"/>
</record>
<menuitem
parent="stock.menu_stock"
action="wizard_create_inventory"
sequence="90"
id="menu_create_inventory"/>
<record model="ir.ui.menu-res.group"
id="menu_create_inventory_group_stock">
<field name="menu" ref="menu_create_inventory"/>
<field name="group" ref="stock.group_stock"/>
</record>
<record model="ir.ui.view" id="inventory_create_start_view_form">
<field name="model">stock.inventory.create.start</field>
<field name="type">form</field>
<field name="name">inventory_create_start_form</field>
</record>
<record model="ir.ui.view" id="inventory_view_list">
<field name="model">stock.inventory</field>
<field name="inherit" ref="stock.inventory_view_tree"/>
<field name="name">inventory_list</field>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,53 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Фирма"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Дата"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Местонахождения"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
#, fuzzy
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Създаване"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Отказ"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Empresa"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Completa"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Data"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Quantitat en blanc"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Ubicacions"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Afegeix una línia d'inventary per a cada producte que falta."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Com es gestionen les línies sense quantitat."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Crea inventaris"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Crea inventaris"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr "Inici crear inventari"
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Crea"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Cancel·la"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr ""
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr ""
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr ""

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Unternehmen"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Vervollständigen"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Datum"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Positionen ohne Erfassung"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Lagerorte"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Inventurposition für jeden fehlenden Artikel hinzufügen."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Bestimmt wie Positionen ohne erfasste Menge behandelt werden."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Lagerbestände ermitteln"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Lagerbestände ermitteln"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr "Lager Inventur erstellen Start"
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Erstellen"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Abbrechen"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Empresa"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Completar"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Fecha"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Cantidad en blanco"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Ubicaciones"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Añade una línea de inventario por cada producto que falta."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Como se gestionan las líneas sin cantidad."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Crear inventarios"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Crear inventarios"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr "Inicio crear inventario"
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Crear"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Cancelar"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr ""
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr ""
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr ""
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr ""

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Ettevõte"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Lõpeta"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Kuupäev"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Ilma koguseta"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Asukohad"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Kuidas käsitleda ilma koguseta ridu."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Loo inventuur"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Loo inventuur"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Loo"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Tühista"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "شرکت"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "تاریخ"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "مکان ها"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "ایجاد فهرست های موجودی"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "ایجاد فهرست های موجودی"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "ایجاد"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "انصراف"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr ""
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr ""
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr ""

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Société"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Compléter"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Date"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Quantité vide"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Emplacements"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Ajouter une ligne d'inventaire pour chaque produit manquant."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Comment les lignes sans quantité sont traitées."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Créer les inventaires"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Créer les inventaires"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr "Créer un inventaire de stock démarrer"
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Créer"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Annuler"

View File

@@ -0,0 +1,53 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Társaság"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Dátum"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Raktárhely"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
#, fuzzy
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Létrehozás"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Mégse"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Perusahaan"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Tanggal"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr ""
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Buat"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Batal"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Azienda"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Completa"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Data"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Quantità vuota"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Posizioni"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Aggiungi una riga di inventario per ogni prodotto mancante."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Come vengono gestite le righe senza una quantità."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Crea inventari"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Crea inventari"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Crea"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Annulla"

View File

@@ -0,0 +1,53 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "ບໍລິສັດ"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "ວັນທີ"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "ສະຖານທີ່"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
#, fuzzy
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "ສ້າງ"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "ຍົກເລີກ"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Organizacija"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr ""
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr ""

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Bedrijf"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Voltooien"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "datum"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Lege hoeveelheid"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "locaties"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Voeg een inventarisregel toe voor alle ontbrekende producten."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Hoe lijnen zonder hoeveelheid worden afgehandeld."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "maak inventaris"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "maak inventaris"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr "Voorraad inventaris maken start"
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Maken"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Annuleren"

View File

@@ -0,0 +1,52 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Firma"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Data"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Lokalizacje"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Utwórz"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Anuluj"

View File

@@ -0,0 +1,53 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Empresa"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Data"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Localizações"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
#, fuzzy
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Criar"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Cancelar"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Societate"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr "Complet"
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Data"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr "Cantitate Goală"
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Locaţii"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr "Adăugați un rând de inventar pentru fiecare produs lipsă."
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr "Cum se gestionează rânduri fără o cantitate."
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Creare Inventare"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Creare Inventare"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Creare"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Anulare"

View File

@@ -0,0 +1,56 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
#, fuzzy
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Учет.орг."
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
#, fuzzy
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Дата"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
#, fuzzy
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Местоположения"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
#, fuzzy
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Создать"
#, fuzzy
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Отменить"

View File

@@ -0,0 +1,53 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr "Družba"
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "Datum"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr "Lokacije"
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
#, fuzzy
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
#, fuzzy
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr "Izdelaj"
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "Prekliči"

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr ""
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr ""
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr ""

View File

@@ -0,0 +1,51 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr ""
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr ""
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr ""
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr ""
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr ""

View File

@@ -0,0 +1,53 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.inventory.create.start,company:"
msgid "Company"
msgstr ""
msgctxt "field:stock.inventory.create.start,complete_lines:"
msgid "Complete"
msgstr ""
#, fuzzy
msgctxt "field:stock.inventory.create.start,date:"
msgid "Date"
msgstr "日期格式"
msgctxt "field:stock.inventory.create.start,empty_quantity:"
msgid "Empty Quantity"
msgstr ""
msgctxt "field:stock.inventory.create.start,locations:"
msgid "Locations"
msgstr ""
msgctxt "help:stock.inventory.create.start,complete_lines:"
msgid "Add an inventory line for each missing product."
msgstr ""
msgctxt "help:stock.inventory.create.start,empty_quantity:"
msgid "How lines without a quantity are handled."
msgstr ""
msgctxt "model:ir.action,name:wizard_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:ir.ui.menu,name:menu_create_inventory"
msgid "Create Inventories"
msgstr "Create Inventories"
msgctxt "model:stock.inventory.create.start,string:"
msgid "Stock Inventory Create Start"
msgstr ""
msgctxt "wizard_button:stock.inventory.create,start,create_:"
msgid "Create"
msgstr ""
#, fuzzy
msgctxt "wizard_button:stock.inventory.create,start,end:"
msgid "Cancel"
msgstr "取消"

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,34 @@
==========================
Stock Inventories Scenario
==========================
Imports::
>>> from proteus import Model, Wizard
>>> from trytond.modules.company.tests.tools import create_company
>>> from trytond.tests.tools import activate_modules, assertEqual
Activate modules::
>>> config = activate_modules('stock_inventory_location', create_company)
Get stock locations::
>>> Location = Model.get('stock.location')
>>> supplier_loc, = Location.find([('code', '=', 'SUP')])
>>> storage_loc, = Location.find([('code', '=', 'STO')])
>>> storage_loc2, = storage_loc.duplicate()
Create inventories::
>>> create = Wizard('stock.inventory.create')
>>> create.form.empty_quantity = 'keep'
>>> create.form.locations.extend(Location.find([('code', '=', 'STO')]))
>>> create.execute('create_')
>>> inventories, = create.actions
>>> len(inventories)
2
>>> assertEqual({i.location for i in inventories}, {storage_loc, storage_loc2})
>>> inventories[0].empty_quantity
'keep'

View File

@@ -0,0 +1,13 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.modules.company.tests import CompanyTestMixin
from trytond.tests.test_tryton import ModuleTestCase
class StockInventoryLocationTestCase(CompanyTestMixin, ModuleTestCase):
'Test StockInventoryLocation module'
module = 'stock_inventory_location'
del ModuleTestCase

View File

@@ -0,0 +1,8 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.tests.test_tryton import load_doc_tests
def load_tests(*args, **kwargs):
return load_doc_tests(__name__, __file__, *args, **kwargs)

View File

@@ -0,0 +1,15 @@
[tryton]
version=7.8.0
depends:
company
ir
product
stock
xml:
inventory.xml
[register]
model:
inventory.CreateInventoriesStart
wizard:
inventory.CreateInventories

View File

@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<form>
<label name="date"/>
<field name="date"/>
<label name="company"/>
<field name="company"/>
<label name="empty_quantity"/>
<field name="empty_quantity"/>
<label name="complete_lines"/>
<field name="complete_lines"/>
<field name="locations" colspan="4" view_ids="stock.location_view_list"/>
</form>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='company']" position="after">
<button name="complete_lines" tree_invisible="1"/>
<button name="confirm" multiple="1"/>
</xpath>
</data>