diff --git a/machine_manager/README.rst b/machine_manager/README.rst new file mode 100644 index 00000000000..a7390ef684c --- /dev/null +++ b/machine_manager/README.rst @@ -0,0 +1,27 @@ +Machine Manager +=============== + +This module is a vertical for Machinery management. + +Credits +======= + +Contributors +------------ +* Daniel Campos +* Pedro M. Baeza +* Ana Juaristi +* Oihane Crucelaegui + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/machine_manager/__init__.py b/machine_manager/__init__.py new file mode 100644 index 00000000000..ad6c8186c04 --- /dev/null +++ b/machine_manager/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +from . import models diff --git a/machine_manager/__openerp__.py b/machine_manager/__openerp__.py new file mode 100644 index 00000000000..948ab48277b --- /dev/null +++ b/machine_manager/__openerp__.py @@ -0,0 +1,50 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +{ + "name": "Machine Manager", + "version": "1.0", + "author": "OdooMRP team," + "AvanzOSC," + "Serv. Tecnol. Avanzados - Pedro M. Baeza," + "Odoo Community Association (OCA)", + "contributors": [ + "Daniel Campos ", + "Pedro M. Baeza ", + "Ana Juaristi ", + "Oihane Crucelaegui ", + ], + "website": "http://www.odoomrp.com", + "depends": [ + "stock", + "account", + "product_manufacturer", + ], + "category": "Machinery Management", + "data": [ + "views/machinery_view.xml", + "views/machine_model_view.xml", + "views/machinery_users_view.xml", + "views/product_view.xml", + "views/menus.xml", + "security/machinery_security.xml", + "security/ir.model.access.csv", + ], + "installable": True, + "application": True, +} diff --git a/machine_manager/i18n/es.po b/machine_manager/i18n/es.po new file mode 100644 index 00000000000..87e8a63109b --- /dev/null +++ b/machine_manager/i18n/es.po @@ -0,0 +1,529 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * machine_manager +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-08 18:13+0000\n" +"PO-Revision-Date: 2015-06-08 18:13+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "(Preventive) Maintenance" +msgstr "Mantenimiento (Preventivo)" + +#. module: machine_manager +#: field:machinery,warrexpcy:0 +msgid "(or) cycles" +msgstr "(o) ciclos" + +#. module: machine_manager +#: selection:machinery,status:0 +msgid "Active" +msgstr "Activo" + +#. module: machine_manager +#: field:machinery,actcycles:0 +msgid "Actual Cycles" +msgstr "Ciclos actuales" + +#. module: machine_manager +#: field:machinery,ambit:0 +msgid "Ambit" +msgstr "Ámbito" + +#. module: machine_manager +#: field:machinery,assetacc:0 +msgid "Asset Account" +msgstr "Cuenta de activo" + +#. module: machine_manager +#: field:machinery,product:0 +msgid "Associated product" +msgstr "Producto asociado" + +#. module: machine_manager +#: field:machinery,bcyl:0 +msgid "Base Cycles" +msgstr "Ciclos base" + +#. module: machine_manager +#: selection:machinery,primarymeter:0 +msgid "Calendar" +msgstr "Calendario" + +#. module: machine_manager +#: field:product.template,machine_ok:0 +msgid "Can be a Machine" +msgstr "Puede ser una máquina" + +#. module: machine_manager +#: field:machinery,company:0 +msgid "Company" +msgstr "Compañia" + +#. module: machine_manager +#: model:ir.ui.menu,name:machine_manager.menu_machinery_config +msgid "Configuration" +msgstr "Configuración" + +#. module: machine_manager +#: field:machine.model,create_uid:0 +#: field:machinery,create_uid:0 +#: field:machinery.users,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: machine_manager +#: field:machine.model,create_date:0 +#: field:machinery,create_date:0 +#: field:machinery.users,create_date:0 +msgid "Created on" +msgstr "Creado en" + +#. module: machine_manager +#: selection:machinery,primarymeter:0 +msgid "Cycles" +msgstr "Ciclos" + +#. module: machine_manager +#: field:machinery,purch_cycles:0 +msgid "Cycles at Purchase" +msgstr "Ciclos en compra" + +#. module: machine_manager +#: field:machinery,warrexp:0 +msgid "Date" +msgstr "Fecha" + +#. module: machine_manager +#: help:machinery,bdate:0 +msgid "Date on which the cycles is recorded" +msgstr "Fecha de grabación del registro" + +#. module: machine_manager +#: field:machinery,deprecperiod:0 +msgid "Depr. period" +msgstr "Periodo de depreciación" + +#. module: machine_manager +#: field:machinery,depracc:0 +msgid "Depreciation Account" +msgstr "Cuenta de depreciación" + +#. module: machine_manager +#: field:machinery,deprecperc:0 +msgid "Depreciation in %" +msgstr "Depreciación %" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Details" +msgstr "Detalles" + +#. module: machine_manager +#: help:product.template,machine_ok:0 +msgid "Determines if the product is related with a machine." +msgstr "Determina si el producto está relacionado con una máquina." + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Document reference" +msgstr "Documento" + +#. module: machine_manager +#: field:machinery,enrolldate:0 +msgid "Enrollment date" +msgstr "Fecha entrada en servicio" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Expiration" +msgstr "Caducidad" + +#. module: machine_manager +#: help:machinery,warrexpcy:0 +msgid "Expiry cycles for warranty of product" +msgstr "Ciclos en los que expira la garantía" + +#. module: machine_manager +#: help:machinery,warrexp:0 +msgid "Expiry date for warranty of product" +msgstr "Fecha en la que expira la garantía" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Financial Details" +msgstr "Detalles financieros" + +#. module: machine_manager +#: field:machinery,frame:0 +msgid "Frame Number" +msgstr "Número Bastidor" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +msgid "Group By" +msgstr "Group By" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Half Yearly" +msgstr "Semestral" + +#. module: machine_manager +#: field:machinery.users,end_date:0 +msgid "Homologation End Date" +msgstr "Fecha fin homologación" + +#. module: machine_manager +#: field:machinery.users,start_date:0 +msgid "Homologation Start Date" +msgstr "Fecha inicio homologación" + +#. module: machine_manager +#: selection:machinery,primarymeter:0 +msgid "Hour Meter" +msgstr "Por hora" + +#. module: machine_manager +#: field:machine.model,id:0 +#: field:machinery,id:0 +#: field:machinery.users,id:0 +msgid "ID" +msgstr "ID" + +#. module: machine_manager +#: selection:machinery,status:0 +msgid "Inactive" +msgstr "Inactivo" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Insurance" +msgstr "Seguro" + +#. module: machine_manager +#: field:machinery,insurance:0 +msgid "Insurance Name" +msgstr "Aseguradora" + +#. module: machine_manager +#: selection:machinery,ambit:0 +msgid "International" +msgstr "Internacional" + +#. module: machine_manager +#: field:machine.model,write_uid:0 +#: field:machinery,write_uid:0 +#: field:machinery.users,write_uid:0 +msgid "Last Updated by" +msgstr "Último en actualizar" + +#. module: machine_manager +#: field:machine.model,write_date:0 +#: field:machinery,write_date:0 +#: field:machinery.users,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización" + +#. module: machine_manager +#: help:machinery,bcyl:0 +msgid "Last recorded cycles" +msgstr "Último registro de ciclos" + +#. module: machine_manager +#: selection:machinery,ownership:0 +msgid "Lease" +msgstr "Arrendamiento" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +#: field:machinery,license_document:0 +msgid "License Document" +msgstr "Documento de Licencia" + +#. module: machine_manager +#: field:machinery,license_document_expiration:0 +msgid "License Document Expiration" +msgstr "Caducidad" + +#. module: machine_manager +#: selection:machinery,ambit:0 +msgid "Local" +msgstr "Local" + +#. module: machine_manager +#: field:machinery,mac:0 +msgid "MAC Address" +msgstr "Dirección MAC" + +#. module: machine_manager +#: field:machinery.users,machine:0 +msgid "Machine" +msgstr "Máquina" + +#. module: machine_manager +#: model:ir.actions.act_window,name:machine_manager.action_machine_model +msgid "Machine Model" +msgstr "Modelo máquina" + +#. module: machine_manager +#: model:ir.ui.menu,name:machine_manager.menu_machine_models +msgid "Machine Models" +msgstr "Modelos máquina" + +#. module: machine_manager +#: field:machinery,name:0 +msgid "Machine Name" +msgstr "Nombre máquina" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +#: field:machinery,users:0 +#: view:machinery.users:machine_manager.machine_user_form +#: view:machinery.users:machine_manager.machine_user_tree +msgid "Machine Users" +msgstr "Usuarios máquina" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_machine_model +msgid "Machine model" +msgstr "Modelo máquina" + +#. module: machine_manager +#: field:machinery,policy:0 +msgid "Machine policy" +msgstr "Póliza máquina" + +#. module: machine_manager +#: help:machinery,purch_date:0 +msgid "Machine's date of purchase" +msgstr "Fecha de compra de la máquina" + +#. module: machine_manager +#: model:ir.ui.menu,name:machine_manager.menu_machine_manager +msgid "Machinery" +msgstr "Maquinaria" + +#. module: machine_manager +#: model:ir.module.category,name:machine_manager.module_machinery_category +msgid "Machinery Management" +msgstr "Gestión de Maquinaria" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +msgid "Machinery Search" +msgstr "Machinery Search" + +#. module: machine_manager +#: model:ir.actions.act_window,name:machine_manager.action_machine +#: model:ir.actions.act_window,name:machine_manager.action_machine_user +#: model:ir.ui.menu,name:machine_manager.menu_machines +#: view:machinery:machine_manager.machine_form +#: view:machinery:machine_manager.machine_tree +#: field:res.users,machines:0 +msgid "Machines" +msgstr "Máquinas" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_machinery +msgid "Manage your machines" +msgstr "Administre sus máquinas" + +#. module: machine_manager +#: model:res.groups,name:machine_manager.group_machine_manager +msgid "Manager" +msgstr "Responsable" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Manufacturer" +msgstr "Fabricante" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Miscellaneous" +msgstr "Diverso" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,model:0 +msgid "Model" +msgstr "Modelo" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Monthly" +msgstr "Mensual" + +#. module: machine_manager +#: field:machine.model,name:0 +msgid "Name" +msgstr "Nombre" + +#. module: machine_manager +#: selection:machinery,ambit:0 +msgid "National" +msgstr "Nacional" + +#. module: machine_manager +#: selection:machinery,status:0 +msgid "Out of Service" +msgstr "Fuera de servicio" + +#. module: machine_manager +#: selection:machinery,ownership:0 +msgid "Own" +msgstr "Propietario" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,ownership:0 +msgid "Ownership" +msgstr "Propiedad" + +#. module: machine_manager +#: field:machinery,phone:0 +msgid "Phone number" +msgstr "Número de tel." + +#. module: machine_manager +#: field:machinery,power:0 +msgid "Power (Kw)" +msgstr "Potencia (Kw)" + +#. module: machine_manager +#: field:machinery,primarymeter:0 +msgid "Primary Meter" +msgstr "Medidor primario" + +#. module: machine_manager +#: field:machinery,serial:0 +#: field:machinery,serial_char:0 +msgid "Product Serial #" +msgstr "Número serie producto" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_product_template +msgid "Product Template" +msgstr "Plantilla producto" + +#. module: machine_manager +#: field:machinery,purch_date:0 +msgid "Purchase Date" +msgstr "Fecha compra" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Purchase Info" +msgstr "Info compra" + +#. module: machine_manager +#: field:machinery,purch_inv:0 +msgid "Purchase Invoice" +msgstr "Factura compra" + +#. module: machine_manager +#: field:machinery,purch_cost:0 +msgid "Purchase Value" +msgstr "Valor compra" + +#. module: machine_manager +#: field:machinery,purch_partner:0 +msgid "Purchased From" +msgstr "Comprado en" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Quarterly" +msgstr "Quatrimestral" + +#. module: machine_manager +#: field:machinery,bdate:0 +msgid "Record Date" +msgstr "Fecha de registro" + +#. module: machine_manager +#: selection:machinery,ownership:0 +msgid "Rental" +msgstr "Renting" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,status:0 +msgid "Status" +msgstr "Estado" + +#. module: machine_manager +#: field:machinery,location:0 +msgid "Stock Location" +msgstr "Localización de Stock" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +msgid "Stock location" +msgstr "Stock location" + +#. module: machine_manager +#: help:machinery,location:0 +msgid "This association is necessary if you want to make repair orders with the machine" +msgstr "Asociación necesaría si se desean realizar ordenes de reparación de máquinas." + +#. module: machine_manager +#: help:machinery,product:0 +msgid "This product will contain information about the machine such as the manufacturer." +msgstr "Este producto contendrá la información relativa a la maquina, p.e. el fabricante." + +#. module: machine_manager +#: field:machine.model,model_type:0 +#: view:machinery:machine_manager.machine_search +#: field:machinery,model_type:0 +msgid "Type" +msgstr "Tipo" + +#. module: machine_manager +#: field:machinery.users,m_user:0 +#: model:res.groups,name:machine_manager.group_machine_user +msgid "User" +msgstr "Usuario" + +#. module: machine_manager +#: sql_constraint:machinery.users:0 +msgid "User already defined for the machine" +msgstr "Usuario ya definido para la máquina." + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_res_users +msgid "Users" +msgstr "Usuarios" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Warranty Expiry" +msgstr "Vencimiento de la garantía" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,year:0 +msgid "Year" +msgstr "Año" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Yearly" +msgstr "Anual" + +#. module: machine_manager +#: view:machine.model:machine_manager.machine_model_tree +msgid "tree_string" +msgstr "tree_string" + diff --git a/machine_manager/i18n/machine_manager.pot b/machine_manager/i18n/machine_manager.pot new file mode 100644 index 00000000000..74165593cca --- /dev/null +++ b/machine_manager/i18n/machine_manager.pot @@ -0,0 +1,529 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * machine_manager +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-08 18:15+0000\n" +"PO-Revision-Date: 2015-06-08 18:15+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "(Preventive) Maintenance" +msgstr "" + +#. module: machine_manager +#: field:machinery,warrexpcy:0 +msgid "(or) cycles" +msgstr "" + +#. module: machine_manager +#: selection:machinery,status:0 +msgid "Active" +msgstr "" + +#. module: machine_manager +#: field:machinery,actcycles:0 +msgid "Actual Cycles" +msgstr "" + +#. module: machine_manager +#: field:machinery,ambit:0 +msgid "Ambit" +msgstr "" + +#. module: machine_manager +#: field:machinery,assetacc:0 +msgid "Asset Account" +msgstr "" + +#. module: machine_manager +#: field:machinery,product:0 +msgid "Associated product" +msgstr "" + +#. module: machine_manager +#: field:machinery,bcyl:0 +msgid "Base Cycles" +msgstr "" + +#. module: machine_manager +#: selection:machinery,primarymeter:0 +msgid "Calendar" +msgstr "" + +#. module: machine_manager +#: field:product.template,machine_ok:0 +msgid "Can be a Machine" +msgstr "" + +#. module: machine_manager +#: field:machinery,company:0 +msgid "Company" +msgstr "" + +#. module: machine_manager +#: model:ir.ui.menu,name:machine_manager.menu_machinery_config +msgid "Configuration" +msgstr "" + +#. module: machine_manager +#: field:machine.model,create_uid:0 +#: field:machinery,create_uid:0 +#: field:machinery.users,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: machine_manager +#: field:machine.model,create_date:0 +#: field:machinery,create_date:0 +#: field:machinery.users,create_date:0 +msgid "Created on" +msgstr "" + +#. module: machine_manager +#: selection:machinery,primarymeter:0 +msgid "Cycles" +msgstr "" + +#. module: machine_manager +#: field:machinery,purch_cycles:0 +msgid "Cycles at Purchase" +msgstr "" + +#. module: machine_manager +#: field:machinery,warrexp:0 +msgid "Date" +msgstr "" + +#. module: machine_manager +#: help:machinery,bdate:0 +msgid "Date on which the cycles is recorded" +msgstr "" + +#. module: machine_manager +#: field:machinery,deprecperiod:0 +msgid "Depr. period" +msgstr "" + +#. module: machine_manager +#: field:machinery,depracc:0 +msgid "Depreciation Account" +msgstr "" + +#. module: machine_manager +#: field:machinery,deprecperc:0 +msgid "Depreciation in %" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Details" +msgstr "" + +#. module: machine_manager +#: help:product.template,machine_ok:0 +msgid "Determines if the product is related with a machine." +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Document reference" +msgstr "" + +#. module: machine_manager +#: field:machinery,enrolldate:0 +msgid "Enrollment date" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Expiration" +msgstr "" + +#. module: machine_manager +#: help:machinery,warrexpcy:0 +msgid "Expiry cycles for warranty of product" +msgstr "" + +#. module: machine_manager +#: help:machinery,warrexp:0 +msgid "Expiry date for warranty of product" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Financial Details" +msgstr "" + +#. module: machine_manager +#: field:machinery,frame:0 +msgid "Frame Number" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +msgid "Group By" +msgstr "" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Half Yearly" +msgstr "" + +#. module: machine_manager +#: field:machinery.users,end_date:0 +msgid "Homologation End Date" +msgstr "" + +#. module: machine_manager +#: field:machinery.users,start_date:0 +msgid "Homologation Start Date" +msgstr "" + +#. module: machine_manager +#: selection:machinery,primarymeter:0 +msgid "Hour Meter" +msgstr "" + +#. module: machine_manager +#: field:machine.model,id:0 +#: field:machinery,id:0 +#: field:machinery.users,id:0 +msgid "ID" +msgstr "" + +#. module: machine_manager +#: selection:machinery,status:0 +msgid "Inactive" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Insurance" +msgstr "" + +#. module: machine_manager +#: field:machinery,insurance:0 +msgid "Insurance Name" +msgstr "" + +#. module: machine_manager +#: selection:machinery,ambit:0 +msgid "International" +msgstr "" + +#. module: machine_manager +#: field:machine.model,write_uid:0 +#: field:machinery,write_uid:0 +#: field:machinery.users,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: machine_manager +#: field:machine.model,write_date:0 +#: field:machinery,write_date:0 +#: field:machinery.users,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: machine_manager +#: help:machinery,bcyl:0 +msgid "Last recorded cycles" +msgstr "" + +#. module: machine_manager +#: selection:machinery,ownership:0 +msgid "Lease" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +#: field:machinery,license_document:0 +msgid "License Document" +msgstr "" + +#. module: machine_manager +#: field:machinery,license_document_expiration:0 +msgid "License Document Expiration" +msgstr "" + +#. module: machine_manager +#: selection:machinery,ambit:0 +msgid "Local" +msgstr "" + +#. module: machine_manager +#: field:machinery,mac:0 +msgid "MAC Address" +msgstr "" + +#. module: machine_manager +#: field:machinery.users,machine:0 +msgid "Machine" +msgstr "" + +#. module: machine_manager +#: model:ir.actions.act_window,name:machine_manager.action_machine_model +msgid "Machine Model" +msgstr "" + +#. module: machine_manager +#: model:ir.ui.menu,name:machine_manager.menu_machine_models +msgid "Machine Models" +msgstr "" + +#. module: machine_manager +#: field:machinery,name:0 +msgid "Machine Name" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +#: field:machinery,users:0 +#: view:machinery.users:machine_manager.machine_user_form +#: view:machinery.users:machine_manager.machine_user_tree +msgid "Machine Users" +msgstr "" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_machine_model +msgid "Machine model" +msgstr "" + +#. module: machine_manager +#: field:machinery,policy:0 +msgid "Machine policy" +msgstr "" + +#. module: machine_manager +#: help:machinery,purch_date:0 +msgid "Machine's date of purchase" +msgstr "" + +#. module: machine_manager +#: model:ir.ui.menu,name:machine_manager.menu_machine_manager +msgid "Machinery" +msgstr "" + +#. module: machine_manager +#: model:ir.module.category,name:machine_manager.module_machinery_category +msgid "Machinery Management" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +msgid "Machinery Search" +msgstr "" + +#. module: machine_manager +#: model:ir.actions.act_window,name:machine_manager.action_machine +#: model:ir.actions.act_window,name:machine_manager.action_machine_user +#: model:ir.ui.menu,name:machine_manager.menu_machines +#: view:machinery:machine_manager.machine_form +#: view:machinery:machine_manager.machine_tree +#: field:res.users,machines:0 +msgid "Machines" +msgstr "" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_machinery +msgid "Manage your machines" +msgstr "" + +#. module: machine_manager +#: model:res.groups,name:machine_manager.group_machine_manager +msgid "Manager" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Manufacturer" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Miscellaneous" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,model:0 +msgid "Model" +msgstr "" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Monthly" +msgstr "" + +#. module: machine_manager +#: field:machine.model,name:0 +msgid "Name" +msgstr "" + +#. module: machine_manager +#: selection:machinery,ambit:0 +msgid "National" +msgstr "" + +#. module: machine_manager +#: selection:machinery,status:0 +msgid "Out of Service" +msgstr "" + +#. module: machine_manager +#: selection:machinery,ownership:0 +msgid "Own" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,ownership:0 +msgid "Ownership" +msgstr "" + +#. module: machine_manager +#: field:machinery,phone:0 +msgid "Phone number" +msgstr "" + +#. module: machine_manager +#: field:machinery,power:0 +msgid "Power (Kw)" +msgstr "" + +#. module: machine_manager +#: field:machinery,primarymeter:0 +msgid "Primary Meter" +msgstr "" + +#. module: machine_manager +#: field:machinery,serial:0 +#: field:machinery,serial_char:0 +msgid "Product Serial #" +msgstr "" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_product_template +msgid "Product Template" +msgstr "" + +#. module: machine_manager +#: field:machinery,purch_date:0 +msgid "Purchase Date" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Purchase Info" +msgstr "" + +#. module: machine_manager +#: field:machinery,purch_inv:0 +msgid "Purchase Invoice" +msgstr "" + +#. module: machine_manager +#: field:machinery,purch_cost:0 +msgid "Purchase Value" +msgstr "" + +#. module: machine_manager +#: field:machinery,purch_partner:0 +msgid "Purchased From" +msgstr "" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Quarterly" +msgstr "" + +#. module: machine_manager +#: field:machinery,bdate:0 +msgid "Record Date" +msgstr "" + +#. module: machine_manager +#: selection:machinery,ownership:0 +msgid "Rental" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,status:0 +msgid "Status" +msgstr "" + +#. module: machine_manager +#: field:machinery,location:0 +msgid "Stock Location" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +msgid "Stock location" +msgstr "" + +#. module: machine_manager +#: help:machinery,location:0 +msgid "This association is necessary if you want to make repair orders with the machine" +msgstr "" + +#. module: machine_manager +#: help:machinery,product:0 +msgid "This product will contain information about the machine such as the manufacturer." +msgstr "" + +#. module: machine_manager +#: field:machine.model,model_type:0 +#: view:machinery:machine_manager.machine_search +#: field:machinery,model_type:0 +msgid "Type" +msgstr "" + +#. module: machine_manager +#: field:machinery.users,m_user:0 +#: model:res.groups,name:machine_manager.group_machine_user +msgid "User" +msgstr "" + +#. module: machine_manager +#: sql_constraint:machinery.users:0 +msgid "User already defined for the machine" +msgstr "" + +#. module: machine_manager +#: model:ir.model,name:machine_manager.model_res_users +msgid "Users" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_form +msgid "Warranty Expiry" +msgstr "" + +#. module: machine_manager +#: view:machinery:machine_manager.machine_search +#: field:machinery,year:0 +msgid "Year" +msgstr "" + +#. module: machine_manager +#: selection:machinery,deprecperiod:0 +msgid "Yearly" +msgstr "" + +#. module: machine_manager +#: view:machine.model:machine_manager.machine_model_tree +msgid "tree_string" +msgstr "" + diff --git a/machine_manager/models/__init__.py b/machine_manager/models/__init__.py new file mode 100644 index 00000000000..a7e303adee7 --- /dev/null +++ b/machine_manager/models/__init__.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +from . import product +from . import machine_model +from . import machinery +from . import res_users diff --git a/machine_manager/models/machine_model.py b/machine_manager/models/machine_model.py new file mode 100644 index 00000000000..d29b5a7b8d8 --- /dev/null +++ b/machine_manager/models/machine_model.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +from openerp import models, fields + + +class MachineModel(models.Model): + _name = 'machine.model' + _description = 'Machine model' + + name = fields.Char('Name') + model_type = fields.Char('Type') diff --git a/machine_manager/models/machinery.py b/machine_manager/models/machinery.py new file mode 100644 index 00000000000..882c30dbe2e --- /dev/null +++ b/machine_manager/models/machinery.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +from openerp import models, fields, _ + + +class Machinery(models.Model): + _name = "machinery" + _description = "Manage your machines" + + def _def_company(self): + return self.env.user.company_id.id + + name = fields.Char('Machine Name', required=True) + company = fields.Many2one('res.company', 'Company', required=True, + default=_def_company) + assetacc = fields.Many2one('account.account', string='Asset Account') + depracc = fields.Many2one('account.account', string='Depreciation Account') + year = fields.Char('Year') + model = fields.Char('Model') + product = fields.Many2one( + comodel_name='product.product', string='Associated product', + help="This product will contain information about the machine such as" + " the manufacturer.") + manufacturer = fields.Many2one( + comodel_name='res.partner', related='product.manufacturer', + readonly=True, help="Manufacturer is related to the associated product" + " defined for the machine.") + serial_char = fields.Char('Product Serial #') + serial = fields.Many2one('stock.production.lot', string='Product Serial #', + domain="[('product_id', '=', product)]") + model_type = fields.Many2one('machine.model', 'Type') + status = fields.Selection([('active', 'Active'), ('inactive', 'Inactive'), + ('outofservice', 'Out of Service')], + 'Status', required=True, default='active') + ownership = fields.Selection([('own', 'Own'), ('lease', 'Lease'), + ('rental', 'Rental')], + 'Ownership', default='own', required=True) + bcyl = fields.Float('Base Cycles', digits=(16, 3), + help="Last recorded cycles") + bdate = fields.Date('Record Date', + help="Date on which the cycles is recorded") + purch_date = fields.Date('Purchase Date', + help="Machine's date of purchase") + purch_cost = fields.Float('Purchase Value', digits=(16, 2)) + purch_partner = fields.Many2one('res.partner', 'Purchased From') + purch_inv = fields.Many2one('account.invoice', string='Purchase Invoice') + purch_cycles = fields.Integer('Cycles at Purchase') + actcycles = fields.Integer('Actual Cycles') + deprecperc = fields.Float('Depreciation in %', digits=(10, 2)) + deprecperiod = fields.Selection([('monthly', 'Monthly'), + ('quarterly', 'Quarterly'), + ('halfyearly', 'Half Yearly'), + ('annual', 'Yearly')], 'Depr. period', + default='annual', required=True) + primarymeter = fields.Selection([('calendar', 'Calendar'), + ('cycles', 'Cycles'), + ('hourmeter', 'Hour Meter')], + 'Primary Meter', default='cycles', + required=True) + warrexp = fields.Date('Date', help="Expiry date for warranty of product") + warrexpcy = fields.Integer('(or) cycles', + help="Expiry cycles for warranty of product") + location = fields.Many2one('stock.location', 'Stock Location', + help="This association is necessary if you want" + " to make repair orders with the machine") + enrolldate = fields.Date('Enrollment date', required=True, + default=lambda + self: fields.Date.context_today(self)) + ambit = fields.Selection([('local', 'Local'), ('national', 'National'), + ('international', 'International')], + 'Ambit', default='local') + license_document = fields.Char('License Document') + license_document_expiration = fields.Date('License Document Expiration') + frame = fields.Char('Frame Number') + phone = fields.Char('Phone number') + mac = fields.Char('MAC Address') + insurance = fields.Char('Insurance Name') + policy = fields.Char('Machine policy') + users = fields.One2many('machinery.users', 'machine', 'Machine Users') + power = fields.Char('Power (Kw)') + + +class MachineryUsers(models.Model): + _name = 'machinery.users' + + m_user = fields.Many2one('res.users', 'User') + machine = fields.Many2one('machinery', 'Machine') + start_date = fields.Date('Homologation Start Date') + end_date = fields.Date('Homologation End Date') + + _sql_constraints = [ + ('uniq_machine_user', 'unique(machine, m_user)', + _('User already defined for the machine')) + ] diff --git a/machine_manager/models/product.py b/machine_manager/models/product.py new file mode 100644 index 00000000000..332b0cbe781 --- /dev/null +++ b/machine_manager/models/product.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +from openerp import models, fields + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + machine_ok = fields.Boolean('Can be a Machine', help="Determines if the " + "product is related with a machine.") diff --git a/machine_manager/models/res_users.py b/machine_manager/models/res_users.py new file mode 100644 index 00000000000..ad33a7b023f --- /dev/null +++ b/machine_manager/models/res_users.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## + +from openerp import models, fields + + +class ResUsers(models.Model): + _inherit = 'res.users' + + machines = fields.Many2many('machinery', 'machine_user_rel', 'user_id', + 'machine_id', 'Machines') diff --git a/machine_manager/security/ir.model.access.csv b/machine_manager/security/ir.model.access.csv new file mode 100644 index 00000000000..d202df1f39f --- /dev/null +++ b/machine_manager/security/ir.model.access.csv @@ -0,0 +1,7 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_machine_model_user,access_machine_model_user,model_machine_model,group_machine_user,1,0,0,0 +access_machine_model_manager,access_machine_model_manager,model_machine_model,group_machine_manager,1,1,1,1 +access_machinery_user,access_machinery_user,model_machinery,group_machine_user,1,0,0,0 +access_machinery_manager,access_machinery_manager,model_machinery,group_machine_manager,1,1,1,1 +access_machinery_users_user,access_machinery_users_user,model_machinery_users,group_machine_user,1,0,0,0 +access_machinery_users_manager,access_machinery_users_manager,model_machinery_users,group_machine_manager,1,1,1,1 diff --git a/machine_manager/security/machinery_security.xml b/machine_manager/security/machinery_security.xml new file mode 100644 index 00000000000..0a4c358d1ca --- /dev/null +++ b/machine_manager/security/machinery_security.xml @@ -0,0 +1,19 @@ + + + + + Machinery Management + 20 + + + User + + + + Manager + + + + + + diff --git a/machine_manager/static/description/icon.png b/machine_manager/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/machine_manager/static/description/icon.png differ diff --git a/machine_manager/static/description/index.html b/machine_manager/static/description/index.html new file mode 100644 index 00000000000..a6e2e4d5985 --- /dev/null +++ b/machine_manager/static/description/index.html @@ -0,0 +1,46 @@ +
+
+
+

