From 6fe9c25c94e7cd171fd43432b7c605b1dd506558 Mon Sep 17 00:00:00 2001 From: Valentin Chemiere Date: Wed, 17 Jun 2015 12:14:35 +0200 Subject: [PATCH 01/20] Add file import/export --- attachment_metadata/README.rst | 51 +++++++++++++++++++ attachment_metadata/__init__.py | 23 +++++++++ attachment_metadata/__openerp__.py | 43 ++++++++++++++++ attachment_metadata/attachment.py | 47 +++++++++++++++++ attachment_metadata/attachment_view.xml | 17 +++++++ .../security/ir.model.access.csv | 2 + 6 files changed, 183 insertions(+) create mode 100644 attachment_metadata/README.rst create mode 100644 attachment_metadata/__init__.py create mode 100644 attachment_metadata/__openerp__.py create mode 100644 attachment_metadata/attachment.py create mode 100644 attachment_metadata/attachment_view.xml create mode 100644 attachment_metadata/security/ir.model.access.csv diff --git a/attachment_metadata/README.rst b/attachment_metadata/README.rst new file mode 100644 index 000000000..f9640f29e --- /dev/null +++ b/attachment_metadata/README.rst @@ -0,0 +1,51 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License + +Attachment Metadata +====================== + +This module was written to extend the functionality of ir.attachment + +Installation +============ + +Installable without any requirements + +Usage +===== + +THe module just add some field to ir.attachment + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 + +Known issues / Roadmap +====================== + +Credits +======= + +* Joel Grand-Guillaume Camptocamp +* initOS +* Valentin CHEMIERE + +Contributors +------------ + +* Sebastien BEAU + +Maintainer +---------- + +* Valentin CHEMIERE + +.. 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/attachment_metadata/__init__.py b/attachment_metadata/__init__.py new file mode 100644 index 000000000..3e53cd607 --- /dev/null +++ b/attachment_metadata/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Module for OpenERP +# Copyright (C) 2015 Akretion (http://www.akretion.com). +# @author Valentin CHEMIERE +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### + +from . import attachment diff --git a/attachment_metadata/__openerp__.py b/attachment_metadata/__openerp__.py new file mode 100644 index 000000000..232b1f84a --- /dev/null +++ b/attachment_metadata/__openerp__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Module for OpenERP +# Copyright (C) 2015 Akretion (http://www.akretion.com). +# @author Valentin CHEMIERE +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### + +{'name': 'attachment_metadata', + 'version': '0.0.1', + 'author': 'Akretion', + 'website': 'www.akretion.com', + 'license': 'AGPL-3', + 'category': 'Generic Modules', + 'description': """ + Add some useful field to ir.attachment object like: + internal and external hash for coherence verification + """, + 'depends': [ + 'base', + 'mail' + ], + 'data': [ + 'attachment_view.xml', + 'security/ir.model.access.csv', + ], + 'installable': True, + 'application': False, + } diff --git a/attachment_metadata/attachment.py b/attachment_metadata/attachment.py new file mode 100644 index 000000000..b75ff47a6 --- /dev/null +++ b/attachment_metadata/attachment.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Module for OpenERP +# Copyright 2011-2012 Camptocamp SA +# @author: Joel Grand-Guillaume +# Copyright (C) 2015 Akretion (http://www.akretion.com). +# @author Valentin CHEMIERE +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### + +from openerp import models, fields, api, _ +from openerp.exceptions import Warning +import hashlib +from base64 import b64decode + + +class IrAttachmentMetadata(models.Model): + _name = 'ir.attachment.metadata' + _inherits = {'ir.attachment': 'attachment_id'} + + internal_hash = fields.Char(store=True, compute='_compute_hash') + external_hash = fields.Char() + attachment_id = fields.Many2one('ir.attachment', required=True, + ondelete='cascade') + + @api.depends('datas', 'external_hash') + def _compute_hash(self): + if self.datas: + self.internal_hash = hashlib.md5(b64decode(self.datas)).hexdigest() + if self.external_hash and self.internal_hash != self.external_hash: + raise Warning(_('File corrupted'), + _("Something was wrong with the retreived file, " + "please relaunch the task.")) diff --git a/attachment_metadata/attachment_view.xml b/attachment_metadata/attachment_view.xml new file mode 100644 index 000000000..a95535596 --- /dev/null +++ b/attachment_metadata/attachment_view.xml @@ -0,0 +1,17 @@ + + + + + + ir.attachment.metadata + + + + + + + + + + + diff --git a/attachment_metadata/security/ir.model.access.csv b/attachment_metadata/security/ir.model.access.csv new file mode 100644 index 000000000..9b01638c4 --- /dev/null +++ b/attachment_metadata/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_attachment_metadata_user,ir.attachment.metadata.user,model_ir_attachment_metadata,base.group_user,1,0,0,0 From 25c9e325285cb8adda3b29a7d1af4b9eab31ab06 Mon Sep 17 00:00:00 2001 From: David Beal Date: Tue, 23 Feb 2016 21:51:34 +0100 Subject: [PATCH 02/20] [FIX] python header in akretion modules --- attachment_metadata/__init__.py | 22 ------------------- attachment_metadata/__openerp__.py | 24 +++------------------ attachment_metadata/attachment.py | 34 +++++++----------------------- 3 files changed, 11 insertions(+), 69 deletions(-) diff --git a/attachment_metadata/__init__.py b/attachment_metadata/__init__.py index 3e53cd607..c14c86359 100644 --- a/attachment_metadata/__init__.py +++ b/attachment_metadata/__init__.py @@ -1,23 +1 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Module for OpenERP -# Copyright (C) 2015 Akretion (http://www.akretion.com). -# @author Valentin CHEMIERE -# -# 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################### - from . import attachment diff --git a/attachment_metadata/__openerp__.py b/attachment_metadata/__openerp__.py index 232b1f84a..1fed0db4f 100644 --- a/attachment_metadata/__openerp__.py +++ b/attachment_metadata/__openerp__.py @@ -1,24 +1,6 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Module for OpenERP -# Copyright (C) 2015 Akretion (http://www.akretion.com). -# @author Valentin CHEMIERE -# -# 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################### +# coding: utf-8 +# @ 2015 Valentin CHEMIERE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). {'name': 'attachment_metadata', 'version': '0.0.1', diff --git a/attachment_metadata/attachment.py b/attachment_metadata/attachment.py index b75ff47a6..85f3da4e9 100644 --- a/attachment_metadata/attachment.py +++ b/attachment_metadata/attachment.py @@ -1,29 +1,11 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Module for OpenERP -# Copyright 2011-2012 Camptocamp SA -# @author: Joel Grand-Guillaume -# Copyright (C) 2015 Akretion (http://www.akretion.com). -# @author Valentin CHEMIERE -# -# 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 Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################### +# coding: utf-8 +# Copyright (C) 2014 initOS GmbH & Co. KG (). +# @author: Joel Grand-Guillaume @ Camptocamp SA +# @ 2015 Valentin CHEMIERE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import models, fields, api, _ -from openerp.exceptions import Warning +from openerp.exceptions import Warning as UserError import hashlib from base64 import b64decode @@ -42,6 +24,6 @@ class IrAttachmentMetadata(models.Model): if self.datas: self.internal_hash = hashlib.md5(b64decode(self.datas)).hexdigest() if self.external_hash and self.internal_hash != self.external_hash: - raise Warning(_('File corrupted'), - _("Something was wrong with the retreived file, " + raise UserError(_('File corrupted'), + _("Something was wrong with the retreived file, " "please relaunch the task.")) From 528f6e3fc49730074344e29d795f6f83ce935693 Mon Sep 17 00:00:00 2001 From: David Beal Date: Wed, 24 Feb 2016 14:01:40 +0100 Subject: [PATCH 03/20] [FIX] check if class is in installed module, README --- attachment_metadata/README.rst | 66 +++++++++++++++++-------- attachment_metadata/attachment.py | 21 +++++--- attachment_metadata/attachment_view.xml | 24 ++++----- 3 files changed, 72 insertions(+), 39 deletions(-) diff --git a/attachment_metadata/README.rst b/attachment_metadata/README.rst index f9640f29e..926d24474 100644 --- a/attachment_metadata/README.rst +++ b/attachment_metadata/README.rst @@ -1,51 +1,77 @@ + .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +==================== Attachment Metadata -====================== - -This module was written to extend the functionality of ir.attachment +==================== -Installation -============ +This module extend ir.attachment model with some new fields for a better control +for import and export of files. The main feature is an integrity file check with a hash. -Installable without any requirements Usage ===== -THe module just add some field to ir.attachment +Go the menu Settings > Attachments + +You can create / see standard attachments with additional fields + -For further information, please visit: -* https://www.odoo.com/forum/help-1 +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/{repo_id}/8.0 + +.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt +.. branch is "8.0" for example Known issues / Roadmap ====================== +* ... + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed `feedback +`_. + Credits ======= -* Joel Grand-Guillaume Camptocamp -* initOS -* Valentin CHEMIERE +Images +------ + +* Odoo Community Association: `Icon `_. + Contributors ------------ +* Valentin CHEMIERE * Sebastien BEAU +* Joel Grand-Guillaume Camptocamp +* initOS Maintainer ---------- -* Valentin CHEMIERE - -.. image:: http://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: http://odoo-community.org +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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. +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. +To contribute to this module, please visit https://odoo-community.org. diff --git a/attachment_metadata/attachment.py b/attachment_metadata/attachment.py index 85f3da4e9..d27a43292 100644 --- a/attachment_metadata/attachment.py +++ b/attachment_metadata/attachment.py @@ -14,16 +14,23 @@ class IrAttachmentMetadata(models.Model): _name = 'ir.attachment.metadata' _inherits = {'ir.attachment': 'attachment_id'} - internal_hash = fields.Char(store=True, compute='_compute_hash') - external_hash = fields.Char() - attachment_id = fields.Many2one('ir.attachment', required=True, - ondelete='cascade') + internal_hash = fields.Char( + store=True, compute='_compute_hash', + help="File hash computed with file data to be compared " + "to external hash when provided.") + external_hash = fields.Char( + help="File hash comes from the external owner of the file.\n" + "If provided allow to check than downloaded file " + "is the exact copy of the original file.") + attachment_id = fields.Many2one( + 'ir.attachment', required=True, ondelete='cascade', + help="Link to ir.attachment model ") @api.depends('datas', 'external_hash') def _compute_hash(self): if self.datas: self.internal_hash = hashlib.md5(b64decode(self.datas)).hexdigest() if self.external_hash and self.internal_hash != self.external_hash: - raise UserError(_('File corrupted'), - _("Something was wrong with the retreived file, " - "please relaunch the task.")) + raise UserError( + _("File corrupted: Something was wrong with " + "the retrieved file, please relaunch the task.")) diff --git a/attachment_metadata/attachment_view.xml b/attachment_metadata/attachment_view.xml index a95535596..11e70172b 100644 --- a/attachment_metadata/attachment_view.xml +++ b/attachment_metadata/attachment_view.xml @@ -1,17 +1,17 @@ - + - - ir.attachment.metadata - - - - - - - - + + ir.attachment.metadata + + + + + + + + - + From a6611387004386349f27f8f2da1f29011fb26e6b Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 26 Feb 2016 08:56:40 +0100 Subject: [PATCH 04/20] [FIX] community remarks --- attachment_metadata/README.rst | 10 ++++------ attachment_metadata/__init__.py | 2 +- attachment_metadata/__openerp__.py | 8 +++----- attachment_metadata/models/__init__.py | 1 + attachment_metadata/{ => models}/attachment.py | 0 attachment_metadata/{ => views}/attachment_view.xml | 0 6 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 attachment_metadata/models/__init__.py rename attachment_metadata/{ => models}/attachment.py (100%) rename attachment_metadata/{ => views}/attachment_view.xml (100%) diff --git a/attachment_metadata/README.rst b/attachment_metadata/README.rst index 926d24474..82f7b6411 100644 --- a/attachment_metadata/README.rst +++ b/attachment_metadata/README.rst @@ -22,25 +22,23 @@ You can create / see standard attachments with additional fields .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/{repo_id}/8.0 + :target: https://runbot.odoo-community.org/runbot/149/8.0 -.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt -.. branch is "8.0" for example Known issues / Roadmap ====================== -* ... + Bug Tracker =========== Bugs are tracked on `GitHub Issues -`_. In case of trouble, please +`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed `feedback `_. diff --git a/attachment_metadata/__init__.py b/attachment_metadata/__init__.py index c14c86359..0650744f6 100644 --- a/attachment_metadata/__init__.py +++ b/attachment_metadata/__init__.py @@ -1 +1 @@ -from . import attachment +from . import models diff --git a/attachment_metadata/__openerp__.py b/attachment_metadata/__openerp__.py index 1fed0db4f..2b23f955a 100644 --- a/attachment_metadata/__openerp__.py +++ b/attachment_metadata/__openerp__.py @@ -3,8 +3,8 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). {'name': 'attachment_metadata', - 'version': '0.0.1', - 'author': 'Akretion', + 'version': '8.0.1.0.0', + 'author': 'Akretion,Odoo Community Association (OCA)', 'website': 'www.akretion.com', 'license': 'AGPL-3', 'category': 'Generic Modules', @@ -13,11 +13,9 @@ internal and external hash for coherence verification """, 'depends': [ - 'base', - 'mail' ], 'data': [ - 'attachment_view.xml', + 'views/attachment_view.xml', 'security/ir.model.access.csv', ], 'installable': True, diff --git a/attachment_metadata/models/__init__.py b/attachment_metadata/models/__init__.py new file mode 100644 index 000000000..c14c86359 --- /dev/null +++ b/attachment_metadata/models/__init__.py @@ -0,0 +1 @@ +from . import attachment diff --git a/attachment_metadata/attachment.py b/attachment_metadata/models/attachment.py similarity index 100% rename from attachment_metadata/attachment.py rename to attachment_metadata/models/attachment.py diff --git a/attachment_metadata/attachment_view.xml b/attachment_metadata/views/attachment_view.xml similarity index 100% rename from attachment_metadata/attachment_view.xml rename to attachment_metadata/views/attachment_view.xml From d3d172b0b2d066251618624745ce4829471facc4 Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 26 Feb 2016 10:01:48 +0100 Subject: [PATCH 05/20] [IMP] README file --- attachment_metadata/README.rst | 11 ++++++++++- attachment_metadata/__openerp__.py | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/attachment_metadata/README.rst b/attachment_metadata/README.rst index 82f7b6411..5abfa0cc4 100644 --- a/attachment_metadata/README.rst +++ b/attachment_metadata/README.rst @@ -8,7 +8,15 @@ Attachment Metadata ==================== This module extend ir.attachment model with some new fields for a better control -for import and export of files. The main feature is an integrity file check with a hash. +for import and export of files. + +The main feature is an integrity file check with a hash. + +A file hash is short representation (signature) computed from file data. +Hashes computed before send file and after received file can be compared to be +sure of the content integrity. + +An example of the use of this module, can be found in the external_file_location. Usage @@ -28,6 +36,7 @@ You can create / see standard attachments with additional fields Known issues / Roadmap ====================== +The purpose of this module is not to import the data of the file but only exchange files with external application. Bug Tracker diff --git a/attachment_metadata/__openerp__.py b/attachment_metadata/__openerp__.py index 2b23f955a..56105e5d0 100644 --- a/attachment_metadata/__openerp__.py +++ b/attachment_metadata/__openerp__.py @@ -2,7 +2,7 @@ # @ 2015 Valentin CHEMIERE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -{'name': 'attachment_metadata', +{'name': 'Attachment Metadata', 'version': '8.0.1.0.0', 'author': 'Akretion,Odoo Community Association (OCA)', 'website': 'www.akretion.com', From 490e867138e5514f86524e0fa37ffa47a4cfa74f Mon Sep 17 00:00:00 2001 From: Mourad El Hadj Mimoune Date: Wed, 9 Mar 2016 12:16:26 +0100 Subject: [PATCH 06/20] [ADD] add file type on attachment_metadata --- attachment_metadata/models/attachment.py | 12 ++++++++++++ attachment_metadata/views/attachment_view.xml | 1 + 2 files changed, 13 insertions(+) diff --git a/attachment_metadata/models/attachment.py b/attachment_metadata/models/attachment.py index d27a43292..813255710 100644 --- a/attachment_metadata/models/attachment.py +++ b/attachment_metadata/models/attachment.py @@ -25,6 +25,11 @@ class IrAttachmentMetadata(models.Model): attachment_id = fields.Many2one( 'ir.attachment', required=True, ondelete='cascade', help="Link to ir.attachment model ") + file_type = fields.Selection( + selection="_get_file_type", + string="File type", + help="The file type detrmine an import method to be used " + "to parse and transforme data before theire import in odoo") @api.depends('datas', 'external_hash') def _compute_hash(self): @@ -34,3 +39,10 @@ class IrAttachmentMetadata(models.Model): raise UserError( _("File corrupted: Something was wrong with " "the retrieved file, please relaunch the task.")) + + def _get_file_type(self): + """This is the method to be inherited for adding file types + The basic import do not apply any parsing or transform of the file. + The file is just added as an attachement + """ + return [('basic_import', 'Basic import')] diff --git a/attachment_metadata/views/attachment_view.xml b/attachment_metadata/views/attachment_view.xml index 11e70172b..b3a8dd06f 100644 --- a/attachment_metadata/views/attachment_view.xml +++ b/attachment_metadata/views/attachment_view.xml @@ -9,6 +9,7 @@ + From e9955a6e9c5fffb42a8e7174e1de87f762f84f10 Mon Sep 17 00:00:00 2001 From: Mourad El Hadj Mimoune Date: Wed, 9 Mar 2016 15:48:23 +0100 Subject: [PATCH 07/20] [ADD] add view on attachment_metadata --- attachment_metadata/views/attachment_view.xml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/attachment_metadata/views/attachment_view.xml b/attachment_metadata/views/attachment_view.xml index b3a8dd06f..a6e1d2e4b 100644 --- a/attachment_metadata/views/attachment_view.xml +++ b/attachment_metadata/views/attachment_view.xml @@ -14,5 +14,81 @@ + + ir.attachment.metadata + + + + + + + + + + + ir.attachment.metadata + + + + + + + + + + + + + + + + + + + + + + + Attachments + ir.actions.act_window + ir.attachment.metadata + form + tree,form + + + + + + + tree + + + + + + + form + + + + + + + + From 26b69d600d36aab81dfebe68c7bb1db8e609abe3 Mon Sep 17 00:00:00 2001 From: Mourad El Hadj Mimoune Date: Thu, 10 Mar 2016 14:34:07 +0100 Subject: [PATCH 08/20] [FIX] typing mistake --- attachment_metadata/models/attachment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attachment_metadata/models/attachment.py b/attachment_metadata/models/attachment.py index 813255710..f2c0347f8 100644 --- a/attachment_metadata/models/attachment.py +++ b/attachment_metadata/models/attachment.py @@ -28,8 +28,8 @@ class IrAttachmentMetadata(models.Model): file_type = fields.Selection( selection="_get_file_type", string="File type", - help="The file type detrmine an import method to be used " - "to parse and transforme data before theire import in odoo") + help="The file type determines an import method to be used " + "to parse and transform data before their import in ERP") @api.depends('datas', 'external_hash') def _compute_hash(self): From 8873596e5b7710e35a52a108ba463ac00f3cfe9f Mon Sep 17 00:00:00 2001 From: Mourad El Hadj Mimoune Date: Thu, 10 Mar 2016 15:37:26 +0100 Subject: [PATCH 09/20] [IMP] move meta data attachement menu near attachement --- attachment_metadata/views/attachment_view.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/attachment_metadata/views/attachment_view.xml b/attachment_metadata/views/attachment_view.xml index a6e1d2e4b..71ed3a2cd 100644 --- a/attachment_metadata/views/attachment_view.xml +++ b/attachment_metadata/views/attachment_view.xml @@ -57,7 +57,7 @@ - Attachments + Meta data Attachments ir.actions.act_window ir.attachment.metadata form @@ -80,13 +80,9 @@ - From 785691d6ca7ade74e5da0e0ddf19faf62b6411b4 Mon Sep 17 00:00:00 2001 From: Mourad El Hadj Mimoune Date: Wed, 16 Mar 2016 14:49:24 +0100 Subject: [PATCH 10/20] [FIX] bug of file import related to api.multi --- attachment_metadata/models/attachment.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/attachment_metadata/models/attachment.py b/attachment_metadata/models/attachment.py index f2c0347f8..15e3e56a6 100644 --- a/attachment_metadata/models/attachment.py +++ b/attachment_metadata/models/attachment.py @@ -33,12 +33,15 @@ class IrAttachmentMetadata(models.Model): @api.depends('datas', 'external_hash') def _compute_hash(self): - if self.datas: - self.internal_hash = hashlib.md5(b64decode(self.datas)).hexdigest() - if self.external_hash and self.internal_hash != self.external_hash: - raise UserError( - _("File corrupted: Something was wrong with " - "the retrieved file, please relaunch the task.")) + for attachment in self: + if attachment.datas: + attachment.internal_hash = hashlib.md5( + b64decode(self.datas)).hexdigest() + if attachment.external_hash and\ + attachment.internal_hash != attachment.external_hash: + raise UserError( + _("File corrupted: Something was wrong with " + "the retrieved file, please relaunch the task.")) def _get_file_type(self): """This is the method to be inherited for adding file types From 5f4316f423c8e0e3bc1fed2278d22a42a006d1c1 Mon Sep 17 00:00:00 2001 From: Mourad El Hadj Mimoune Date: Wed, 25 May 2016 13:38:08 +0000 Subject: [PATCH 11/20] [FIX] fix pylint --- attachment_metadata/__openerp__.py | 36 ++++++++++++++---------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/attachment_metadata/__openerp__.py b/attachment_metadata/__openerp__.py index 56105e5d0..23b3d6795 100644 --- a/attachment_metadata/__openerp__.py +++ b/attachment_metadata/__openerp__.py @@ -2,22 +2,20 @@ # @ 2015 Valentin CHEMIERE @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -{'name': 'Attachment Metadata', - 'version': '8.0.1.0.0', - 'author': 'Akretion,Odoo Community Association (OCA)', - 'website': 'www.akretion.com', - 'license': 'AGPL-3', - 'category': 'Generic Modules', - 'description': """ - Add some useful field to ir.attachment object like: - internal and external hash for coherence verification - """, - 'depends': [ - ], - 'data': [ - 'views/attachment_view.xml', - 'security/ir.model.access.csv', - ], - 'installable': True, - 'application': False, - } +{ + 'name': 'Attachment Metadata', + 'version': '8.0.1.0.0', + 'author': 'Akretion,Odoo Community Association (OCA)', + 'website': 'www.akretion.com', + 'license': 'AGPL-3', + 'category': 'Generic Modules', + 'depends': [ + ], + 'data': [ + 'views/attachment_view.xml', + 'security/ir.model.access.csv', + ], + 'installable': True, + 'application': False, + 'images': [], +} From 62301d6472a41e52f622771c34e96ed6408682b4 Mon Sep 17 00:00:00 2001 From: Mourad Elhadj Mimoune Date: Thu, 26 May 2016 11:28:41 +0200 Subject: [PATCH 12/20] [FIX] fix pylint & oca_dependencies --- attachment_metadata/models/attachment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/attachment_metadata/models/attachment.py b/attachment_metadata/models/attachment.py index 15e3e56a6..e21e29830 100644 --- a/attachment_metadata/models/attachment.py +++ b/attachment_metadata/models/attachment.py @@ -26,10 +26,10 @@ class IrAttachmentMetadata(models.Model): 'ir.attachment', required=True, ondelete='cascade', help="Link to ir.attachment model ") file_type = fields.Selection( - selection="_get_file_type", - string="File type", - help="The file type determines an import method to be used " - "to parse and transform data before their import in ERP") + selection="_get_file_type", + string="File type", + help="The file type determines an import method to be used " + "to parse and transform data before their import in ERP") @api.depends('datas', 'external_hash') def _compute_hash(self): From f1b8d772daf862e7dcef5bc7b06e7db3a9ab4bab Mon Sep 17 00:00:00 2001 From: Mourad Elhadj Mimoune Date: Wed, 1 Jun 2016 10:56:01 +0200 Subject: [PATCH 13/20] [FIX] bug of compute internal_hash --- attachment_metadata/models/attachment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachment_metadata/models/attachment.py b/attachment_metadata/models/attachment.py index e21e29830..6fd9d52b0 100644 --- a/attachment_metadata/models/attachment.py +++ b/attachment_metadata/models/attachment.py @@ -36,7 +36,7 @@ class IrAttachmentMetadata(models.Model): for attachment in self: if attachment.datas: attachment.internal_hash = hashlib.md5( - b64decode(self.datas)).hexdigest() + b64decode(attachment.datas)).hexdigest() if attachment.external_hash and\ attachment.internal_hash != attachment.external_hash: raise UserError( From e4780b43deb911a00b29ba1196c670f0131a7828 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 12 Jun 2016 12:15:13 -0400 Subject: [PATCH 14/20] OCA Transbot updated translations from Transifex --- attachment_metadata/i18n/de.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/en.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/es.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/fi.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/fr.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/it.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/pt_BR.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/ru.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/sl.po | 243 ++++++++++++++++++++++++++++++ attachment_metadata/i18n/tr.po | 242 +++++++++++++++++++++++++++++ attachment_metadata/i18n/zh_CN.po | 242 +++++++++++++++++++++++++++++ 11 files changed, 2663 insertions(+) create mode 100644 attachment_metadata/i18n/de.po create mode 100644 attachment_metadata/i18n/en.po create mode 100644 attachment_metadata/i18n/es.po create mode 100644 attachment_metadata/i18n/fi.po create mode 100644 attachment_metadata/i18n/fr.po create mode 100644 attachment_metadata/i18n/it.po create mode 100644 attachment_metadata/i18n/pt_BR.po create mode 100644 attachment_metadata/i18n/ru.po create mode 100644 attachment_metadata/i18n/sl.po create mode 100644 attachment_metadata/i18n/tr.po create mode 100644 attachment_metadata/i18n/zh_CN.po diff --git a/attachment_metadata/i18n/de.po b/attachment_metadata/i18n/de.po new file mode 100644 index 000000000..fe88b281c --- /dev/null +++ b/attachment_metadata/i18n/de.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Erstellt von" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Erstellt am:" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Beschreibung" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert von" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "Ressourcen-ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Ressourcenname" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/en.po b/attachment_metadata/i18n/en.po new file mode 100644 index 000000000..fd7b04edf --- /dev/null +++ b/attachment_metadata/i18n/en.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: English (http://www.transifex.com/oca/OCA-server-tools-8-0/language/en/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: en\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "Attachment" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "Attachment Name" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "Attachment id" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "Attachments" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "Binary" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "Binary File or URL" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "Company" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Created by" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Created on" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "Creation Month" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "Database Data" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Description" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "Display Name" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "External hash" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "File Content" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "File Name" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "File Size" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "File corrupted: Something was wrong with the retrieved file, please relaunch the task." + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "File hash comes from the external owner of the file.\nIf provided allow to check than downloaded file is the exact copy of the original file." + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "File hash computed with file data to be compared to external hash when provided." + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "File type" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "Filter on my documents" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "Group By" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "Internal hash" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "Last Modified on" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Last Updated by" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Last Updated on" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "Link to ir.attachment model " + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "Meta data Attachments" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "My Document(s)" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "Owner" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "Resource ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "Resource Model" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Resource Name" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "Stored Filename" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "The database object this attachment will be attached to" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "The file type determines an import method to be used to parse and transform data before their import in ERP" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "The record id this is attached to" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "Type" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "URL" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "Url" diff --git a/attachment_metadata/i18n/es.po b/attachment_metadata/i18n/es.po new file mode 100644 index 000000000..21d731b59 --- /dev/null +++ b/attachment_metadata/i18n/es.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Creado el" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Descripción" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "Nombre a mostrar" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "Agrupar por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "Última actualización por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "ID del recurso" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Nombre del recurso" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/fi.po b/attachment_metadata/i18n/fi.po new file mode 100644 index 000000000..d0f3507c3 --- /dev/null +++ b/attachment_metadata/i18n/fi.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-06 13:36+0000\n" +"Last-Translator: Jarmo Kortetjärvi \n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-server-tools-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Luonut" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Luotu" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Kuvaus" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "Nimi" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "Viimeksi muokattu" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Viimeksi päivittänyt" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Viimeksi päivitetty" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/fr.po b/attachment_metadata/i18n/fr.po new file mode 100644 index 000000000..48e4d95a2 --- /dev/null +++ b/attachment_metadata/i18n/fr.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Créé par" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Créé le" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Description" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "Nom affiché" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "Nom du fichier" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "Grouper par" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Mis à jour par" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Mis à jour le" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "ID de l'enregistrement" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Nom de l'enregistrement" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "Type" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/it.po b/attachment_metadata/i18n/it.po new file mode 100644 index 000000000..8cb84d908 --- /dev/null +++ b/attachment_metadata/i18n/it.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Created by" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Created on" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Descrizione" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "Nome del campo" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Last Updated by" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Last Updated on" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "Proprietario" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "ID Risorsa" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Nome della Risorsa" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "Tipo" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "URL" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/pt_BR.po b/attachment_metadata/i18n/pt_BR.po new file mode 100644 index 000000000..baa497c5c --- /dev/null +++ b/attachment_metadata/i18n/pt_BR.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-server-tools-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Criado por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Criado em" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Descrição" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "Nome para Mostrar" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "Agrupado por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "Identificação" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "Última atualização em" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Última atualização por" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Última atualização em" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "Identificação do Recurso" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Nome do Recurso" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "Tipo" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/ru.po b/attachment_metadata/i18n/ru.po new file mode 100644 index 000000000..8c6104c8f --- /dev/null +++ b/attachment_metadata/i18n/ru.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: Russian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/ru/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Описание" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/sl.po b/attachment_metadata/i18n/sl.po new file mode 100644 index 000000000..4f442cec3 --- /dev/null +++ b/attachment_metadata/i18n/sl.po @@ -0,0 +1,243 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:49+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "Priponka" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "Naziv priponke" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "ID priponke" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "Priponke" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "Binarno" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "Binarna datoteka ali URL" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "Družba" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Ustvaril" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "Mesec nastanka" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "Podatki o podatkovni bazi" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Opis" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "Prikazni naziv" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "Zunanji hash" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "Vsebina datoteke" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "Naziv datoteke" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "Velikost datoteke" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "Datoteka okvarjena: Nekaj je narobe s pridobljeno datoteko. Ponovno zaženite opravilo, prosim." + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "Hash datoteke prihaja z zunanjim lastnikom datoteke.\nČe je podano, omogoča preverjanje, če je prenesena datoteke natančna kopija originalne." + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "Hash datoteke obdelan s podatki o datoteki za primerjavo z zunanjim hash (če je podan)." + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "Tip datoteke" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "Filtriraj po mojih dokumentih" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "Združi po" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "Interni hash" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "Zadnjič spremenjeno" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "Povezava do ir.attachment model " + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "Metadata priponk" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "Moji dokumenti" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "Lastnik" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "ID vira" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "Model vira" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Naziv vira" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "Shranjeni naziv datoteke" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "Objekt podatkovne baze, kamor se bo priponka pripela" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "Tip datoteke določa metodo uvoza, ki se bo uporabila za razčlenjevanje in pretvorbo podatkov pred uvozom v ERP" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "ID zapisa, kamor je to pripeto" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "Tip" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "URL" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "URL" diff --git a/attachment_metadata/i18n/tr.po b/attachment_metadata/i18n/tr.po new file mode 100644 index 000000000..3d0d6b51f --- /dev/null +++ b/attachment_metadata/i18n/tr.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: Turkish (http://www.transifex.com/oca/OCA-server-tools-8-0/language/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "Oluşturan" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "Oluşturuldu" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "Açıklama" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "Dosya adı" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "Grupla" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "Son güncelleyen" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "Son güncellenme" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "Kaynak ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "Kaynak Adı" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" diff --git a/attachment_metadata/i18n/zh_CN.po b/attachment_metadata/i18n/zh_CN.po new file mode 100644 index 000000000..74aa3c2dc --- /dev/null +++ b/attachment_metadata/i18n/zh_CN.po @@ -0,0 +1,242 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * attachment_metadata +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"PO-Revision-Date: 2016-06-01 09:37+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-server-tools-8-0/language/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Attachment" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,name:0 +msgid "Attachment Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,attachment_id:0 +msgid "Attachment id" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +msgid "Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Binary" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,type:0 +msgid "Binary File or URL" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,company_id:0 +msgid "Company" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_uid:0 +msgid "Created by" +msgstr "创建者" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,create_date:0 +msgid "Created on" +msgstr "创建时间" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Creation Month" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,db_datas:0 +msgid "Database Data" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,description:0 +msgid "Description" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,display_name:0 +msgid "Display Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,external_hash:0 +msgid "External hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas:0 +msgid "File Content" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,file_size:0 +msgid "File Size" +msgstr "" + +#. module: attachment_metadata +#: code:addons/attachment_metadata/models/attachment.py:43 +#, python-format +msgid "" +"File corrupted: Something was wrong with the retrieved file, please relaunch" +" the task." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,external_hash:0 +msgid "" +"File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,internal_hash:0 +msgid "" +"File hash computed with file data to be compared to external hash when " +"provided." +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,file_type:0 +msgid "File type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Filter on my documents" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Group By" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,id:0 +msgid "ID" +msgstr "ID" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,internal_hash:0 +msgid "Internal hash" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,__last_update:0 +msgid "Last Modified on" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_uid:0 +msgid "Last Updated by" +msgstr "最后更新者" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,write_date:0 +msgid "Last Updated on" +msgstr "上次更新日期" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,attachment_id:0 +msgid "Link to ir.attachment model " +msgstr "" + +#. module: attachment_metadata +#: model:ir.actions.act_window,name:attachment_metadata.action_attachment +#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +msgid "Meta data Attachments" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "My Document(s)" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "Owner" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_id:0 +msgid "Resource ID" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_model:0 +msgid "Resource Model" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,res_name:0 +msgid "Resource Name" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_model:0 +msgid "The database object this attachment will be attached to" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,file_type:0 +msgid "" +"The file type determines an import method to be used to parse and transform " +"data before their import in ERP" +msgstr "" + +#. module: attachment_metadata +#: help:ir.attachment.metadata,res_id:0 +msgid "The record id this is attached to" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#: field:ir.attachment.metadata,type:0 +msgid "Type" +msgstr "" + +#. module: attachment_metadata +#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +msgid "URL" +msgstr "" + +#. module: attachment_metadata +#: field:ir.attachment.metadata,url:0 +msgid "Url" +msgstr "" From 7b8981c8b63c0894aa19c46480401f042ac3ecad Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 3 Jul 2016 13:03:31 -0400 Subject: [PATCH 15/20] OCA Transbot updated translations from Transifex --- attachment_metadata/i18n/fr.po | 51 +++++++++++++++++----------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/attachment_metadata/i18n/fr.po b/attachment_metadata/i18n/fr.po index 48e4d95a2..49cc26967 100644 --- a/attachment_metadata/i18n/fr.po +++ b/attachment_metadata/i18n/fr.po @@ -3,13 +3,14 @@ # * attachment_metadata # # Translators: +# Christophe CHAUVET , 2016 msgid "" msgstr "" "Project-Id-Version: server-tools (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-09 18:30+0000\n" -"PO-Revision-Date: 2016-06-01 09:37+0000\n" -"Last-Translator: <>\n" +"POT-Creation-Date: 2016-06-17 02:42+0000\n" +"PO-Revision-Date: 2016-06-23 09:22+0000\n" +"Last-Translator: Christophe CHAUVET \n" "Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-8-0/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,39 +21,39 @@ msgstr "" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search msgid "Attachment" -msgstr "" +msgstr "Pièce jointe" #. module: attachment_metadata #: field:ir.attachment.metadata,name:0 msgid "Attachment Name" -msgstr "" +msgstr "Nom de la pièce jointe" #. module: attachment_metadata #: field:ir.attachment.metadata,attachment_id:0 msgid "Attachment id" -msgstr "" +msgstr "ID de la pièce jointe" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree msgid "Attachments" -msgstr "" +msgstr "Pièces jointes" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search msgid "Binary" -msgstr "" +msgstr "Binaire" #. module: attachment_metadata #: help:ir.attachment.metadata,type:0 msgid "Binary File or URL" -msgstr "" +msgstr "Fichier binaire ou URL" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search #: field:ir.attachment.metadata,company_id:0 msgid "Company" -msgstr "" +msgstr "Société" #. module: attachment_metadata #: field:ir.attachment.metadata,create_uid:0 @@ -72,7 +73,7 @@ msgstr "" #. module: attachment_metadata #: field:ir.attachment.metadata,db_datas:0 msgid "Database Data" -msgstr "" +msgstr "Données de la base de données" #. module: attachment_metadata #: field:ir.attachment.metadata,description:0 @@ -87,12 +88,12 @@ msgstr "Nom affiché" #. module: attachment_metadata #: field:ir.attachment.metadata,external_hash:0 msgid "External hash" -msgstr "" +msgstr "Empreinte externe" #. module: attachment_metadata #: field:ir.attachment.metadata,datas:0 msgid "File Content" -msgstr "" +msgstr "Contenu du fichier" #. module: attachment_metadata #: field:ir.attachment.metadata,datas_fname:0 @@ -102,7 +103,7 @@ msgstr "Nom du fichier" #. module: attachment_metadata #: field:ir.attachment.metadata,file_size:0 msgid "File Size" -msgstr "" +msgstr "Taille du fichier" #. module: attachment_metadata #: code:addons/attachment_metadata/models/attachment.py:43 @@ -110,7 +111,7 @@ msgstr "" msgid "" "File corrupted: Something was wrong with the retrieved file, please relaunch" " the task." -msgstr "" +msgstr "Fichier corrompu: Quelque chose ne va pas lors de la récupération du fichier, veuillez relancer la tâche." #. module: attachment_metadata #: help:ir.attachment.metadata,external_hash:0 @@ -130,12 +131,12 @@ msgstr "" #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search #: field:ir.attachment.metadata,file_type:0 msgid "File type" -msgstr "" +msgstr "Type de fichier" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search msgid "Filter on my documents" -msgstr "" +msgstr "Filtrer sur mes documents" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search @@ -150,7 +151,7 @@ msgstr "ID" #. module: attachment_metadata #: field:ir.attachment.metadata,internal_hash:0 msgid "Internal hash" -msgstr "" +msgstr "Empreinte interne" #. module: attachment_metadata #: field:ir.attachment.metadata,__last_update:0 @@ -170,23 +171,23 @@ msgstr "Mis à jour le" #. module: attachment_metadata #: help:ir.attachment.metadata,attachment_id:0 msgid "Link to ir.attachment model " -msgstr "" +msgstr "Lien ver le modèle ir.attachment" #. module: attachment_metadata #: model:ir.actions.act_window,name:attachment_metadata.action_attachment #: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment msgid "Meta data Attachments" -msgstr "" +msgstr "Méta données des pièces jointes" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search msgid "My Document(s)" -msgstr "" +msgstr "Mes docuement(s)" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search msgid "Owner" -msgstr "" +msgstr "Propriétaire" #. module: attachment_metadata #: field:ir.attachment.metadata,res_id:0 @@ -206,7 +207,7 @@ msgstr "Nom de l'enregistrement" #. module: attachment_metadata #: field:ir.attachment.metadata,store_fname:0 msgid "Stored Filename" -msgstr "" +msgstr "Nom de fichier stocké" #. module: attachment_metadata #: help:ir.attachment.metadata,res_model:0 @@ -234,9 +235,9 @@ msgstr "Type" #. module: attachment_metadata #: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search msgid "URL" -msgstr "" +msgstr "URL" #. module: attachment_metadata #: field:ir.attachment.metadata,url:0 msgid "Url" -msgstr "" +msgstr "Url" From 24c066dc22f9fa38374d8d6f200f5c0725b2b0ed Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 31 Jul 2016 14:28:25 -0400 Subject: [PATCH 16/20] OCA Transbot updated translations from Transifex --- attachment_metadata/i18n/it.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/attachment_metadata/i18n/it.po b/attachment_metadata/i18n/it.po index 8cb84d908..f85fc0522 100644 --- a/attachment_metadata/i18n/it.po +++ b/attachment_metadata/i18n/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: server-tools (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-09 18:30+0000\n" +"POT-Creation-Date: 2016-07-28 00:59+0000\n" "PO-Revision-Date: 2016-06-01 09:37+0000\n" "Last-Translator: <>\n" "Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/it/)\n" @@ -82,7 +82,7 @@ msgstr "Descrizione" #. module: attachment_metadata #: field:ir.attachment.metadata,display_name:0 msgid "Display Name" -msgstr "" +msgstr "Nome da visualizzare" #. module: attachment_metadata #: field:ir.attachment.metadata,external_hash:0 @@ -155,7 +155,7 @@ msgstr "" #. module: attachment_metadata #: field:ir.attachment.metadata,__last_update:0 msgid "Last Modified on" -msgstr "" +msgstr "Ultima modifica il" #. module: attachment_metadata #: field:ir.attachment.metadata,write_uid:0 From ff1896eab3b939ea9b52fcd17c3ff3b168e8ab4c Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Mon, 1 Aug 2016 13:26:02 +0200 Subject: [PATCH 17/20] Migrate and rename attachment_metadata to attachment_base_synchronize --- .../README.rst | 0 .../__init__.py | 0 .../__openerp__.py | 8 +- attachment_base_synchronize/data/cron.xml | 18 +++ .../i18n/de.po | 0 .../i18n/en.po | 0 .../i18n/es.po | 0 .../i18n/fi.po | 0 .../i18n/fr.po | 0 .../i18n/it.po | 6 +- .../i18n/pt_BR.po | 0 .../i18n/ru.po | 0 .../i18n/sl.po | 0 .../i18n/tr.po | 0 .../i18n/zh_CN.po | 0 .../models/__init__.py | 0 .../models/attachment.py | 104 ++++++++++++++++++ .../security/ir.model.access.csv | 0 .../views/attachment_view.xml | 24 +++- attachment_metadata/models/attachment.py | 51 --------- 20 files changed, 153 insertions(+), 58 deletions(-) rename {attachment_metadata => attachment_base_synchronize}/README.rst (100%) rename {attachment_metadata => attachment_base_synchronize}/__init__.py (100%) rename {attachment_metadata => attachment_base_synchronize}/__openerp__.py (74%) create mode 100644 attachment_base_synchronize/data/cron.xml rename {attachment_metadata => attachment_base_synchronize}/i18n/de.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/en.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/es.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/fi.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/fr.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/it.po (98%) rename {attachment_metadata => attachment_base_synchronize}/i18n/pt_BR.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/ru.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/sl.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/tr.po (100%) rename {attachment_metadata => attachment_base_synchronize}/i18n/zh_CN.po (100%) rename {attachment_metadata => attachment_base_synchronize}/models/__init__.py (100%) create mode 100644 attachment_base_synchronize/models/attachment.py rename {attachment_metadata => attachment_base_synchronize}/security/ir.model.access.csv (100%) rename {attachment_metadata => attachment_base_synchronize}/views/attachment_view.xml (74%) delete mode 100644 attachment_metadata/models/attachment.py diff --git a/attachment_metadata/README.rst b/attachment_base_synchronize/README.rst similarity index 100% rename from attachment_metadata/README.rst rename to attachment_base_synchronize/README.rst diff --git a/attachment_metadata/__init__.py b/attachment_base_synchronize/__init__.py similarity index 100% rename from attachment_metadata/__init__.py rename to attachment_base_synchronize/__init__.py diff --git a/attachment_metadata/__openerp__.py b/attachment_base_synchronize/__openerp__.py similarity index 74% rename from attachment_metadata/__openerp__.py rename to attachment_base_synchronize/__openerp__.py index 23b3d6795..1e5c38119 100644 --- a/attachment_metadata/__openerp__.py +++ b/attachment_base_synchronize/__openerp__.py @@ -1,19 +1,21 @@ # coding: utf-8 -# @ 2015 Valentin CHEMIERE @ Akretion +# @ 2015 Florian DA COSTA @ Akretion # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { - 'name': 'Attachment Metadata', - 'version': '8.0.1.0.0', + 'name': 'Attachment Base Synchronize', + 'version': '9.0.1.0.0', 'author': 'Akretion,Odoo Community Association (OCA)', 'website': 'www.akretion.com', 'license': 'AGPL-3', 'category': 'Generic Modules', 'depends': [ + 'base', ], 'data': [ 'views/attachment_view.xml', 'security/ir.model.access.csv', + 'data/cron.xml', ], 'installable': True, 'application': False, diff --git a/attachment_base_synchronize/data/cron.xml b/attachment_base_synchronize/data/cron.xml new file mode 100644 index 000000000..031d594dc --- /dev/null +++ b/attachment_base_synchronize/data/cron.xml @@ -0,0 +1,18 @@ + + + + + + Run Attachments Metadata + 30 + minutes + -1 + False + + ir.attachment.metadata + run_attachment_metadata_scheduler + ([]) + + + + diff --git a/attachment_metadata/i18n/de.po b/attachment_base_synchronize/i18n/de.po similarity index 100% rename from attachment_metadata/i18n/de.po rename to attachment_base_synchronize/i18n/de.po diff --git a/attachment_metadata/i18n/en.po b/attachment_base_synchronize/i18n/en.po similarity index 100% rename from attachment_metadata/i18n/en.po rename to attachment_base_synchronize/i18n/en.po diff --git a/attachment_metadata/i18n/es.po b/attachment_base_synchronize/i18n/es.po similarity index 100% rename from attachment_metadata/i18n/es.po rename to attachment_base_synchronize/i18n/es.po diff --git a/attachment_metadata/i18n/fi.po b/attachment_base_synchronize/i18n/fi.po similarity index 100% rename from attachment_metadata/i18n/fi.po rename to attachment_base_synchronize/i18n/fi.po diff --git a/attachment_metadata/i18n/fr.po b/attachment_base_synchronize/i18n/fr.po similarity index 100% rename from attachment_metadata/i18n/fr.po rename to attachment_base_synchronize/i18n/fr.po diff --git a/attachment_metadata/i18n/it.po b/attachment_base_synchronize/i18n/it.po similarity index 98% rename from attachment_metadata/i18n/it.po rename to attachment_base_synchronize/i18n/it.po index f85fc0522..8cb84d908 100644 --- a/attachment_metadata/i18n/it.po +++ b/attachment_base_synchronize/i18n/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: server-tools (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-07-28 00:59+0000\n" +"POT-Creation-Date: 2016-06-09 18:30+0000\n" "PO-Revision-Date: 2016-06-01 09:37+0000\n" "Last-Translator: <>\n" "Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/it/)\n" @@ -82,7 +82,7 @@ msgstr "Descrizione" #. module: attachment_metadata #: field:ir.attachment.metadata,display_name:0 msgid "Display Name" -msgstr "Nome da visualizzare" +msgstr "" #. module: attachment_metadata #: field:ir.attachment.metadata,external_hash:0 @@ -155,7 +155,7 @@ msgstr "" #. module: attachment_metadata #: field:ir.attachment.metadata,__last_update:0 msgid "Last Modified on" -msgstr "Ultima modifica il" +msgstr "" #. module: attachment_metadata #: field:ir.attachment.metadata,write_uid:0 diff --git a/attachment_metadata/i18n/pt_BR.po b/attachment_base_synchronize/i18n/pt_BR.po similarity index 100% rename from attachment_metadata/i18n/pt_BR.po rename to attachment_base_synchronize/i18n/pt_BR.po diff --git a/attachment_metadata/i18n/ru.po b/attachment_base_synchronize/i18n/ru.po similarity index 100% rename from attachment_metadata/i18n/ru.po rename to attachment_base_synchronize/i18n/ru.po diff --git a/attachment_metadata/i18n/sl.po b/attachment_base_synchronize/i18n/sl.po similarity index 100% rename from attachment_metadata/i18n/sl.po rename to attachment_base_synchronize/i18n/sl.po diff --git a/attachment_metadata/i18n/tr.po b/attachment_base_synchronize/i18n/tr.po similarity index 100% rename from attachment_metadata/i18n/tr.po rename to attachment_base_synchronize/i18n/tr.po diff --git a/attachment_metadata/i18n/zh_CN.po b/attachment_base_synchronize/i18n/zh_CN.po similarity index 100% rename from attachment_metadata/i18n/zh_CN.po rename to attachment_base_synchronize/i18n/zh_CN.po diff --git a/attachment_metadata/models/__init__.py b/attachment_base_synchronize/models/__init__.py similarity index 100% rename from attachment_metadata/models/__init__.py rename to attachment_base_synchronize/models/__init__.py diff --git a/attachment_base_synchronize/models/attachment.py b/attachment_base_synchronize/models/attachment.py new file mode 100644 index 000000000..21064e364 --- /dev/null +++ b/attachment_base_synchronize/models/attachment.py @@ -0,0 +1,104 @@ +# coding: utf-8 +# @ 2015 Florian DA COSTA @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import models, fields, api, _ +from openerp.exceptions import Warning as UserError +from openerp import sql_db +import hashlib +from base64 import b64decode +import logging + +_logger = logging.getLogger(__name__) + + +class IrAttachmentMetadata(models.Model): + _name = 'ir.attachment.metadata' + _inherits = {'ir.attachment': 'attachment_id'} + + internal_hash = fields.Char( + store=True, compute='_compute_hash', + help="File hash computed with file data to be compared " + "to external hash when provided.") + external_hash = fields.Char( + help="File hash comes from the external owner of the file.\n" + "If provided allow to check than downloaded file " + "is the exact copy of the original file.") + attachment_id = fields.Many2one( + 'ir.attachment', required=True, ondelete='cascade', + help="Link to ir.attachment model ") + file_type = fields.Selection( + selection=[], + string="File type", + help="The file type determines an import method to be used " + "to parse and transform data before their import in ERP or an export") + sync_date = fields.Datetime() + state = fields.Selection([ + ('pending', 'Pending'), + ('failed', 'Failed'), + ('done', 'Done'), + ], readonly=False, required=True, default='pending') + state_message = fields.Text() + + @api.depends('datas', 'external_hash') + def _compute_hash(self): + for attachment in self: + if attachment.datas: + attachment.internal_hash = hashlib.md5( + b64decode(attachment.datas)).hexdigest() + if attachment.external_hash and\ + attachment.internal_hash != attachment.external_hash: + raise UserError( + _("File corrupted: Something was wrong with " + "the retrieved file, please relaunch the task.")) + + @api.model + def run_attachment_metadata_scheduler(self, domain=None): + if domain is None: + domain = [] + domain.append(('state', '=', 'pending')) + attachments = self.search(domain) + if attachments: + return attachments.run() + return True + + @api.multi + def run(self): + """ + Run the process for each attachment metadata + """ + for attachment in self: + new_cr = sql_db.db_connect(self.env.cr.dbname).cursor() + with api.Environment.manage(): + attachment.env = api.Environment(new_cr, self.env.uid, + self.env.context) + try: + attachment._run() + except Exception, e: + attachment.env.cr.rollback() + _logger.exception(e) + attachment.write( + { + 'state': 'failed', + 'state_message': unicode(e) + }) + attachment.env.cr.commit() + else: + attachment.write({'state': 'done'}) + attachment.env.cr.commit() + finally: + attachment.env.cr.close() + return True + + @api.multi + def _run(self): + self.ensure_one() + _logger.info('Start to process attachment metadata id %s' % self.id) + + @api.multi + def set_done(self): + """ + Manually set to done + """ + message = "Manually set to done by %s" % self.env.user.name + self.write({'state_message': message, 'state': 'done'}) diff --git a/attachment_metadata/security/ir.model.access.csv b/attachment_base_synchronize/security/ir.model.access.csv similarity index 100% rename from attachment_metadata/security/ir.model.access.csv rename to attachment_base_synchronize/security/ir.model.access.csv diff --git a/attachment_metadata/views/attachment_view.xml b/attachment_base_synchronize/views/attachment_view.xml similarity index 74% rename from attachment_metadata/views/attachment_view.xml rename to attachment_base_synchronize/views/attachment_view.xml index 71ed3a2cd..ae73825c5 100644 --- a/attachment_metadata/views/attachment_view.xml +++ b/attachment_base_synchronize/views/attachment_view.xml @@ -6,11 +6,26 @@ ir.attachment.metadata + +
+
+
+ + + + + + + @@ -21,6 +36,9 @@ + + + @@ -45,11 +63,15 @@ help="Filter on my documents"/> + + + - + + diff --git a/attachment_metadata/models/attachment.py b/attachment_metadata/models/attachment.py deleted file mode 100644 index 6fd9d52b0..000000000 --- a/attachment_metadata/models/attachment.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding: utf-8 -# Copyright (C) 2014 initOS GmbH & Co. KG (). -# @author: Joel Grand-Guillaume @ Camptocamp SA -# @ 2015 Valentin CHEMIERE @ Akretion -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from openerp import models, fields, api, _ -from openerp.exceptions import Warning as UserError -import hashlib -from base64 import b64decode - - -class IrAttachmentMetadata(models.Model): - _name = 'ir.attachment.metadata' - _inherits = {'ir.attachment': 'attachment_id'} - - internal_hash = fields.Char( - store=True, compute='_compute_hash', - help="File hash computed with file data to be compared " - "to external hash when provided.") - external_hash = fields.Char( - help="File hash comes from the external owner of the file.\n" - "If provided allow to check than downloaded file " - "is the exact copy of the original file.") - attachment_id = fields.Many2one( - 'ir.attachment', required=True, ondelete='cascade', - help="Link to ir.attachment model ") - file_type = fields.Selection( - selection="_get_file_type", - string="File type", - help="The file type determines an import method to be used " - "to parse and transform data before their import in ERP") - - @api.depends('datas', 'external_hash') - def _compute_hash(self): - for attachment in self: - if attachment.datas: - attachment.internal_hash = hashlib.md5( - b64decode(attachment.datas)).hexdigest() - if attachment.external_hash and\ - attachment.internal_hash != attachment.external_hash: - raise UserError( - _("File corrupted: Something was wrong with " - "the retrieved file, please relaunch the task.")) - - def _get_file_type(self): - """This is the method to be inherited for adding file types - The basic import do not apply any parsing or transform of the file. - The file is just added as an attachement - """ - return [('basic_import', 'Basic import')] From 7ff7efc5d072a4f674e277f63a6e666c14a69902 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 3 Aug 2016 19:21:24 +0200 Subject: [PATCH 18/20] change way to open new cursor --- attachment_base_synchronize/__openerp__.py | 1 + attachment_base_synchronize/i18n/fr.po | 334 +++++++++++------- .../models/attachment.py | 40 +-- 3 files changed, 226 insertions(+), 149 deletions(-) diff --git a/attachment_base_synchronize/__openerp__.py b/attachment_base_synchronize/__openerp__.py index 1e5c38119..2b0fbae79 100644 --- a/attachment_base_synchronize/__openerp__.py +++ b/attachment_base_synchronize/__openerp__.py @@ -11,6 +11,7 @@ 'category': 'Generic Modules', 'depends': [ 'base', + 'mail', ], 'data': [ 'views/attachment_view.xml', diff --git a/attachment_base_synchronize/i18n/fr.po b/attachment_base_synchronize/i18n/fr.po index 49cc26967..e784e6897 100644 --- a/attachment_base_synchronize/i18n/fr.po +++ b/attachment_base_synchronize/i18n/fr.po @@ -1,243 +1,319 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * attachment_metadata -# -# Translators: -# Christophe CHAUVET , 2016 +# * attachment_base_synchronize +# msgid "" msgstr "" -"Project-Id-Version: server-tools (8.0)\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-17 02:42+0000\n" -"PO-Revision-Date: 2016-06-23 09:22+0000\n" -"Last-Translator: Christophe CHAUVET \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-8-0/language/fr/)\n" +"POT-Creation-Date: 2016-08-10 16:34+0000\n" +"PO-Revision-Date: 2016-08-10 16:34+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" -"Language: fr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Plural-Forms: \n" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Attachment" msgstr "Pièce jointe" -#. module: attachment_metadata -#: field:ir.attachment.metadata,name:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_name msgid "Attachment Name" msgstr "Nom de la pièce jointe" -#. module: attachment_metadata -#: field:ir.attachment.metadata,attachment_id:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_local_url +msgid "Attachment URL" +msgstr "Lien de la pièce jointe" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_attachment_id msgid "Attachment id" msgstr "ID de la pièce jointe" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_tree +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_tree msgid "Attachments" msgstr "Pièces jointes" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Binary" msgstr "Binaire" -#. module: attachment_metadata -#: help:ir.attachment.metadata,type:0 -msgid "Binary File or URL" -msgstr "Fichier binaire ou URL" +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_checksum +msgid "Checksum/SHA1" +msgstr "Somme de Contrôle/SHA1" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search -#: field:ir.attachment.metadata,company_id:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_company_id +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Company" msgstr "Société" -#. module: attachment_metadata -#: field:ir.attachment.metadata,create_uid:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_create_uid msgid "Created by" msgstr "Créé par" -#. module: attachment_metadata -#: field:ir.attachment.metadata,create_date:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_create_date msgid "Created on" msgstr "Créé le" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Creation Month" -msgstr "" +msgstr "Mois de création" -#. module: attachment_metadata -#: field:ir.attachment.metadata,db_datas:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_db_datas msgid "Database Data" msgstr "Données de la base de données" -#. module: attachment_metadata -#: field:ir.attachment.metadata,description:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_description msgid "Description" msgstr "Description" -#. module: attachment_metadata -#: field:ir.attachment.metadata,display_name:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_display_name msgid "Display Name" -msgstr "Nom affiché" +msgstr "Afficher le nom" + +#. module: attachment_base_synchronize +#: selection:ir.attachment.metadata,state:0 +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search +msgid "Done" +msgstr "Terminé" + +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_attachment_improved_form +msgid "Error" +msgstr "Erreur" -#. module: attachment_metadata -#: field:ir.attachment.metadata,external_hash:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_external_hash msgid "External hash" msgstr "Empreinte externe" -#. module: attachment_metadata -#: field:ir.attachment.metadata,datas:0 +#. module: attachment_base_synchronize +#: selection:ir.attachment.metadata,state:0 +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search +msgid "Failed" +msgstr "Échec" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_datas msgid "File Content" msgstr "Contenu du fichier" -#. module: attachment_metadata -#: field:ir.attachment.metadata,datas_fname:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_datas_fname msgid "File Name" -msgstr "Nom du fichier" +msgstr "Nom de Fichier" -#. module: attachment_metadata -#: field:ir.attachment.metadata,file_size:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_file_size msgid "File Size" msgstr "Taille du fichier" -#. module: attachment_metadata -#: code:addons/attachment_metadata/models/attachment.py:43 +#. module: attachment_base_synchronize +#: code:addons/attachment_base_synchronize/models/attachment.py:53 #, python-format -msgid "" -"File corrupted: Something was wrong with the retrieved file, please relaunch" -" the task." -msgstr "Fichier corrompu: Quelque chose ne va pas lors de la récupération du fichier, veuillez relancer la tâche." +msgid "File corrupted: Something was wrong with the retrieved file, please relaunch the task." +msgstr "Fichier corrompu: Quelque chose s'est mal passé pendant la récupération du fichier, relancez la tache.." -#. module: attachment_metadata -#: help:ir.attachment.metadata,external_hash:0 -msgid "" -"File hash comes from the external owner of the file.\n" +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_external_hash +msgid "File hash comes from the external owner of the file.\n" +"If provided allow to check than downloaded file is the exact copy of the original file." +msgstr "File hash comes from the external owner of the file.\n" "If provided allow to check than downloaded file is the exact copy of the original file." -msgstr "" -#. module: attachment_metadata -#: help:ir.attachment.metadata,internal_hash:0 -msgid "" -"File hash computed with file data to be compared to external hash when " -"provided." -msgstr "" +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_internal_hash +msgid "File hash computed with file data to be compared to external hash when provided." +msgstr "File hash computed with file data to be compared to external hash when provided." -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search -#: field:ir.attachment.metadata,file_type:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_file_type +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "File type" msgstr "Type de fichier" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Filter on my documents" msgstr "Filtrer sur mes documents" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Group By" -msgstr "Grouper par" +msgstr "Regrouper par" -#. module: attachment_metadata -#: field:ir.attachment.metadata,id:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_id msgid "ID" -msgstr "ID" +msgstr "Identifiant" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_index_content +msgid "Indexed Content" +msgstr "Contenu Indexé" -#. module: attachment_metadata -#: field:ir.attachment.metadata,internal_hash:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_internal_hash msgid "Internal hash" msgstr "Empreinte interne" -#. module: attachment_metadata -#: field:ir.attachment.metadata,__last_update:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_public +msgid "Is public document" +msgstr "Est un document public" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata___last_update msgid "Last Modified on" msgstr "Dernière modification le" -#. module: attachment_metadata -#: field:ir.attachment.metadata,write_uid:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_write_uid msgid "Last Updated by" -msgstr "Mis à jour par" +msgstr "Dernière mise à jour par" -#. module: attachment_metadata -#: field:ir.attachment.metadata,write_date:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_write_date msgid "Last Updated on" -msgstr "Mis à jour le" +msgstr "Dernière mise à jour le" -#. module: attachment_metadata -#: help:ir.attachment.metadata,attachment_id:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_attachment_id msgid "Link to ir.attachment model " msgstr "Lien ver le modèle ir.attachment" -#. module: attachment_metadata -#: model:ir.actions.act_window,name:attachment_metadata.action_attachment -#: model:ir.ui.menu,name:attachment_metadata.menu_ir_attachment +#. module: attachment_base_synchronize +#: model:ir.actions.act_window,name:attachment_base_synchronize.action_attachment +#: model:ir.ui.menu,name:attachment_base_synchronize.menu_ir_attachment msgid "Meta data Attachments" -msgstr "Méta données des pièces jointes" +msgstr "Meta data Attachments" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_mimetype +msgid "Mime Type" +msgstr "Type Mime" + +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "My Document(s)" -msgstr "Mes docuement(s)" +msgstr "Mes Documents" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Owner" msgstr "Propriétaire" -#. module: attachment_metadata -#: field:ir.attachment.metadata,res_id:0 +#. module: attachment_base_synchronize +#: selection:ir.attachment.metadata,state:0 +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search +msgid "Pending" +msgstr "En attente" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_res_field +msgid "Resource Field" +msgstr "Champ ressource" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_res_id msgid "Resource ID" msgstr "ID de l'enregistrement" -#. module: attachment_metadata -#: field:ir.attachment.metadata,res_model:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_res_model msgid "Resource Model" -msgstr "" +msgstr "Modèle de la ressource" -#. module: attachment_metadata -#: field:ir.attachment.metadata,res_name:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_res_name msgid "Resource Name" msgstr "Nom de l'enregistrement" -#. module: attachment_metadata -#: field:ir.attachment.metadata,store_fname:0 +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_attachment_improved_form +msgid "Run" +msgstr "Run" + +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_attachment_improved_form +msgid "Set to Done" +msgstr "Marquer comme terminé" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_state +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search +msgid "State" +msgstr "État" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_state_message +msgid "State message" +msgstr "Message" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_store_fname msgid "Stored Filename" msgstr "Nom de fichier stocké" -#. module: attachment_metadata -#: help:ir.attachment.metadata,res_model:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_sync_date +msgid "Sync date" +msgstr "Sync date" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_res_model msgid "The database object this attachment will be attached to" -msgstr "" +msgstr "L'objet de la base de données auquel cette pièce jointe sera attachée" -#. module: attachment_metadata -#: help:ir.attachment.metadata,file_type:0 -msgid "" -"The file type determines an import method to be used to parse and transform " -"data before their import in ERP" -msgstr "" +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_file_type +msgid "The file type determines an import method to be used to parse and transform data before their import in ERP or an export" +msgstr "Le type de fichier détermine la méthode d'import à utiliser pour parser le fichier et transformer les données avant l'import dans l'ERP" -#. module: attachment_metadata -#: help:ir.attachment.metadata,res_id:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_res_id msgid "The record id this is attached to" -msgstr "" +msgstr "L'identifiant de l'enregistrement qui y est attaché" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search -#: field:ir.attachment.metadata,type:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_type +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "Type" msgstr "Type" -#. module: attachment_metadata -#: view:ir.attachment.metadata:attachment_metadata.view_external_attachment_search +#. module: attachment_base_synchronize +#: model:ir.ui.view,arch_db:attachment_base_synchronize.view_external_attachment_search msgid "URL" msgstr "URL" -#. module: attachment_metadata -#: field:ir.attachment.metadata,url:0 +#. module: attachment_base_synchronize +#: model:ir.model.fields,field_description:attachment_base_synchronize.field_ir_attachment_metadata_url msgid "Url" msgstr "Url" + +#. module: attachment_base_synchronize +#: model:ir.model.fields,help:attachment_base_synchronize.field_ir_attachment_metadata_type +msgid "You can either upload a file from your computer or copy/paste an internet link to your file" +msgstr "Vous pouvez, soit télécharger un fichier à partir de votre ordinateur soit copier / coller un lien Internet vers votre fichier" + +#. module: attachment_base_synchronize +#: model:ir.model,name:attachment_base_synchronize.model_ir_attachment_metadata +msgid "ir.attachment.metadata" +msgstr "ir.attachment.metadata" + diff --git a/attachment_base_synchronize/models/attachment.py b/attachment_base_synchronize/models/attachment.py index 21064e364..baba50fd8 100644 --- a/attachment_base_synchronize/models/attachment.py +++ b/attachment_base_synchronize/models/attachment.py @@ -4,7 +4,7 @@ from openerp import models, fields, api, _ from openerp.exceptions import Warning as UserError -from openerp import sql_db +import openerp import hashlib from base64 import b64decode import logging @@ -15,6 +15,7 @@ _logger = logging.getLogger(__name__) class IrAttachmentMetadata(models.Model): _name = 'ir.attachment.metadata' _inherits = {'ir.attachment': 'attachment_id'} + _inherit = ['mail.thread'] internal_hash = fields.Char( store=True, compute='_compute_hash', @@ -68,26 +69,25 @@ class IrAttachmentMetadata(models.Model): Run the process for each attachment metadata """ for attachment in self: - new_cr = sql_db.db_connect(self.env.cr.dbname).cursor() with api.Environment.manage(): - attachment.env = api.Environment(new_cr, self.env.uid, - self.env.context) - try: - attachment._run() - except Exception, e: - attachment.env.cr.rollback() - _logger.exception(e) - attachment.write( - { - 'state': 'failed', - 'state_message': unicode(e) - }) - attachment.env.cr.commit() - else: - attachment.write({'state': 'done'}) - attachment.env.cr.commit() - finally: - attachment.env.cr.close() + with openerp.registry(self.env.cr.dbname).cursor() as new_cr: + new_env = api.Environment( + new_cr, self.env.uid, self.env.context) + attach = attachment.with_env(new_env) + try: + attach._run() + except Exception, e: + attach.env.cr.rollback() + _logger.exception(e) + attach.write( + { + 'state': 'failed', + 'state_message': e, + }) + attach.env.cr.commit() + else: + attach.write({'state': 'done'}) + attach.env.cr.commit() return True @api.multi From dc19bd79dfe38d4453deb332094288958eec84d7 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Fri, 19 Aug 2016 17:48:03 +0200 Subject: [PATCH 19/20] Order ir attachment metadata by create date --- attachment_base_synchronize/views/attachment_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachment_base_synchronize/views/attachment_view.xml b/attachment_base_synchronize/views/attachment_view.xml index ae73825c5..7da173faf 100644 --- a/attachment_base_synchronize/views/attachment_view.xml +++ b/attachment_base_synchronize/views/attachment_view.xml @@ -32,7 +32,7 @@ ir.attachment.metadata - + From a52ffe47013007e26b55f74ed180231900fa166e Mon Sep 17 00:00:00 2001 From: Angel Moya Date: Mon, 3 Oct 2016 14:16:44 +0200 Subject: [PATCH 20/20] ADD tests --- attachment_base_synchronize/README.rst | 1 + attachment_base_synchronize/__openerp__.py | 3 ++ .../demo/attachment_metadata_demo.xml | 12 +++++ attachment_base_synchronize/tests/__init__.py | 5 ++ .../tests/test_attachment_base_synchronize.py | 50 +++++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 attachment_base_synchronize/demo/attachment_metadata_demo.xml create mode 100644 attachment_base_synchronize/tests/__init__.py create mode 100644 attachment_base_synchronize/tests/test_attachment_base_synchronize.py diff --git a/attachment_base_synchronize/README.rst b/attachment_base_synchronize/README.rst index 5abfa0cc4..fe25020d2 100644 --- a/attachment_base_synchronize/README.rst +++ b/attachment_base_synchronize/README.rst @@ -67,6 +67,7 @@ Contributors * Sebastien BEAU * Joel Grand-Guillaume Camptocamp * initOS +* Angel Moya Maintainer ---------- diff --git a/attachment_base_synchronize/__openerp__.py b/attachment_base_synchronize/__openerp__.py index 2b0fbae79..cdc33023c 100644 --- a/attachment_base_synchronize/__openerp__.py +++ b/attachment_base_synchronize/__openerp__.py @@ -18,6 +18,9 @@ 'security/ir.model.access.csv', 'data/cron.xml', ], + 'demo': [ + 'demo/attachment_metadata_demo.xml' + ], 'installable': True, 'application': False, 'images': [], diff --git a/attachment_base_synchronize/demo/attachment_metadata_demo.xml b/attachment_base_synchronize/demo/attachment_metadata_demo.xml new file mode 100644 index 000000000..1a8444557 --- /dev/null +++ b/attachment_base_synchronize/demo/attachment_metadata_demo.xml @@ -0,0 +1,12 @@ + + + + + + bWlncmF0aW9uIHRlc3Q= + attachment_metadata.doc + attachment_metadata.doc + + + + diff --git a/attachment_base_synchronize/tests/__init__.py b/attachment_base_synchronize/tests/__init__.py new file mode 100644 index 000000000..ef5480f44 --- /dev/null +++ b/attachment_base_synchronize/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Angel Moya (http://angelmoya.es) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_attachment_base_synchronize diff --git a/attachment_base_synchronize/tests/test_attachment_base_synchronize.py b/attachment_base_synchronize/tests/test_attachment_base_synchronize.py new file mode 100644 index 000000000..7ace25276 --- /dev/null +++ b/attachment_base_synchronize/tests/test_attachment_base_synchronize.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Angel Moya (http://angelmoya.es) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp.tests.common import TransactionCase +import openerp +from openerp import api + + +class TestAttachmentBaseSynchronize(TransactionCase): + + def setUp(self): + super(TestAttachmentBaseSynchronize, self).setUp() + self.registry.enter_test_mode() + self.env = api.Environment(self.registry.test_cr, self.env.uid, + self.env.context) + self.attachment = self.env.ref( + 'attachment_base_synchronize.attachment_metadata') + self.ir_attachment_metadata = self.env['ir.attachment.metadata'] + + def tearDown(self): + self.registry.leave_test_mode() + super(TestAttachmentBaseSynchronize, self).tearDown() + + def test_attachment_metadata(self): + """Test run_attachment_metadata_scheduler to ensure set state to done + """ + self.assertEqual( + self.attachment.state, + 'pending' + ) + self.ir_attachment_metadata.run_attachment_metadata_scheduler() + self.env.invalidate_all() + with openerp.registry(self.env.cr.dbname).cursor() as new_cr: + new_env = api.Environment( + new_cr, self.env.uid, self.env.context) + attach = self.attachment.with_env(new_env) + self.assertEqual( + attach.state, + 'done' + ) + + def test_set_done(self): + """Test set_done manually + """ + self.attachment.set_done() + self.assertEqual( + self.attachment.state, + 'done' + )