trytond_stock_inventory_location-4.6.0/0000755000175000017500000000000013175632220017745 5ustar cedced00000000000000trytond_stock_inventory_location-4.6.0/locale/0000755000175000017500000000000013175632220021204 5ustar cedced00000000000000trytond_stock_inventory_location-4.6.0/locale/fr.po0000644000175000017500000000201213175204322022144 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Date" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Emplacements" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Pertes et surplus" msgctxt "model:ir.action,name:wizard_create_inventory" msgid "Create Inventories" msgstr "Créer des inventaires" msgctxt "model:ir.ui.menu,name:menu_create_inventory" msgid "Create Inventories" msgstr "Créer des inventaires" msgctxt "model:stock.inventory.create.start,name:" msgid "Create Inventories" msgstr "Créer des inventaires" 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" trytond_stock_inventory_location-4.6.0/locale/lo.po0000644000175000017500000000222713175204322022157 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "ວັນທີ" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ເລກລໍາດັບ" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "ສະຖານທີ່" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "ສ້າງການກວດນັບ" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "ສ້າງ" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "ຍົກເລີກ" trytond_stock_inventory_location-4.6.0/locale/zh_CN.po0000644000175000017500000000170213175204322022543 0ustar cedced00000000000000# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" msgctxt "field:stock.inventory.create.start,company:" msgid "Company" msgstr "" #, fuzzy msgctxt "field:stock.inventory.create.start,date:" msgid "Date" msgstr "日期格式" #, fuzzy msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "编号" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "" #, fuzzy msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "取消" trytond_stock_inventory_location-4.6.0/locale/ca.po0000644000175000017500000000175613175204322022136 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Data" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Ubicacions" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Perdut-trobat" 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,name:" msgid "Create Inventories" msgstr "Crea inventaris" 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" trytond_stock_inventory_location-4.6.0/locale/pl.po0000644000175000017500000000176413175204322022165 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Data" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Lokalizacje" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Zgubione i znalezione" 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 "" #, fuzzy msgctxt "model:stock.inventory.create.start,name:" msgid "Create Inventories" msgstr "Create Inventories" 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" trytond_stock_inventory_location-4.6.0/locale/ru.po0000644000175000017500000000211613175204322022170 0ustar cedced00000000000000# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:stock.inventory.create.start,company:" msgid "Company" msgstr "Учет.орг." #, fuzzy msgctxt "field:stock.inventory.create.start,date:" msgid "Date" msgstr "Дата" #, fuzzy msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" #, fuzzy msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Местоположения" #, fuzzy msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" 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 "Отменить" trytond_stock_inventory_location-4.6.0/locale/cs.po0000644000175000017500000000161713175204322022154 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "" trytond_stock_inventory_location-4.6.0/locale/sl.po0000644000175000017500000000176713175204322022173 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Datum" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Lokacije" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Izgubljeno/najdeno" msgctxt "model:ir.action,name:wizard_create_inventory" msgid "Create Inventories" msgstr "Izdelava popisov" msgctxt "model:ir.ui.menu,name:menu_create_inventory" msgid "Create Inventories" msgstr "Izdelava popisov" msgctxt "model:stock.inventory.create.start,name:" msgid "Create Inventories" msgstr "Izdelava popisov" 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" trytond_stock_inventory_location-4.6.0/locale/es_419.po0000644000175000017500000000164313175204322022552 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Perdido y encontrado" 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,name:" msgid "Create Inventories" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "" trytond_stock_inventory_location-4.6.0/locale/lt.po0000644000175000017500000000161713175204322022166 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "" trytond_stock_inventory_location-4.6.0/locale/pt_BR.po0000644000175000017500000000177713175204322022564 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Data" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Localizações" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Achados e perdidos" msgctxt "model:ir.action,name:wizard_create_inventory" msgid "Create Inventories" msgstr "Criar inventários" msgctxt "model:ir.ui.menu,name:menu_create_inventory" msgid "Create Inventories" msgstr "Criar inventários" msgctxt "model:stock.inventory.create.start,name:" msgid "Create Inventories" msgstr "Criar inventários" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "Criar" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "Cancelar" trytond_stock_inventory_location-4.6.0/locale/nl.po0000644000175000017500000000173613175204322022162 0ustar cedced00000000000000# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:stock.inventory.create.start,company:" msgid "Company" msgstr "Bedrijf" #, fuzzy msgctxt "field:stock.inventory.create.start,date:" msgid "Date" msgstr "Vervaldatum" #, fuzzy msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "" #, fuzzy msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "Maken" #, fuzzy msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "Annuleren" trytond_stock_inventory_location-4.6.0/locale/it_IT.po0000644000175000017500000000175313175204322022560 0ustar cedced00000000000000# msgid "" msgstr "Content-Type: text/plain; charset=utf-8\n" #, fuzzy msgctxt "field:stock.inventory.create.start,company:" msgid "Company" msgstr "Azienda" #, fuzzy msgctxt "field:stock.inventory.create.start,date:" msgid "Date" msgstr "Data" #, fuzzy msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "Movimento contabile" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "" #, fuzzy msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "Creazione" #, fuzzy msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "Cancella" trytond_stock_inventory_location-4.6.0/locale/hu_HU.po0000644000175000017500000000206013175204322022550 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Dátum" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Raktárhely" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Készlet különbség" msgctxt "model:ir.action,name:wizard_create_inventory" msgid "Create Inventories" msgstr "Raktárkészlet meghatározása" msgctxt "model:ir.ui.menu,name:menu_create_inventory" msgid "Create Inventories" msgstr "Raktárkészlet meghatározása" msgctxt "model:stock.inventory.create.start,name:" msgid "Create Inventories" msgstr "Raktárkészlet meghatározása" 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" trytond_stock_inventory_location-4.6.0/locale/de.po0000644000175000017500000000202513175204322022131 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Datum" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Lagerorte" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Inventurdifferenz" 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,name:" msgid "Create Inventories" msgstr "Lagerbestände ermitteln" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "Erstellen" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "Abbrechen" trytond_stock_inventory_location-4.6.0/locale/ja_JP.po0000644000175000017500000000171613175204322022532 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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" #, fuzzy msgctxt "model:stock.inventory.create.start,name:" msgid "Create Inventories" msgstr "Create Inventories" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "" trytond_stock_inventory_location-4.6.0/locale/es.po0000644000175000017500000000177213175204322022160 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Fecha" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Ubicaciones" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" msgstr "Perdido-encontrado" 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,name:" msgid "Create Inventories" msgstr "Crear inventarios" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "Crear" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "Cancelar" trytond_stock_inventory_location-4.6.0/locale/bg.po0000644000175000017500000000223513175204322022134 0ustar cedced00000000000000# 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,date:" msgid "Date" msgstr "Дата" msgctxt "field:stock.inventory.create.start,id:" msgid "ID" msgstr "ID" msgctxt "field:stock.inventory.create.start,locations:" msgid "Locations" msgstr "Местонахождения" msgctxt "field:stock.inventory.create.start,lost_found:" msgid "Lost and Found" 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,name:" msgid "Create Inventories" msgstr "Създаване на инвентаризация" msgctxt "wizard_button:stock.inventory.create,start,create_:" msgid "Create" msgstr "Създаване" msgctxt "wizard_button:stock.inventory.create,start,end:" msgid "Cancel" msgstr "Отказ" trytond_stock_inventory_location-4.6.0/doc/0000755000175000017500000000000013175632220020512 5ustar cedced00000000000000trytond_stock_inventory_location-4.6.0/doc/index.rst0000644000175000017500000000052711605012555022356 0ustar cedced00000000000000Stock Inventory Location Module ############################### The Stock Inventory Location Module add a new wizard *Create Inventories* under the *Inventories* sub-menu. This wizard first asks the user to select the locations, the products and the categories of product that he wants to create inventories for and opens them in a new tab. trytond_stock_inventory_location-4.6.0/inventory.py0000644000175000017500000000437712437324624022375 0ustar cedced00000000000000# 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.wizard import Wizard, StateView, StateAction, Button from trytond.transaction import Transaction from trytond.pool import Pool __all__ = ['CreateInventoriesStart', 'CreateInventories'] class CreateInventoriesStart(ModelView): 'Create Inventories' __name__ = 'stock.inventory.create.start' date = fields.Date('Date', required=True) lost_found = fields.Many2One( 'stock.location', 'Lost and Found', required=True, domain=[('type', '=', 'lost_found')]) company = fields.Many2One('company.company', 'Company', required=True, select=True) locations = fields.Many2Many('stock.location', None, None, 'Locations', required=True, domain=[('type', '=', 'storage')]) @classmethod def default_lost_found(cls): Location = Pool().get('stock.location') locations = Location.search(cls.lost_found.domain) if len(locations) == 1: return locations[0].id @staticmethod def default_company(): return Transaction().context.get('company') class CreateInventories(Wizard): 'Create Inventories' __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 do_create_(self, action): Inventory = Pool().get('stock.inventory') to_create = [] for location in self.start.locations: to_create.append({ 'location': location.id, 'date': self.start.date, 'lost_found': self.start.lost_found.id, 'company': self.start.company.id, }) if to_create: inventories = Inventory.create(to_create) Inventory.complete_lines(inventories) data = {'res_id': [i.id for i in inventories]} return action, data trytond_stock_inventory_location-4.6.0/setup.py0000644000175000017500000001000113173464101021446 0ustar cedced00000000000000#!/usr/bin/env python # 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 setuptools import setup import re import os import io try: from configparser import ConfigParser except ImportError: from ConfigParser import ConfigParser def read(fname): return io.open( os.path.join(os.path.dirname(__file__), fname), 'r', encoding='utf-8').read() def get_require_version(name): if minor_version % 2: require = '%s >= %s.%s.dev0, < %s.%s' else: require = '%s >= %s.%s, < %s.%s' require %= (name, major_version, minor_version, major_version, minor_version + 1) return require config = ConfigParser() config.readfp(open('tryton.cfg')) info = dict(config.items('tryton')) for key in ('depends', 'extras_depend', 'xml'): if key in info: info[key] = info[key].strip().splitlines() version = info.get('version', '0.0.1') major_version, minor_version, _ = version.split('.', 2) major_version = int(major_version) minor_version = int(minor_version) name = 'trytond_stock_inventory_location' download_url = 'http://downloads.tryton.org/%s.%s/' % ( major_version, minor_version) if minor_version % 2: version = '%s.%s.dev0' % (major_version, minor_version) download_url = ( 'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % ( name[8:], name, version)) requires = [] for dep in info.get('depends', []): if not re.match(r'(ir|res)(\W|$)', dep): requires.append(get_require_version('trytond_%s' % dep)) requires.append(get_require_version('trytond')) setup(name=name, version=version, description='Tryton module to create inventories by locations', long_description=read('README'), author='Tryton', author_email='issue_tracker@tryton.org', url='http://www.tryton.org/', download_url=download_url, keywords='tryton inventory location', package_dir={'trytond.modules.stock_inventory_location': '.'}, packages=[ 'trytond.modules.stock_inventory_location', 'trytond.modules.stock_inventory_location.tests', ], package_data={ 'trytond.modules.stock_inventory_location': (info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Plugins', 'Framework :: Tryton', 'Intended Audience :: Developers', 'Intended Audience :: Financial and Insurance Industry', 'Intended Audience :: Legal Industry', 'Intended Audience :: Manufacturing', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Natural Language :: Bulgarian', 'Natural Language :: Catalan', 'Natural Language :: Chinese (Simplified)', 'Natural Language :: Czech', 'Natural Language :: Dutch', 'Natural Language :: English', 'Natural Language :: French', 'Natural Language :: German', 'Natural Language :: Hungarian', 'Natural Language :: Italian', 'Natural Language :: Polish', 'Natural Language :: Portuguese (Brazilian)', 'Natural Language :: Russian', 'Natural Language :: Slovenian', 'Natural Language :: Spanish', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Office/Business', ], license='GPL-3', install_requires=requires, zip_safe=False, entry_points=""" [trytond.modules] stock_inventory_location = trytond.modules.stock_inventory_location """, test_suite='tests', test_loader='trytond.test_loader:Loader', use_2to3=True, ) trytond_stock_inventory_location-4.6.0/MANIFEST.in0000644000175000017500000000025112306604623021502 0ustar cedced00000000000000include INSTALL include README include COPYRIGHT include CHANGELOG include LICENSE include tryton.cfg include *.xml include view/*.xml include locale/*.po include doc/* trytond_stock_inventory_location-4.6.0/view/0000755000175000017500000000000013175632220020717 5ustar cedced00000000000000trytond_stock_inventory_location-4.6.0/view/inventory_create_start_form.xml0000644000175000017500000000066012736712751027275 0ustar cedced00000000000000