Machine Manager

+

This module allows you to manage your machines.

+
+
+
+ +
+
+
+

Screenshots

+

+

+

+
+
+
+ +
+
+
+

Credits

+
+
+

Contributors

+ +
+
+

Maintainer

+

+ This module is maintained by the OCA.
+ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
+ To contribute to this module, please visit http://odoo-community.org.
+ +

+
+
+
diff --git a/machine_manager/static/description/screenshot-machine-models.png b/machine_manager/static/description/screenshot-machine-models.png new file mode 100644 index 00000000000..5a55f4749a9 Binary files /dev/null and b/machine_manager/static/description/screenshot-machine-models.png differ diff --git a/machine_manager/static/description/screenshot-machines-tree.png b/machine_manager/static/description/screenshot-machines-tree.png new file mode 100644 index 00000000000..e3f23926407 Binary files /dev/null and b/machine_manager/static/description/screenshot-machines-tree.png differ diff --git a/machine_manager/static/description/screenshots-machine-form.png b/machine_manager/static/description/screenshots-machine-form.png new file mode 100644 index 00000000000..a26aca28b6c Binary files /dev/null and b/machine_manager/static/description/screenshots-machine-form.png differ diff --git a/machine_manager/views/machine_model_view.xml b/machine_manager/views/machine_model_view.xml new file mode 100644 index 00000000000..5aff63da50f --- /dev/null +++ b/machine_manager/views/machine_model_view.xml @@ -0,0 +1,25 @@ + + + + + machinemodel.tree.view + machine.model + tree + + + + + + + + + + Machine Model + ir.actions.act_window + machine.model + form + tree + + + + diff --git a/machine_manager/views/machinery_users_view.xml b/machine_manager/views/machinery_users_view.xml new file mode 100644 index 00000000000..38efa0bd749 --- /dev/null +++ b/machine_manager/views/machinery_users_view.xml @@ -0,0 +1,39 @@ + + + + + machine.user.form.view + machinery.users + form + +
+ + + + + +
+
+
+ + + machine.user.tree.view + machinery.users + tree + + + + + + + + + + + Machines + machinery.users + form + tree + +
+
diff --git a/machine_manager/views/machinery_view.xml b/machine_manager/views/machinery_view.xml new file mode 100644 index 00000000000..fb437da8f6c --- /dev/null +++ b/machine_manager/views/machinery_view.xml @@ -0,0 +1,140 @@ + + + + + + machines.form + machinery + form + +
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + machine.tree + machinery + tree + + + + + + + + + + + + + + Machine - Search + machinery + + + + + + + + + + + + + + + + + + Machines + machinery + form + tree,form + +
+
diff --git a/machine_manager/views/menus.xml b/machine_manager/views/menus.xml new file mode 100644 index 00000000000..3bdb9cc5408 --- /dev/null +++ b/machine_manager/views/menus.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/machine_manager/views/product_view.xml b/machine_manager/views/product_view.xml new file mode 100644 index 00000000000..4489219999b --- /dev/null +++ b/machine_manager/views/product_view.xml @@ -0,0 +1,15 @@ + + + + + product.normal.product.form.inh + product.template + + + + + + + + + diff --git a/oca_dependencies.txt b/oca_dependencies.txt new file mode 100644 index 00000000000..0f49141ed36 --- /dev/null +++ b/oca_dependencies.txt @@ -0,0 +1,3 @@ +# List the OCA project dependencies, one per line +# Add a repository url and branch if you need a forked version +product-attribute \ No newline at end of file