From 4a1f444b67f4f979bd1c7946e8203bed9b3dfb4d Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Thu, 7 Aug 2014 12:58:07 +0200 Subject: [PATCH 01/32] [ADD] Add account_invoice_constraint_chronology --- .../__init__.py | 31 ++++ .../__openerp__.py | 60 ++++++++ .../model/__init__.py | 31 ++++ .../model/account.py | 47 +++++++ .../model/account_invoice.py | 69 +++++++++ .../tests/__init__.py | 38 +++++ .../test_account_constraint_chronology.py | 133 ++++++++++++++++++ .../view/account_view.xml | 18 +++ 8 files changed, 427 insertions(+) create mode 100644 account_invoice_constraint_chronology/__init__.py create mode 100644 account_invoice_constraint_chronology/__openerp__.py create mode 100644 account_invoice_constraint_chronology/model/__init__.py create mode 100644 account_invoice_constraint_chronology/model/account.py create mode 100644 account_invoice_constraint_chronology/model/account_invoice.py create mode 100644 account_invoice_constraint_chronology/tests/__init__.py create mode 100644 account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py create mode 100644 account_invoice_constraint_chronology/view/account_view.xml diff --git a/account_invoice_constraint_chronology/__init__.py b/account_invoice_constraint_chronology/__init__.py new file mode 100644 index 000000000..dcf937772 --- /dev/null +++ b/account_invoice_constraint_chronology/__init__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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 model +from . import tests diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__openerp__.py new file mode 100644 index 000000000..a69b5ee06 --- /dev/null +++ b/account_invoice_constraint_chronology/__openerp__.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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": "Account Invoice Constraint Chronology", + "version": "1.0", + "author": "ACSONE SA/NV", + "maintainer": "ACSONE SA/NV", + "website": "http://www.acsone.eu", + "images": [], + "category": "Accounting", + "depends": [ + "account"], + "description": """ +Account Invoice Constraint Chronology +===================================== + +This module help ensuring the chronology of invoice numbers. + +It prevents the validation of invoices when: +* there are draft invoices with an anterior date +* there are validated invoices with a posterior date + +The check can be activated on a per-journal basis +(for sale and purchase journals). +""", + "data": ["view/account_view.xml"], + "demo": [], + "test": [], + "licence": "AGPL-3", + "installable": True, + "auto_install": False, + "application": True, +} diff --git a/account_invoice_constraint_chronology/model/__init__.py b/account_invoice_constraint_chronology/model/__init__.py new file mode 100644 index 000000000..d01496542 --- /dev/null +++ b/account_invoice_constraint_chronology/model/__init__.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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 account_invoice +from . import account diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py new file mode 100644 index 000000000..07cc781cd --- /dev/null +++ b/account_invoice_constraint_chronology/model/account.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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.osv import orm, fields + + +class account_jounrnal(orm.Model): + _inherit = "account.journal" + _columns = { + 'check_chronology': fields.boolean('Check Chronology'), + } + _defaults = { + 'check_chronology': False, + } + + def on_change_type(self, cr, uid, ids, type_journal, context=None): + value = {} + if type_journal not in ['sale', 'purchase', 'sale_refund', + 'purchase_refund']: + value.update({'check_chronology': False}) + return {'value': value} diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py new file mode 100644 index 000000000..63f9402c8 --- /dev/null +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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, api +from openerp.tools.translate import _ + + +class account_invoice(models.Model): + _inherit = "account.invoice" + + @api.multi + def action_move_create(self): + res = super(account_invoice, self).action_move_create() + for inv in self: + if inv.journal_id.check_chronology: + invoices = \ + self.search([('state', 'not in', + ['open', 'paid', 'cancel', 'proforma']), + ('date_invoice', '!=', False), + ('date_invoice', '<', inv.date_invoice), + ('journal_id', '=', inv.journal_id.id)]) + if len(invoices) > 0: + raise models.except_orm(_('Error !'), + _("Chronology Error!" + " Please confirm older draft" + " invoices before %s and" + " try again.") % + inv.date_invoice) + + if inv.internal_number is False: + invoices = self.search([('state', 'in', ['open', 'paid']), + ('date_invoice', '>', + inv.date_invoice), + ('journal_id', '=', + inv.journal_id.id)]) + if len(invoices) > 0: + raise models.except_orm(_('Error !'), + _("Chronology Error! There" + " exist at least one invoice" + " with a date posterior" + " to %s.") % + inv.date_invoice) + return res diff --git a/account_invoice_constraint_chronology/tests/__init__.py b/account_invoice_constraint_chronology/tests/__init__.py new file mode 100644 index 000000000..cd63538c6 --- /dev/null +++ b/account_invoice_constraint_chronology/tests/__init__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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 test_account_constraint_chronology + +fast_suite = [ + test_account_constraint_chronology, +] + +checks = [ + test_account_constraint_chronology, +] diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py new file mode 100644 index 000000000..c51c4e6e7 --- /dev/null +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +# +# +# Authors: Adrien Peiffer +# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) +# All Rights Reserved +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs. +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly advised to contact a Free Software +# Service Company. +# +# 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 . +# +# + +import openerp.tests.common as common +from openerp import workflow +from openerp.osv import orm +from datetime import datetime, timedelta + +DB = common.DB +ADMIN_USER_ID = common.ADMIN_USER_ID + + +def get_simple_product_id(self): + return self.registry('product.product').create(self.cr, + self.uid, + {'name': 'product_test_01', + 'lst_price': 2000.00, + }, context={}) + + +def get_journal_check(self, value): + sale_journal_id = self.ref('account.sales_journal') + journal_id = self.registry('account.journal').copy(self.cr, + self.uid, + sale_journal_id, + {}, + context={}) + self.registry('account.journal').write(self.cr, + self.uid, + [journal_id], + {'check_chronology': value}, + context={}) + return journal_id + + +def get_simple_account_invoice_line_values(self, product_id): + return {'name': 'test', + 'account_id': self.ref('account.a_sale'), + 'price_unit': 2000.00, + 'quantity': 1, + 'product_id': product_id, + } + + +def create_simple_invoice(self, journal_id, date): + partner_id = self.ref('base.res_partner_2') + product_id = get_simple_product_id(self) + return self.env['account.invoice']\ + .create({'partner_id': partner_id, + 'account_id': + self.ref('account.a_recv'), + 'journal_id': + journal_id, + 'date_invoice': date, + 'invoice_line': [(0, 0, {'name': 'test', + 'account_id': + self.ref('account.a_sale'), + 'price_unit': 2000.00, + 'quantity': 1, + 'product_id': product_id, + } + ) + ], + }) + + +class TestAccountConstraintChronology(common.TransactionCase): + + def setUp(self): + super(TestAccountConstraintChronology, self).setUp() + + def test_invoice_draft(self): + journal_id = get_journal_check(self, True) + today = datetime.now() + yesterday = today - timedelta(days=1) + date = yesterday.strftime('%Y-%m-%d') + create_simple_invoice(self, journal_id, date) + date = today.strftime('%Y-%m-%d') + invoice_2 = create_simple_invoice(self, journal_id, date) + self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, + 'account.invoice', invoice_2.id, 'invoice_open', + self.cr) + + def test_invoice_validate(self): + journal_id = get_journal_check(self, True) + today = datetime.now() + tomorrow = today + timedelta(days=1) + date = tomorrow.strftime('%Y-%m-%d') + invoice = create_simple_invoice(self, journal_id, date) + workflow.trg_validate(self.uid, 'account.invoice', invoice.id, + 'invoice_open', self.cr) + date = today.strftime('%Y-%m-%d') + invoice_2 = create_simple_invoice(self, journal_id, date) + self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, + 'account.invoice', invoice_2.id, 'invoice_open', + self.cr) + + def test_invoice_without_date(self): + journal_id = get_journal_check(self, True) + today = datetime.now() + yesterday = today - timedelta(days=1) + date = yesterday.strftime('%Y-%m-%d') + create_simple_invoice(self, journal_id, date) + invoice_2 = create_simple_invoice(self, journal_id, False) + self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, + 'account.invoice', invoice_2.id, 'invoice_open', + self.cr) diff --git a/account_invoice_constraint_chronology/view/account_view.xml b/account_invoice_constraint_chronology/view/account_view.xml new file mode 100644 index 000000000..892ef81b9 --- /dev/null +++ b/account_invoice_constraint_chronology/view/account_view.xml @@ -0,0 +1,18 @@ + + + + + account.journal.form (account_constraint_chronology) + account.journal + + + + + + + on_change_type(type) + + + + + \ No newline at end of file From d1911c07edc639682956325db74252ed648d424e Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Thu, 14 Aug 2014 09:52:19 +0200 Subject: [PATCH 02/32] [IMP] Use new API on account_invoice_constraint_chronology for account.py --- .../model/account.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 07cc781cd..5a03f336d 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -27,19 +27,16 @@ # # -from openerp.osv import orm, fields +from openerp import models, fields, api -class account_jounrnal(orm.Model): - _inherit = "account.journal" - _columns = { - 'check_chronology': fields.boolean('Check Chronology'), - } - _defaults = { - 'check_chronology': False, - } +class account_jounrnal(models.Model): + _inherit = ['account.journal'] - def on_change_type(self, cr, uid, ids, type_journal, context=None): + check_chronology = fields.Boolean(string='Check Chronology', default=False) + + @api.multi + def on_change_type(self, type_journal, context=None): value = {} if type_journal not in ['sale', 'purchase', 'sale_refund', 'purchase_refund']: From 6aca29bfff8ccb575636f7e2a2dbb3f388ab8093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Thu, 14 Aug 2014 13:22:55 +0200 Subject: [PATCH 03/32] [IMP] account_inv/account_invoice_constraint_chronology doc spelling --- account_invoice_constraint_chronology/__openerp__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__openerp__.py index a69b5ee06..46a44738b 100644 --- a/account_invoice_constraint_chronology/__openerp__.py +++ b/account_invoice_constraint_chronology/__openerp__.py @@ -35,13 +35,12 @@ "website": "http://www.acsone.eu", "images": [], "category": "Accounting", - "depends": [ - "account"], + "depends": ["account"], "description": """ Account Invoice Constraint Chronology ===================================== -This module help ensuring the chronology of invoice numbers. +This module helps ensuring the chronology of invoice numbers. It prevents the validation of invoices when: * there are draft invoices with an anterior date From d79ccf16de64bf9c1678e77c2523ccb9c1b9ea92 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Mon, 18 Aug 2014 11:06:23 +0200 Subject: [PATCH 04/32] [IMP] Exclude proforma2 state for draft invoice check on account_invoice_constraint_chronology --- account_invoice_constraint_chronology/model/account_invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 63f9402c8..572bd0f7e 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -41,7 +41,8 @@ class account_invoice(models.Model): if inv.journal_id.check_chronology: invoices = \ self.search([('state', 'not in', - ['open', 'paid', 'cancel', 'proforma']), + ['open', 'paid', 'cancel', 'proforma', + 'proforma2']), ('date_invoice', '!=', False), ('date_invoice', '<', inv.date_invoice), ('journal_id', '=', inv.journal_id.id)]) From 246755bdfd5b46465eef5ecd56359ab6e209f1c1 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Mon, 18 Aug 2014 11:14:32 +0200 Subject: [PATCH 05/32] [IMP] DEFAULT_SERVER_DATE_FORMAT --- .../tests/test_account_constraint_chronology.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index c51c4e6e7..bf97d0a81 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -31,6 +31,7 @@ import openerp.tests.common as common from openerp import workflow from openerp.osv import orm from datetime import datetime, timedelta +from openerp.tools import DEFAULT_SERVER_DATE_FORMAT DB = common.DB ADMIN_USER_ID = common.ADMIN_USER_ID @@ -99,9 +100,9 @@ class TestAccountConstraintChronology(common.TransactionCase): journal_id = get_journal_check(self, True) today = datetime.now() yesterday = today - timedelta(days=1) - date = yesterday.strftime('%Y-%m-%d') + date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) create_simple_invoice(self, journal_id, date) - date = today.strftime('%Y-%m-%d') + date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_2 = create_simple_invoice(self, journal_id, date) self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', @@ -111,11 +112,11 @@ class TestAccountConstraintChronology(common.TransactionCase): journal_id = get_journal_check(self, True) today = datetime.now() tomorrow = today + timedelta(days=1) - date = tomorrow.strftime('%Y-%m-%d') + date = tomorrow.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice = create_simple_invoice(self, journal_id, date) workflow.trg_validate(self.uid, 'account.invoice', invoice.id, 'invoice_open', self.cr) - date = today.strftime('%Y-%m-%d') + date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_2 = create_simple_invoice(self, journal_id, date) self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', @@ -125,7 +126,7 @@ class TestAccountConstraintChronology(common.TransactionCase): journal_id = get_journal_check(self, True) today = datetime.now() yesterday = today - timedelta(days=1) - date = yesterday.strftime('%Y-%m-%d') + date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) create_simple_invoice(self, journal_id, date) invoice_2 = create_simple_invoice(self, journal_id, False) self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, From 6de46236386444df2e1f90fd8a40eb77993d5933 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Tue, 19 Aug 2014 17:09:23 +0200 Subject: [PATCH 06/32] [IMP] display formatted date with context timezone in exception popup for account_invoice_constraint_chronology addons --- .../model/account_invoice.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 572bd0f7e..b964b13e9 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -27,8 +27,10 @@ # # -from openerp import models, api +from openerp import models, api, fields from openerp.tools.translate import _ +from openerp.tools import DEFAULT_SERVER_DATE_FORMAT +from datetime import datetime class account_invoice(models.Model): @@ -47,12 +49,17 @@ class account_invoice(models.Model): ('date_invoice', '<', inv.date_invoice), ('journal_id', '=', inv.journal_id.id)]) if len(invoices) > 0: + date_invoice_format = datetime\ + .strptime(inv.date_invoice, + DEFAULT_SERVER_DATE_FORMAT) + date_invoice_tz = fields\ + .Date.context_today(self, date_invoice_format) raise models.except_orm(_('Error !'), _("Chronology Error!" " Please confirm older draft" " invoices before %s and" " try again.") % - inv.date_invoice) + date_invoice_tz) if inv.internal_number is False: invoices = self.search([('state', 'in', ['open', 'paid']), @@ -61,10 +68,15 @@ class account_invoice(models.Model): ('journal_id', '=', inv.journal_id.id)]) if len(invoices) > 0: + date_invoice_format = datetime\ + .strptime(inv.date_invoice, + DEFAULT_SERVER_DATE_FORMAT) + date_invoice_tz = fields\ + .Date.context_today(self, date_invoice_format) raise models.except_orm(_('Error !'), _("Chronology Error! There" " exist at least one invoice" " with a date posterior" " to %s.") % - inv.date_invoice) + date_invoice_tz) return res From a1e51c5e7f5f34aeaada9d5103fb1c06415f3814 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Tue, 19 Aug 2014 17:10:52 +0200 Subject: [PATCH 07/32] [ADD] Add context in tests for account_invoice_constraint_chronology addons --- .../tests/test_account_constraint_chronology.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index bf97d0a81..8c7c4f366 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -42,7 +42,7 @@ def get_simple_product_id(self): self.uid, {'name': 'product_test_01', 'lst_price': 2000.00, - }, context={}) + }, context=self.context) def get_journal_check(self, value): @@ -50,13 +50,13 @@ def get_journal_check(self, value): journal_id = self.registry('account.journal').copy(self.cr, self.uid, sale_journal_id, - {}, - context={}) + self.context, + context=self.context) self.registry('account.journal').write(self.cr, self.uid, [journal_id], {'check_chronology': value}, - context={}) + context=self.context) return journal_id @@ -95,6 +95,8 @@ class TestAccountConstraintChronology(common.TransactionCase): def setUp(self): super(TestAccountConstraintChronology, self).setUp() + self.context = self.registry("res.users").context_get(self.cr, + self.uid) def test_invoice_draft(self): journal_id = get_journal_check(self, True) From deb618521bb1a6e845f3c7cd0016f749640fa477 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Wed, 20 Aug 2014 11:24:05 +0200 Subject: [PATCH 08/32] [IMP] Use exceptions.warning for account_invoice_constraint_chronology addons --- .../model/account_invoice.py | 23 +++++++++---------- .../test_account_constraint_chronology.py | 8 +++---- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index b964b13e9..63b8e454f 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -31,6 +31,7 @@ from openerp import models, api, fields from openerp.tools.translate import _ from openerp.tools import DEFAULT_SERVER_DATE_FORMAT from datetime import datetime +from openerp import exceptions class account_invoice(models.Model): @@ -54,12 +55,11 @@ class account_invoice(models.Model): DEFAULT_SERVER_DATE_FORMAT) date_invoice_tz = fields\ .Date.context_today(self, date_invoice_format) - raise models.except_orm(_('Error !'), - _("Chronology Error!" - " Please confirm older draft" - " invoices before %s and" - " try again.") % - date_invoice_tz) + raise exceptions.Warning(_("Chronology Error!" + " Please confirm older draft" + " invoices before %s and" + " try again.") % + date_invoice_tz) if inv.internal_number is False: invoices = self.search([('state', 'in', ['open', 'paid']), @@ -73,10 +73,9 @@ class account_invoice(models.Model): DEFAULT_SERVER_DATE_FORMAT) date_invoice_tz = fields\ .Date.context_today(self, date_invoice_format) - raise models.except_orm(_('Error !'), - _("Chronology Error! There" - " exist at least one invoice" - " with a date posterior" - " to %s.") % - date_invoice_tz) + raise exceptions.Warning(_("Chronology Error! There" + " exist at least one" + " invoice with a date" + " posterior to %s.") % + date_invoice_tz) return res diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index 8c7c4f366..04cf60091 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -29,7 +29,7 @@ import openerp.tests.common as common from openerp import workflow -from openerp.osv import orm +from openerp import exceptions from datetime import datetime, timedelta from openerp.tools import DEFAULT_SERVER_DATE_FORMAT @@ -106,7 +106,7 @@ class TestAccountConstraintChronology(common.TransactionCase): create_simple_invoice(self, journal_id, date) date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_2 = create_simple_invoice(self, journal_id, date) - self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, + self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', self.cr) @@ -120,7 +120,7 @@ class TestAccountConstraintChronology(common.TransactionCase): 'invoice_open', self.cr) date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_2 = create_simple_invoice(self, journal_id, date) - self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, + self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', self.cr) @@ -131,6 +131,6 @@ class TestAccountConstraintChronology(common.TransactionCase): date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) create_simple_invoice(self, journal_id, date) invoice_2 = create_simple_invoice(self, journal_id, False) - self.assertRaises(orm.except_orm, workflow.trg_validate, self.uid, + self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', self.cr) From c353a3aa140ed379d8d68cac3f34d453bd866c4c Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Wed, 20 Aug 2014 11:57:29 +0200 Subject: [PATCH 09/32] [IMP] Remove exclamation mark --- .../model/account_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 63b8e454f..27034925d 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -55,7 +55,7 @@ class account_invoice(models.Model): DEFAULT_SERVER_DATE_FORMAT) date_invoice_tz = fields\ .Date.context_today(self, date_invoice_format) - raise exceptions.Warning(_("Chronology Error!" + raise exceptions.Warning(_("Chronology Error." " Please confirm older draft" " invoices before %s and" " try again.") % @@ -73,7 +73,7 @@ class account_invoice(models.Model): DEFAULT_SERVER_DATE_FORMAT) date_invoice_tz = fields\ .Date.context_today(self, date_invoice_format) - raise exceptions.Warning(_("Chronology Error! There" + raise exceptions.Warning(_("Chronology Error. There" " exist at least one" " invoice with a date" " posterior to %s.") % From 2ea5af3d9f2ed727f9d0ed5faa438755969ce997 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Wed, 20 Aug 2014 16:54:57 +0200 Subject: [PATCH 10/32] [ADD] Add .pot file for account_invoice_constraint_chronology --- .../account_invoice_constraint_chronology.pot | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 account_invoice_constraint_chronology/i18n/account_invoice_constraint_chronology.pot diff --git a/account_invoice_constraint_chronology/i18n/account_invoice_constraint_chronology.pot b/account_invoice_constraint_chronology/i18n/account_invoice_constraint_chronology.pot new file mode 100644 index 000000000..c13b71e5f --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/account_invoice_constraint_chronology.pot @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0rc1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-08-20 14:51+0000\n" +"PO-Revision-Date: 2014-08-20 14:51+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:58 +#, python-format +msgid "Chronology Error. Please confirm older draft invoices before %s and try again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:76 +#, python-format +msgid "Chronology Error. There exist at least one invoice with a date posterior to %s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "" + From b0e75fd0027f56ccbc727617c27660cb78e19638 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Fri, 5 Sep 2014 13:22:10 +0200 Subject: [PATCH 11/32] [IMP] Use .env for account_invoice_constraint_chronology tests --- .../test_account_constraint_chronology.py | 45 ++++++++----------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index 04cf60091..70895831e 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -38,26 +38,17 @@ ADMIN_USER_ID = common.ADMIN_USER_ID def get_simple_product_id(self): - return self.registry('product.product').create(self.cr, - self.uid, - {'name': 'product_test_01', - 'lst_price': 2000.00, - }, context=self.context) + return self.env['product.product'].create({'name': 'product_test_01', + 'lst_price': 2000.00, + }) def get_journal_check(self, value): sale_journal_id = self.ref('account.sales_journal') - journal_id = self.registry('account.journal').copy(self.cr, - self.uid, - sale_journal_id, - self.context, - context=self.context) - self.registry('account.journal').write(self.cr, - self.uid, - [journal_id], - {'check_chronology': value}, - context=self.context) - return journal_id + sale_journal = self.env['account.journal'].browse([sale_journal_id]) + journal = sale_journal.copy() + journal.check_chronology = value + return journal def get_simple_account_invoice_line_values(self, product_id): @@ -71,7 +62,7 @@ def get_simple_account_invoice_line_values(self, product_id): def create_simple_invoice(self, journal_id, date): partner_id = self.ref('base.res_partner_2') - product_id = get_simple_product_id(self) + product = get_simple_product_id(self) return self.env['account.invoice']\ .create({'partner_id': partner_id, 'account_id': @@ -84,7 +75,7 @@ def create_simple_invoice(self, journal_id, date): self.ref('account.a_sale'), 'price_unit': 2000.00, 'quantity': 1, - 'product_id': product_id, + 'product_id': product.id, } ) ], @@ -99,38 +90,38 @@ class TestAccountConstraintChronology(common.TransactionCase): self.uid) def test_invoice_draft(self): - journal_id = get_journal_check(self, True) + journal = get_journal_check(self, True) today = datetime.now() yesterday = today - timedelta(days=1) date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) - create_simple_invoice(self, journal_id, date) + create_simple_invoice(self, journal.id, date) date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice_2 = create_simple_invoice(self, journal_id, date) + invoice_2 = create_simple_invoice(self, journal.id, date) self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', self.cr) def test_invoice_validate(self): - journal_id = get_journal_check(self, True) + journal = get_journal_check(self, True) today = datetime.now() tomorrow = today + timedelta(days=1) date = tomorrow.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice = create_simple_invoice(self, journal_id, date) + invoice = create_simple_invoice(self, journal.id, date) workflow.trg_validate(self.uid, 'account.invoice', invoice.id, 'invoice_open', self.cr) date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice_2 = create_simple_invoice(self, journal_id, date) + invoice_2 = create_simple_invoice(self, journal.id, date) self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', self.cr) def test_invoice_without_date(self): - journal_id = get_journal_check(self, True) + journal = get_journal_check(self, True) today = datetime.now() yesterday = today - timedelta(days=1) date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) - create_simple_invoice(self, journal_id, date) - invoice_2 = create_simple_invoice(self, journal_id, False) + create_simple_invoice(self, journal.id, date) + invoice_2 = create_simple_invoice(self, journal.id, False) self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, 'account.invoice', invoice_2.id, 'invoice_open', self.cr) From 838d8c989a2ce132a43e11dd7230b76f85567782 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Fri, 5 Sep 2014 13:27:13 +0200 Subject: [PATCH 12/32] [IMP] Use onchange decorator, add white space at end of file, correct ypo mistake for account_invoice_constraint_chronology --- .../model/account.py | 16 ++++++++-------- .../view/account_view.xml | 5 +---- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 5a03f336d..9a7d36337 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -30,15 +30,15 @@ from openerp import models, fields, api -class account_jounrnal(models.Model): +class account_journal(models.Model): _inherit = ['account.journal'] check_chronology = fields.Boolean(string='Check Chronology', default=False) - @api.multi - def on_change_type(self, type_journal, context=None): - value = {} - if type_journal not in ['sale', 'purchase', 'sale_refund', - 'purchase_refund']: - value.update({'check_chronology': False}) - return {'value': value} + @api.one + @api.onchange('type') + def on_change_type(self): + if self.type not in ['sale', 'purchase', 'sale_refund', + 'purchase_refund']: + self.check_chronology = False + return True diff --git a/account_invoice_constraint_chronology/view/account_view.xml b/account_invoice_constraint_chronology/view/account_view.xml index 892ef81b9..1fc86dfe7 100644 --- a/account_invoice_constraint_chronology/view/account_view.xml +++ b/account_invoice_constraint_chronology/view/account_view.xml @@ -9,10 +9,7 @@ - - on_change_type(type) - - \ No newline at end of file + From b6d1d53b90474eff0756ba7bd34d8e7059536551 Mon Sep 17 00:00:00 2001 From: Adrien Peiffer Date: Mon, 15 Sep 2014 10:25:17 +0200 Subject: [PATCH 13/32] [IMP] Improve performance --- .../model/account_invoice.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 27034925d..c9ac805f5 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -48,7 +48,8 @@ class account_invoice(models.Model): 'proforma2']), ('date_invoice', '!=', False), ('date_invoice', '<', inv.date_invoice), - ('journal_id', '=', inv.journal_id.id)]) + ('journal_id', '=', inv.journal_id.id)], + limit=1) if len(invoices) > 0: date_invoice_format = datetime\ .strptime(inv.date_invoice, @@ -66,7 +67,8 @@ class account_invoice(models.Model): ('date_invoice', '>', inv.date_invoice), ('journal_id', '=', - inv.journal_id.id)]) + inv.journal_id.id)], + limit=1) if len(invoices) > 0: date_invoice_format = datetime\ .strptime(inv.date_invoice, From 6c0e5c9793dd8935d25b0900e501207f7e104bbf Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Fri, 6 Feb 2015 15:29:53 +0100 Subject: [PATCH 14/32] Add license key in __openerp__.py --- account_invoice_constraint_chronology/__openerp__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__openerp__.py index 46a44738b..e5b395040 100644 --- a/account_invoice_constraint_chronology/__openerp__.py +++ b/account_invoice_constraint_chronology/__openerp__.py @@ -33,6 +33,7 @@ "author": "ACSONE SA/NV", "maintainer": "ACSONE SA/NV", "website": "http://www.acsone.eu", + "license": "AGPL-3", "images": [], "category": "Accounting", "depends": ["account"], From d067dfde7cb750a125f273cb9a5d7d550e18e839 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 2 Mar 2015 17:22:41 +0100 Subject: [PATCH 15/32] Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. --- account_invoice_constraint_chronology/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__openerp__.py index e5b395040..d5cdf638d 100644 --- a/account_invoice_constraint_chronology/__openerp__.py +++ b/account_invoice_constraint_chronology/__openerp__.py @@ -30,7 +30,7 @@ { "name": "Account Invoice Constraint Chronology", "version": "1.0", - "author": "ACSONE SA/NV", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV", "website": "http://www.acsone.eu", "license": "AGPL-3", From d8f088ec5a7f03923d158fd55c6682e49c71d50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 12 Jun 2015 18:53:39 +0200 Subject: [PATCH 16/32] [FIX] common.DB does not exist anymore in stable 8.0 It was not used in these tests anyway. --- .../tests/test_account_constraint_chronology.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index 70895831e..df5a2ed7a 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -33,9 +33,6 @@ from openerp import exceptions from datetime import datetime, timedelta from openerp.tools import DEFAULT_SERVER_DATE_FORMAT -DB = common.DB -ADMIN_USER_ID = common.ADMIN_USER_ID - def get_simple_product_id(self): return self.env['product.product'].create({'name': 'product_test_01', From 93c012ed36c444f41a36c5952db6f178d832f96a Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Tue, 18 Aug 2015 10:32:25 +0200 Subject: [PATCH 17/32] Add missing default oca icons --- .../static/description/icon.png | Bin 0 -> 9455 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 account_invoice_constraint_chronology/static/description/icon.png diff --git a/account_invoice_constraint_chronology/static/description/icon.png b/account_invoice_constraint_chronology/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz# z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K= z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C zuVl&0duN<;uOsB3%T9Fp8t{ED108<+W(nOZd?gDnfNBC3>M8WE61$So|P zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1 zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_ zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8 zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ> zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD z#z-)AXwSRY?OPefw^iI+ z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$ z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6 zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+ z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC) zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x! zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8 z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n= z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@ zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y< zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6 zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6% z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(| z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6 z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d} z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB z z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG z-wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 From c850e22159df0cdf1e3b8583796ed7881aee58cd Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Thu, 27 Aug 2015 16:53:30 +0200 Subject: [PATCH 18/32] remove deprecated test suite declarations these cause Warnings during the tests --- account_invoice_constraint_chronology/tests/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/account_invoice_constraint_chronology/tests/__init__.py b/account_invoice_constraint_chronology/tests/__init__.py index cd63538c6..3dd2ee2c0 100644 --- a/account_invoice_constraint_chronology/tests/__init__.py +++ b/account_invoice_constraint_chronology/tests/__init__.py @@ -28,11 +28,3 @@ # from . import test_account_constraint_chronology - -fast_suite = [ - test_account_constraint_chronology, -] - -checks = [ - test_account_constraint_chronology, -] From 7392fa62d58fc410cd2322a65923397e9aadac30 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 12 Sep 2015 17:39:28 -0400 Subject: [PATCH 19/32] OCA Transbot updated translations from Transifex --- .../i18n/ar.po | 49 ++++++++++++++++++ .../i18n/bs.po | 49 ++++++++++++++++++ .../i18n/ca.po | 49 ++++++++++++++++++ .../i18n/cs.po | 49 ++++++++++++++++++ .../i18n/de.po | 49 ++++++++++++++++++ .../i18n/en.po | 49 ++++++++++++++++++ .../i18n/en_GB.po | 49 ++++++++++++++++++ .../i18n/es.po | 49 ++++++++++++++++++ .../i18n/es_CR.po | 49 ++++++++++++++++++ .../i18n/es_EC.po | 49 ++++++++++++++++++ .../i18n/es_MX.po | 49 ++++++++++++++++++ .../i18n/es_VE.po | 49 ++++++++++++++++++ .../i18n/et.po | 49 ++++++++++++++++++ .../i18n/fr.po | 49 ++++++++++++++++++ .../i18n/hr.po | 49 ++++++++++++++++++ .../i18n/hu.po | 49 ++++++++++++++++++ .../i18n/id.po | 49 ++++++++++++++++++ .../i18n/it.po | 49 ++++++++++++++++++ .../i18n/ja.po | 49 ++++++++++++++++++ .../i18n/lt.po | 49 ++++++++++++++++++ .../i18n/mk.po | 49 ++++++++++++++++++ .../i18n/mn.po | 49 ++++++++++++++++++ .../i18n/nb.po | 49 ++++++++++++++++++ .../i18n/nl.po | 49 ++++++++++++++++++ .../i18n/nl_BE.po | 49 ++++++++++++++++++ .../i18n/pl.po | 49 ++++++++++++++++++ .../i18n/pt.po | 49 ++++++++++++++++++ .../i18n/pt_BR.po | 49 ++++++++++++++++++ .../i18n/ro.po | 49 ++++++++++++++++++ .../i18n/ru.po | 49 ++++++++++++++++++ .../i18n/sl.po | 50 +++++++++++++++++++ .../i18n/sr@latin.po | 49 ++++++++++++++++++ .../i18n/sv.po | 49 ++++++++++++++++++ .../i18n/th.po | 49 ++++++++++++++++++ .../i18n/tr.po | 49 ++++++++++++++++++ .../i18n/vi.po | 49 ++++++++++++++++++ .../i18n/zh_CN.po | 49 ++++++++++++++++++ .../i18n/zh_TW.po | 49 ++++++++++++++++++ 38 files changed, 1863 insertions(+) create mode 100644 account_invoice_constraint_chronology/i18n/ar.po create mode 100644 account_invoice_constraint_chronology/i18n/bs.po create mode 100644 account_invoice_constraint_chronology/i18n/ca.po create mode 100644 account_invoice_constraint_chronology/i18n/cs.po create mode 100644 account_invoice_constraint_chronology/i18n/de.po create mode 100644 account_invoice_constraint_chronology/i18n/en.po create mode 100644 account_invoice_constraint_chronology/i18n/en_GB.po create mode 100644 account_invoice_constraint_chronology/i18n/es.po create mode 100644 account_invoice_constraint_chronology/i18n/es_CR.po create mode 100644 account_invoice_constraint_chronology/i18n/es_EC.po create mode 100644 account_invoice_constraint_chronology/i18n/es_MX.po create mode 100644 account_invoice_constraint_chronology/i18n/es_VE.po create mode 100644 account_invoice_constraint_chronology/i18n/et.po create mode 100644 account_invoice_constraint_chronology/i18n/fr.po create mode 100644 account_invoice_constraint_chronology/i18n/hr.po create mode 100644 account_invoice_constraint_chronology/i18n/hu.po create mode 100644 account_invoice_constraint_chronology/i18n/id.po create mode 100644 account_invoice_constraint_chronology/i18n/it.po create mode 100644 account_invoice_constraint_chronology/i18n/ja.po create mode 100644 account_invoice_constraint_chronology/i18n/lt.po create mode 100644 account_invoice_constraint_chronology/i18n/mk.po create mode 100644 account_invoice_constraint_chronology/i18n/mn.po create mode 100644 account_invoice_constraint_chronology/i18n/nb.po create mode 100644 account_invoice_constraint_chronology/i18n/nl.po create mode 100644 account_invoice_constraint_chronology/i18n/nl_BE.po create mode 100644 account_invoice_constraint_chronology/i18n/pl.po create mode 100644 account_invoice_constraint_chronology/i18n/pt.po create mode 100644 account_invoice_constraint_chronology/i18n/pt_BR.po create mode 100644 account_invoice_constraint_chronology/i18n/ro.po create mode 100644 account_invoice_constraint_chronology/i18n/ru.po create mode 100644 account_invoice_constraint_chronology/i18n/sl.po create mode 100644 account_invoice_constraint_chronology/i18n/sr@latin.po create mode 100644 account_invoice_constraint_chronology/i18n/sv.po create mode 100644 account_invoice_constraint_chronology/i18n/th.po create mode 100644 account_invoice_constraint_chronology/i18n/tr.po create mode 100644 account_invoice_constraint_chronology/i18n/vi.po create mode 100644 account_invoice_constraint_chronology/i18n/zh_CN.po create mode 100644 account_invoice_constraint_chronology/i18n/zh_TW.po diff --git a/account_invoice_constraint_chronology/i18n/ar.po b/account_invoice_constraint_chronology/i18n/ar.po new file mode 100644 index 000000000..860a90ddf --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/ar.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Arabic (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/ar/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "فاتورة" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "السجل اليومي" diff --git a/account_invoice_constraint_chronology/i18n/bs.po b/account_invoice_constraint_chronology/i18n/bs.po new file mode 100644 index 000000000..3dd3968eb --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/bs.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Bosnian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/bs/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: bs\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Dnevnik" diff --git a/account_invoice_constraint_chronology/i18n/ca.po b/account_invoice_constraint_chronology/i18n/ca.po new file mode 100644 index 000000000..46bd4afeb --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/ca.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diari" diff --git a/account_invoice_constraint_chronology/i18n/cs.po b/account_invoice_constraint_chronology/i18n/cs.po new file mode 100644 index 000000000..007685165 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/cs.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Czech (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/cs/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: cs\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Deník" diff --git a/account_invoice_constraint_chronology/i18n/de.po b/account_invoice_constraint_chronology/i18n/de.po new file mode 100644 index 000000000..e517978e6 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/de.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Rechnung" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journal" diff --git a/account_invoice_constraint_chronology/i18n/en.po b/account_invoice_constraint_chronology/i18n/en.po new file mode 100644 index 000000000..1457b91cd --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/en.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: English (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "Check Chronology" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "Chronology Error. Please confirm older draft invoices before %s and try again." + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "Chronology Error. There exist at least one invoice with a date posterior to %s." + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Invoice" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journal" diff --git a/account_invoice_constraint_chronology/i18n/en_GB.po b/account_invoice_constraint_chronology/i18n/en_GB.po new file mode 100644 index 000000000..1cfaab217 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/en_GB.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: English (United Kingdom) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/en_GB/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Invoice" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journal" diff --git a/account_invoice_constraint_chronology/i18n/es.po b/account_invoice_constraint_chronology/i18n/es.po new file mode 100644 index 000000000..0d2e3c71c --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/es.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diario" diff --git a/account_invoice_constraint_chronology/i18n/es_CR.po b/account_invoice_constraint_chronology/i18n/es_CR.po new file mode 100644 index 000000000..5f8b6a9d1 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/es_CR.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Costa Rica) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es_CR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_CR\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diario" diff --git a/account_invoice_constraint_chronology/i18n/es_EC.po b/account_invoice_constraint_chronology/i18n/es_EC.po new file mode 100644 index 000000000..212b04c57 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/es_EC.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Ecuador) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es_EC/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_EC\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diario" diff --git a/account_invoice_constraint_chronology/i18n/es_MX.po b/account_invoice_constraint_chronology/i18n/es_MX.po new file mode 100644 index 000000000..0ea03a995 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/es_MX.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es_MX/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diario" diff --git a/account_invoice_constraint_chronology/i18n/es_VE.po b/account_invoice_constraint_chronology/i18n/es_VE.po new file mode 100644 index 000000000..423c2c880 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/es_VE.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Venezuela) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es_VE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_VE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diario" diff --git a/account_invoice_constraint_chronology/i18n/et.po b/account_invoice_constraint_chronology/i18n/et.po new file mode 100644 index 000000000..73f4c7d64 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/et.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Estonian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/et/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Arve" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Päevik" diff --git a/account_invoice_constraint_chronology/i18n/fr.po b/account_invoice_constraint_chronology/i18n/fr.po new file mode 100644 index 000000000..4e2b5dfd1 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/fr.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: French (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Facture" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journal" diff --git a/account_invoice_constraint_chronology/i18n/hr.po b/account_invoice_constraint_chronology/i18n/hr.po new file mode 100644 index 000000000..a4d0ff93f --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/hr.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Račun" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Temeljnica" diff --git a/account_invoice_constraint_chronology/i18n/hu.po b/account_invoice_constraint_chronology/i18n/hu.po new file mode 100644 index 000000000..a617a5948 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/hu.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Hungarian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/hu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Számla" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Napló" diff --git a/account_invoice_constraint_chronology/i18n/id.po b/account_invoice_constraint_chronology/i18n/id.po new file mode 100644 index 000000000..25963505c --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/id.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Indonesian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/id/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: id\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Faktur" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Jurnal" diff --git a/account_invoice_constraint_chronology/i18n/it.po b/account_invoice_constraint_chronology/i18n/it.po new file mode 100644 index 000000000..0fe76523d --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/it.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Fattura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Sezionale" diff --git a/account_invoice_constraint_chronology/i18n/ja.po b/account_invoice_constraint_chronology/i18n/ja.po new file mode 100644 index 000000000..7743ac22a --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/ja.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Japanese (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/ja/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "請求書" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "仕訳帳" diff --git a/account_invoice_constraint_chronology/i18n/lt.po b/account_invoice_constraint_chronology/i18n/lt.po new file mode 100644 index 000000000..feef3c9b4 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/lt.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Lithuanian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/lt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Sąskaita-faktūra" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Žurnalas" diff --git a/account_invoice_constraint_chronology/i18n/mk.po b/account_invoice_constraint_chronology/i18n/mk.po new file mode 100644 index 000000000..fa988ed40 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/mk.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Macedonian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/mk/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: mk\n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Фактура" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Дневник" diff --git a/account_invoice_constraint_chronology/i18n/mn.po b/account_invoice_constraint_chronology/i18n/mn.po new file mode 100644 index 000000000..b950ab3c5 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/mn.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Mongolian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/mn/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: mn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Нэхэмжлэл" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Журнал" diff --git a/account_invoice_constraint_chronology/i18n/nb.po b/account_invoice_constraint_chronology/i18n/nb.po new file mode 100644 index 000000000..a5e783bef --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/nb.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Norwegian Bokmål (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/nb/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journal" diff --git a/account_invoice_constraint_chronology/i18n/nl.po b/account_invoice_constraint_chronology/i18n/nl.po new file mode 100644 index 000000000..b0c15bc69 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/nl.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factuur" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Dagboek" diff --git a/account_invoice_constraint_chronology/i18n/nl_BE.po b/account_invoice_constraint_chronology/i18n/nl_BE.po new file mode 100644 index 000000000..3c38f61ba --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/nl_BE.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Dutch (Belgium) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/nl_BE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_BE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factuur" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journaal" diff --git a/account_invoice_constraint_chronology/i18n/pl.po b/account_invoice_constraint_chronology/i18n/pl.po new file mode 100644 index 000000000..76ea7b868 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/pl.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Polish (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pl\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Dziennik" diff --git a/account_invoice_constraint_chronology/i18n/pt.po b/account_invoice_constraint_chronology/i18n/pt.po new file mode 100644 index 000000000..dc75e0924 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/pt.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/pt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Fatura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diário" diff --git a/account_invoice_constraint_chronology/i18n/pt_BR.po b/account_invoice_constraint_chronology/i18n/pt_BR.po new file mode 100644 index 000000000..2c7e4cc28 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/pt_BR.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Fatura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diário" diff --git a/account_invoice_constraint_chronology/i18n/ro.po b/account_invoice_constraint_chronology/i18n/ro.po new file mode 100644 index 000000000..38feb1229 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/ro.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Romanian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Registru" diff --git a/account_invoice_constraint_chronology/i18n/ru.po b/account_invoice_constraint_chronology/i18n/ru.po new file mode 100644 index 000000000..18e50dc60 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/ru.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Russian (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Счет" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Журнал" diff --git a/account_invoice_constraint_chronology/i18n/sl.po b/account_invoice_constraint_chronology/i18n/sl.po new file mode 100644 index 000000000..69739b1cd --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/sl.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +# Matjaž Mozetič , 2015 +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-07-04 11:49+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "Preveri kronologijo" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "Kronološka napaka. Starejše osnutke računov potrdite pred %s in poskusite ponovno." + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "Kronološka napaka. Obstaja vsaj en račun z datumom za %s." + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Račun" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Dnevnik" diff --git a/account_invoice_constraint_chronology/i18n/sr@latin.po b/account_invoice_constraint_chronology/i18n/sr@latin.po new file mode 100644 index 000000000..dc1e642c3 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/sr@latin.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Serbian (Latin) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/sr@latin/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sr@latin\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Dnevnik" diff --git a/account_invoice_constraint_chronology/i18n/sv.po b/account_invoice_constraint_chronology/i18n/sv.po new file mode 100644 index 000000000..ad7d11742 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/sv.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Swedish (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/sv/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Faktura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Journal" diff --git a/account_invoice_constraint_chronology/i18n/th.po b/account_invoice_constraint_chronology/i18n/th.po new file mode 100644 index 000000000..c3317de94 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/th.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Thai (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/th/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "ใบแจ้งหนี้" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "" diff --git a/account_invoice_constraint_chronology/i18n/tr.po b/account_invoice_constraint_chronology/i18n/tr.po new file mode 100644 index 000000000..4975467e2 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/tr.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Turkish (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Fatura" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Günlük" diff --git a/account_invoice_constraint_chronology/i18n/vi.po b/account_invoice_constraint_chronology/i18n/vi.po new file mode 100644 index 000000000..c5f0004e2 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/vi.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Vietnamese (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/vi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Sổ nhật ký" diff --git a/account_invoice_constraint_chronology/i18n/zh_CN.po b/account_invoice_constraint_chronology/i18n/zh_CN.po new file mode 100644 index 000000000..245a7c6aa --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/zh_CN.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "发票" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "凭证簿" diff --git a/account_invoice_constraint_chronology/i18n/zh_TW.po b/account_invoice_constraint_chronology/i18n/zh_TW.po new file mode 100644 index 000000000..c9d88f787 --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/zh_TW.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-07-01 13:25+0000\n" +"PO-Revision-Date: 2015-06-03 15:57+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (Taiwan) (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/zh_TW/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_invoice_constraint_chronology +#: field:account.journal,check_chronology:0 +msgid "Check Chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "發票" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "帳簿" From ebb185eee358cc240fb152ba161aa6d7fbabf445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 9 Oct 2015 09:59:23 +0200 Subject: [PATCH 20/32] [UPD] prefix versions with 8.0 --- account_invoice_constraint_chronology/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__openerp__.py index d5cdf638d..c88114e35 100644 --- a/account_invoice_constraint_chronology/__openerp__.py +++ b/account_invoice_constraint_chronology/__openerp__.py @@ -29,7 +29,7 @@ { "name": "Account Invoice Constraint Chronology", - "version": "1.0", + "version": "8.0.1.0.0", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV", "website": "http://www.acsone.eu", From f5f03765abdfa449fb35142367878045878800ad Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 14 Oct 2015 02:52:55 +0200 Subject: [PATCH 21/32] [MIG] Make modules uninstallable --- account_invoice_constraint_chronology/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__openerp__.py index c88114e35..c6d311634 100644 --- a/account_invoice_constraint_chronology/__openerp__.py +++ b/account_invoice_constraint_chronology/__openerp__.py @@ -54,7 +54,7 @@ The check can be activated on a per-journal basis "demo": [], "test": [], "licence": "AGPL-3", - "installable": True, + 'installable': False, "auto_install": False, "application": True, } From 3f15a4671a04451b4ebccce62a155fffe9adba27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Mon, 15 Aug 2016 18:54:03 +0200 Subject: [PATCH 22/32] [FIX] remove en.po that was erroneously created by transbot --- .../i18n/en.po | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 account_invoice_constraint_chronology/i18n/en.po diff --git a/account_invoice_constraint_chronology/i18n/en.po b/account_invoice_constraint_chronology/i18n/en.po deleted file mode 100644 index 1457b91cd..000000000 --- a/account_invoice_constraint_chronology/i18n/en.po +++ /dev/null @@ -1,49 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_invoice_constraint_chronology -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:57+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: English (http://www.transifex.com/oca/OCA-account-financial-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: account_invoice_constraint_chronology -#: field:account.journal,check_chronology:0 -msgid "Check Chronology" -msgstr "Check Chronology" - -#. module: account_invoice_constraint_chronology -#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 -#, python-format -msgid "" -"Chronology Error. Please confirm older draft invoices before %s and try " -"again." -msgstr "Chronology Error. Please confirm older draft invoices before %s and try again." - -#. module: account_invoice_constraint_chronology -#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 -#, python-format -msgid "" -"Chronology Error. There exist at least one invoice with a date posterior to " -"%s." -msgstr "Chronology Error. There exist at least one invoice with a date posterior to %s." - -#. module: account_invoice_constraint_chronology -#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice -msgid "Invoice" -msgstr "Invoice" - -#. module: account_invoice_constraint_chronology -#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal -msgid "Journal" -msgstr "Journal" From bfe167b7fe2edd5b42879100039c2f96d401a390 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 6 Oct 2016 14:46:03 +0200 Subject: [PATCH 23/32] [MIG] Rename manifest files --- .../{__openerp__.py => __manifest__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename account_invoice_constraint_chronology/{__openerp__.py => __manifest__.py} (100%) diff --git a/account_invoice_constraint_chronology/__openerp__.py b/account_invoice_constraint_chronology/__manifest__.py similarity index 100% rename from account_invoice_constraint_chronology/__openerp__.py rename to account_invoice_constraint_chronology/__manifest__.py From 7b1b195845a189aed46cc7e98f12c5ae7635c30b Mon Sep 17 00:00:00 2001 From: gilles Date: Mon, 13 Mar 2017 14:18:36 +0100 Subject: [PATCH 24/32] [MIG] account_invoice_constraint_chronology --- .../README.rst | 58 +++++++ .../__init__.py | 29 ---- .../__manifest__.py | 59 ++------ .../model/__init__.py | 29 ---- .../model/account.py | 31 +--- .../model/account_invoice.py | 72 +++------ .../tests/__init__.py | 29 ---- .../test_account_constraint_chronology.py | 142 ++++++++---------- .../view/account_view.xml | 8 +- 9 files changed, 158 insertions(+), 299 deletions(-) create mode 100644 account_invoice_constraint_chronology/README.rst diff --git a/account_invoice_constraint_chronology/README.rst b/account_invoice_constraint_chronology/README.rst new file mode 100644 index 000000000..7ff9af8ec --- /dev/null +++ b/account_invoice_constraint_chronology/README.rst @@ -0,0 +1,58 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +===================================== +Account Invoice Constraint Chronology +===================================== + +This module helps ensuring the chronology of invoice numbers. + +It prevents the validation of invoices when: + +* there are draft invoices with an anterior date +* there are validated invoices with a posterior date + +Configuration +============= + +To configure this module, go to the menu *Accounting > Configuration > Journals > Journals* and activate the option *Check Chronology* on the relevant journals. After the installation of the module, this option will be active on *sale* and *sale refund* journals. + +Usage +===== + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/92/8.0 + +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 +======= + +Contributors +------------ + +* Adrien Peiffer (`Acsone SA/NV `_) +* Gilles Gilles + +Maintainer +---------- + +.. 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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/account_invoice_constraint_chronology/__init__.py b/account_invoice_constraint_chronology/__init__.py index dcf937772..d6af31449 100644 --- a/account_invoice_constraint_chronology/__init__.py +++ b/account_invoice_constraint_chronology/__init__.py @@ -1,31 +1,2 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 model from . import tests diff --git a/account_invoice_constraint_chronology/__manifest__.py b/account_invoice_constraint_chronology/__manifest__.py index c6d311634..2a334a8a6 100644 --- a/account_invoice_constraint_chronology/__manifest__.py +++ b/account_invoice_constraint_chronology/__manifest__.py @@ -1,60 +1,23 @@ # -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 . -# -# - +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Account Invoice Constraint Chronology", - "version": "8.0.1.0.0", + "version": "10.0.1.0.0", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV", "website": "http://www.acsone.eu", "license": "AGPL-3", - "images": [], "category": "Accounting", "depends": ["account"], "description": """ -Account Invoice Constraint Chronology -===================================== - -This module helps ensuring the chronology of invoice numbers. - -It prevents the validation of invoices when: -* there are draft invoices with an anterior date -* there are validated invoices with a posterior date - -The check can be activated on a per-journal basis -(for sale and purchase journals). -""", + Account Invoice Constraint Chronology + This module helps ensuring the chronology of invoice numbers. + It prevents the validation of invoices when: + * there are draft invoices with an anterior date + * there are validated invoices with a posterior date + """, + "test": ["../account/test/account_minimal_test.xml"], "data": ["view/account_view.xml"], - "demo": [], - "test": [], - "licence": "AGPL-3", - 'installable': False, - "auto_install": False, - "application": True, + 'installable': True, } diff --git a/account_invoice_constraint_chronology/model/__init__.py b/account_invoice_constraint_chronology/model/__init__.py index d01496542..97b1db6fd 100644 --- a/account_invoice_constraint_chronology/model/__init__.py +++ b/account_invoice_constraint_chronology/model/__init__.py @@ -1,31 +1,2 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 account_invoice from . import account diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 9a7d36337..3cf04a463 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -1,33 +1,8 @@ # -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 . -# -# +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api +from odoo import models, fields, api class account_journal(models.Model): diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index c9ac805f5..4dd19daf3 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -1,42 +1,16 @@ # -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 . -# -# +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, api, fields -from openerp.tools.translate import _ -from openerp.tools import DEFAULT_SERVER_DATE_FORMAT -from datetime import datetime -from openerp import exceptions +from odoo import models, api, fields, _ +from odoo.exceptions import UserError class account_invoice(models.Model): _inherit = "account.invoice" + already_validated = fields.Boolean(readonly=True, copy=False) + @api.multi def action_move_create(self): res = super(account_invoice, self).action_move_create() @@ -51,33 +25,31 @@ class account_invoice(models.Model): ('journal_id', '=', inv.journal_id.id)], limit=1) if len(invoices) > 0: - date_invoice_format = datetime\ - .strptime(inv.date_invoice, - DEFAULT_SERVER_DATE_FORMAT) + date_invoice_format = fields.Date.\ + from_string(inv.date_invoice) date_invoice_tz = fields\ .Date.context_today(self, date_invoice_format) - raise exceptions.Warning(_("Chronology Error." - " Please confirm older draft" - " invoices before %s and" - " try again.") % - date_invoice_tz) - - if inv.internal_number is False: + raise UserError(_("Chronology Error. " + "Please confirm older draft " + "invoices before %s and try again.") + % date_invoice_tz) + if not inv.already_validated: invoices = self.search([('state', 'in', ['open', 'paid']), ('date_invoice', '>', inv.date_invoice), ('journal_id', '=', inv.journal_id.id)], limit=1) + if len(invoices) > 0: - date_invoice_format = datetime\ - .strptime(inv.date_invoice, - DEFAULT_SERVER_DATE_FORMAT) + date_invoice_format = fields.Date.\ + from_string(inv.date_invoice) date_invoice_tz = fields\ .Date.context_today(self, date_invoice_format) - raise exceptions.Warning(_("Chronology Error. There" - " exist at least one" - " invoice with a date" - " posterior to %s.") % - date_invoice_tz) + raise UserError(_("Chronology Error. " + "There exist at least one invoice " + "with a date posterior to %s.") % + date_invoice_tz) + if not inv.already_validated: + inv.already_validated = True return res diff --git a/account_invoice_constraint_chronology/tests/__init__.py b/account_invoice_constraint_chronology/tests/__init__.py index 3dd2ee2c0..1f3c5398d 100644 --- a/account_invoice_constraint_chronology/tests/__init__.py +++ b/account_invoice_constraint_chronology/tests/__init__.py @@ -1,30 +1 @@ -# -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 test_account_constraint_chronology diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index df5a2ed7a..1781f6968 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -1,90 +1,62 @@ # -*- coding: utf-8 -*- -# -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. -# -# 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 . -# -# +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -import openerp.tests.common as common -from openerp import workflow -from openerp import exceptions +import odoo.tests.common as common +from odoo.exceptions import UserError from datetime import datetime, timedelta -from openerp.tools import DEFAULT_SERVER_DATE_FORMAT - - -def get_simple_product_id(self): - return self.env['product.product'].create({'name': 'product_test_01', - 'lst_price': 2000.00, - }) +from odoo.tools import DEFAULT_SERVER_DATE_FORMAT def get_journal_check(self, value): - sale_journal_id = self.ref('account.sales_journal') - sale_journal = self.env['account.journal'].browse([sale_journal_id]) - journal = sale_journal.copy() + sale_journal_obj = self.AccountJournal.env['account.journal'].\ + search([('type', '=', 'sale')], limit=1) + journal = sale_journal_obj.copy() journal.check_chronology = value return journal -def get_simple_account_invoice_line_values(self, product_id): - return {'name': 'test', - 'account_id': self.ref('account.a_sale'), - 'price_unit': 2000.00, - 'quantity': 1, - 'product_id': product_id, - } - - def create_simple_invoice(self, journal_id, date): - partner_id = self.ref('base.res_partner_2') - product = get_simple_product_id(self) - return self.env['account.invoice']\ - .create({'partner_id': partner_id, - 'account_id': - self.ref('account.a_recv'), - 'journal_id': - journal_id, - 'date_invoice': date, - 'invoice_line': [(0, 0, {'name': 'test', - 'account_id': - self.ref('account.a_sale'), - 'price_unit': 2000.00, - 'quantity': 1, - 'product_id': product.id, - } - ) - ], - }) + invoice_account = self.env['account.account'].\ + search([('user_type_id', '=', + self.env.ref( + 'account.data_account_type_receivable' + ).id)], limit=1).id + invoice_line_account = self.env['account.account'].\ + search([('user_type_id', '=', + self.env.ref( + 'account.data_account_type_expenses' + ).id)], limit=1).id + analytic_account = self.env['account.analytic.account'].\ + create({'name': 'test account'}) + + invoice = self.env['account.invoice'].create( + {'partner_id': self.env.ref('base.res_partner_2').id, + 'account_id': invoice_account, + 'type': 'in_invoice', + 'journal_id': journal_id, + 'date_invoice': date, + 'state': 'draft', + }) + # invoice.write({'internal_number': invoice.number}) + self.env['account.invoice.line'].create( + {'product_id': self.env.ref('product.product_product_4').id, + 'quantity': 1.0, + 'price_unit': 100.0, + 'invoice_id': invoice.id, + 'name': 'product that cost 100', + 'account_id': invoice_line_account, + 'account_analytic_id': analytic_account.id, + }) + return invoice class TestAccountConstraintChronology(common.TransactionCase): def setUp(self): super(TestAccountConstraintChronology, self).setUp() - self.context = self.registry("res.users").context_get(self.cr, - self.uid) + self.AccountJournal = self.env['account.journal'] + self.Account = self.env['account.account'] def test_invoice_draft(self): journal = get_journal_check(self, True) @@ -94,23 +66,26 @@ class TestAccountConstraintChronology(common.TransactionCase): create_simple_invoice(self, journal.id, date) date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_2 = create_simple_invoice(self, journal.id, date) - self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, - 'account.invoice', invoice_2.id, 'invoice_open', - self.cr) + self.assertTrue((invoice_2.state == 'draft'), + "Initial invoice state is not Draft") + with self.assertRaises(UserError): + invoice_2.action_invoice_open() def test_invoice_validate(self): journal = get_journal_check(self, True) today = datetime.now() tomorrow = today + timedelta(days=1) - date = tomorrow.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice = create_simple_invoice(self, journal.id, date) - workflow.trg_validate(self.uid, 'account.invoice', invoice.id, - 'invoice_open', self.cr) + date_tomorrow = tomorrow.strftime(DEFAULT_SERVER_DATE_FORMAT) + invoice_1 = create_simple_invoice(self, journal.id, date_tomorrow) + self.assertTrue((invoice_1.state == 'draft'), + "Initial invoice state is not Draft") + invoice_1.action_invoice_open() date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) invoice_2 = create_simple_invoice(self, journal.id, date) - self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, - 'account.invoice', invoice_2.id, 'invoice_open', - self.cr) + self.assertTrue((invoice_2.state == 'draft'), + "Initial invoice state is not Draft") + with self.assertRaises(UserError): + invoice_2.action_invoice_open() def test_invoice_without_date(self): journal = get_journal_check(self, True) @@ -119,6 +94,7 @@ class TestAccountConstraintChronology(common.TransactionCase): date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) create_simple_invoice(self, journal.id, date) invoice_2 = create_simple_invoice(self, journal.id, False) - self.assertRaises(exceptions.Warning, workflow.trg_validate, self.uid, - 'account.invoice', invoice_2.id, 'invoice_open', - self.cr) + self.assertTrue((invoice_2.state == 'draft'), + "Initial invoice state is not Draft") + with self.assertRaises(UserError): + invoice_2.action_invoice_open() diff --git a/account_invoice_constraint_chronology/view/account_view.xml b/account_invoice_constraint_chronology/view/account_view.xml index 1fc86dfe7..95baf1ee0 100644 --- a/account_invoice_constraint_chronology/view/account_view.xml +++ b/account_invoice_constraint_chronology/view/account_view.xml @@ -1,15 +1,17 @@ - + + account.journal.form (account_constraint_chronology) account.journal - + - + From a8ffa7fdac98505f24f3000ae4769d3bfbf2d4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Tue, 14 Mar 2017 17:26:24 +0100 Subject: [PATCH 25/32] [IMP] a_i_c_chronology: better check for previously validated invoices --- .../model/account_invoice.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 4dd19daf3..b93e14af4 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -9,10 +9,9 @@ from odoo.exceptions import UserError class account_invoice(models.Model): _inherit = "account.invoice" - already_validated = fields.Boolean(readonly=True, copy=False) - @api.multi def action_move_create(self): + previously_validated = self.filtered(lambda inv: inv.move_name) res = super(account_invoice, self).action_move_create() for inv in self: if inv.journal_id.check_chronology: @@ -33,7 +32,7 @@ class account_invoice(models.Model): "Please confirm older draft " "invoices before %s and try again.") % date_invoice_tz) - if not inv.already_validated: + if inv not in previously_validated: invoices = self.search([('state', 'in', ['open', 'paid']), ('date_invoice', '>', inv.date_invoice), @@ -50,6 +49,4 @@ class account_invoice(models.Model): "There exist at least one invoice " "with a date posterior to %s.") % date_invoice_tz) - if not inv.already_validated: - inv.already_validated = True return res From 7a33582db475d11e6471de89910d86e36c7fe308 Mon Sep 17 00:00:00 2001 From: gilles Date: Tue, 14 Mar 2017 19:09:03 +0100 Subject: [PATCH 26/32] [FIX] cleanup --- .../README.rst | 2 +- .../__manifest__.py | 8 -- .../model/account.py | 12 +- .../model/account_invoice.py | 4 +- .../test_account_constraint_chronology.py | 123 ++++++++++-------- .../view/account_view.xml | 22 ++-- 6 files changed, 88 insertions(+), 83 deletions(-) diff --git a/account_invoice_constraint_chronology/README.rst b/account_invoice_constraint_chronology/README.rst index 7ff9af8ec..78fad5acc 100644 --- a/account_invoice_constraint_chronology/README.rst +++ b/account_invoice_constraint_chronology/README.rst @@ -23,7 +23,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/92/8.0 + :target: https://runbot.odoo-community.org/runbot/92/10.0 Bug Tracker =========== diff --git a/account_invoice_constraint_chronology/__manifest__.py b/account_invoice_constraint_chronology/__manifest__.py index 2a334a8a6..ebed7b86c 100644 --- a/account_invoice_constraint_chronology/__manifest__.py +++ b/account_invoice_constraint_chronology/__manifest__.py @@ -10,14 +10,6 @@ "license": "AGPL-3", "category": "Accounting", "depends": ["account"], - "description": """ - Account Invoice Constraint Chronology - This module helps ensuring the chronology of invoice numbers. - It prevents the validation of invoices when: - * there are draft invoices with an anterior date - * there are validated invoices with a posterior date - """, - "test": ["../account/test/account_minimal_test.xml"], "data": ["view/account_view.xml"], 'installable': True, } diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 3cf04a463..04bbbd186 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -5,15 +5,15 @@ from odoo import models, fields, api -class account_journal(models.Model): +class AccountJournal(models.Model): _inherit = ['account.journal'] check_chronology = fields.Boolean(string='Check Chronology', default=False) - @api.one + @api.multi @api.onchange('type') def on_change_type(self): - if self.type not in ['sale', 'purchase', 'sale_refund', - 'purchase_refund']: - self.check_chronology = False - return True + for rec in self: + if rec.type not in ['sale', 'purchase']: + rec.check_chronology = False + return True diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index b93e14af4..b7bc0fd1f 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -6,13 +6,13 @@ from odoo import models, api, fields, _ from odoo.exceptions import UserError -class account_invoice(models.Model): +class AccountInvoice(models.Model): _inherit = "account.invoice" @api.multi def action_move_create(self): previously_validated = self.filtered(lambda inv: inv.move_name) - res = super(account_invoice, self).action_move_create() + res = super(AccountInvoice, self).action_move_create() for inv in self: if inv.journal_id.check_chronology: invoices = \ diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index 1781f6968..9a88bbacb 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -8,92 +8,107 @@ from datetime import datetime, timedelta from odoo.tools import DEFAULT_SERVER_DATE_FORMAT -def get_journal_check(self, value): - sale_journal_obj = self.AccountJournal.env['account.journal'].\ - search([('type', '=', 'sale')], limit=1) - journal = sale_journal_obj.copy() - journal.check_chronology = value - return journal - - -def create_simple_invoice(self, journal_id, date): - invoice_account = self.env['account.account'].\ - search([('user_type_id', '=', - self.env.ref( - 'account.data_account_type_receivable' - ).id)], limit=1).id - invoice_line_account = self.env['account.account'].\ - search([('user_type_id', '=', - self.env.ref( - 'account.data_account_type_expenses' - ).id)], limit=1).id - analytic_account = self.env['account.analytic.account'].\ - create({'name': 'test account'}) - - invoice = self.env['account.invoice'].create( - {'partner_id': self.env.ref('base.res_partner_2').id, - 'account_id': invoice_account, - 'type': 'in_invoice', - 'journal_id': journal_id, - 'date_invoice': date, - 'state': 'draft', - }) - # invoice.write({'internal_number': invoice.number}) - self.env['account.invoice.line'].create( - {'product_id': self.env.ref('product.product_product_4').id, - 'quantity': 1.0, - 'price_unit': 100.0, - 'invoice_id': invoice.id, - 'name': 'product that cost 100', - 'account_id': invoice_line_account, - 'account_analytic_id': analytic_account.id, - }) - return invoice - - class TestAccountConstraintChronology(common.TransactionCase): def setUp(self): super(TestAccountConstraintChronology, self).setUp() - self.AccountJournal = self.env['account.journal'] - self.Account = self.env['account.account'] + + # Needed to create invoice + + self.account_type1 = self.env['account.account.type'].\ + create({'name': 'acc type test 1', + 'type': 'receivable', + 'include_initial_balance': True}) + self.account_type2 = self.env['account.account.type']. \ + create({'name': 'acc type test 2', + 'type': 'other', + 'include_initial_balance': True}) + self.account_account = self.env['account.account'].\ + create({'name': 'acc test', + 'code': 'X2020', + 'user_type_id': self.account_type1.id, + 'reconcile': True}) + self.account_account_line = self.env['account.account']. \ + create({'name': 'acc inv line test', + 'code': 'X2021', + 'user_type_id': self.account_type2.id, + 'reconcile': True}) + self.sequence = self.env['ir.sequence'].create( + {'name': 'Journal Sale', + 'prefix': 'SALE', 'padding': 6, + 'company_id': self.env.ref("base.main_company").id}) + self.account_journal_sale = self.env['account.journal']\ + .create({'name': 'Sale journal', + 'code': 'SALE', + 'type': 'sale', + 'sequence_id': self.sequence.id}) + self.product = self.env['product.product'].create( + {'name': 'product name'}) + self.analytic_account = self.env['account.analytic.account'].\ + create({'name': 'test account'}) + + def get_journal_check(self, value): + journal = self.account_journal_sale.copy() + journal.check_chronology = value + return journal + + def create_simple_invoice(self, journal_id, date): + invoice = self.env['account.invoice'].create( + {'partner_id': self.env.ref('base.res_partner_2').id, + 'account_id': self.account_account.id, + 'type': 'in_invoice', + 'journal_id': journal_id, + 'date_invoice': date, + 'state': 'draft', + }) + + self.env['account.invoice.line'].create( + {'product_id': self.product.id, + 'quantity': 1.0, + 'price_unit': 100.0, + 'invoice_id': invoice.id, + 'name': 'product that cost 100', + 'account_id': self.account_account_line.id, + 'account_analytic_id': self.analytic_account.id, + }) + return invoice def test_invoice_draft(self): - journal = get_journal_check(self, True) + journal = self.get_journal_check(True) today = datetime.now() yesterday = today - timedelta(days=1) date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) - create_simple_invoice(self, journal.id, date) + self.create_simple_invoice(journal.id, date) date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice_2 = create_simple_invoice(self, journal.id, date) + invoice_2 = self.create_simple_invoice(journal.id, date) self.assertTrue((invoice_2.state == 'draft'), "Initial invoice state is not Draft") with self.assertRaises(UserError): invoice_2.action_invoice_open() def test_invoice_validate(self): - journal = get_journal_check(self, True) + journal = self.get_journal_check(True) today = datetime.now() tomorrow = today + timedelta(days=1) date_tomorrow = tomorrow.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice_1 = create_simple_invoice(self, journal.id, date_tomorrow) + invoice_1 = self.create_simple_invoice(journal.id, date_tomorrow) self.assertTrue((invoice_1.state == 'draft'), "Initial invoice state is not Draft") invoice_1.action_invoice_open() date = today.strftime(DEFAULT_SERVER_DATE_FORMAT) - invoice_2 = create_simple_invoice(self, journal.id, date) + invoice_2 = self.create_simple_invoice(journal.id, date) self.assertTrue((invoice_2.state == 'draft'), "Initial invoice state is not Draft") with self.assertRaises(UserError): invoice_2.action_invoice_open() def test_invoice_without_date(self): - journal = get_journal_check(self, True) + journal = self.get_journal_check(True) today = datetime.now() yesterday = today - timedelta(days=1) date = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT) - create_simple_invoice(self, journal.id, date) - invoice_2 = create_simple_invoice(self, journal.id, False) + self.create_simple_invoice(journal.id, date) + invoice_2 = self.create_simple_invoice(journal.id, False) self.assertTrue((invoice_2.state == 'draft'), "Initial invoice state is not Draft") with self.assertRaises(UserError): diff --git a/account_invoice_constraint_chronology/view/account_view.xml b/account_invoice_constraint_chronology/view/account_view.xml index 95baf1ee0..20a236ea6 100644 --- a/account_invoice_constraint_chronology/view/account_view.xml +++ b/account_invoice_constraint_chronology/view/account_view.xml @@ -2,16 +2,14 @@ - - - account.journal.form (account_constraint_chronology) - account.journal - - - - - - - - + + account.journal.form (account_constraint_chronology) + account.journal + + + + + + + From 321f5b92e6116fea1eef3c153a3cf793e23bc3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Mon, 29 May 2017 13:21:20 +0200 Subject: [PATCH 27/32] [IMP] a_i_c_chronology: improve/fox onchange --- account_invoice_constraint_chronology/model/account.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 04bbbd186..81884b497 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -10,10 +10,7 @@ class AccountJournal(models.Model): check_chronology = fields.Boolean(string='Check Chronology', default=False) - @api.multi @api.onchange('type') - def on_change_type(self): - for rec in self: - if rec.type not in ['sale', 'purchase']: - rec.check_chronology = False - return True + def _onchange_type(self): + if self.type not in ['sale', 'purchase']: + self.check_chronology = False From 00594c10e0d454c5daf379b977ad4180dbb6a108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Mon, 29 May 2017 14:47:31 +0200 Subject: [PATCH 28/32] [IMP] a_i_c_chronology: simplify if statements --- .../model/account_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index b7bc0fd1f..08af1b78d 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -23,7 +23,7 @@ class AccountInvoice(models.Model): ('date_invoice', '<', inv.date_invoice), ('journal_id', '=', inv.journal_id.id)], limit=1) - if len(invoices) > 0: + if invoices: date_invoice_format = fields.Date.\ from_string(inv.date_invoice) date_invoice_tz = fields\ @@ -40,7 +40,7 @@ class AccountInvoice(models.Model): inv.journal_id.id)], limit=1) - if len(invoices) > 0: + if invoices: date_invoice_format = fields.Date.\ from_string(inv.date_invoice) date_invoice_tz = fields\ From 0c980c07a45cca18044211069e0d6c32d1573c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Mon, 29 May 2017 16:25:41 +0200 Subject: [PATCH 29/32] [IMP] a_i_c_chronology: cosmetics, pylint --- .../model/account.py | 2 +- .../test_account_constraint_chronology.py | 37 ++++++++++--------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 81884b497..9af202948 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -8,7 +8,7 @@ from odoo import models, fields, api class AccountJournal(models.Model): _inherit = ['account.journal'] - check_chronology = fields.Boolean(string='Check Chronology', default=False) + check_chronology = fields.Boolean(default=False) @api.onchange('type') def _onchange_type(self): diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index 9a88bbacb..7bbc94f6c 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -2,9 +2,10 @@ # Copyright 2015-2017 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from datetime import datetime, timedelta + import odoo.tests.common as common from odoo.exceptions import UserError -from datetime import datetime, timedelta from odoo.tools import DEFAULT_SERVER_DATE_FORMAT @@ -53,24 +54,24 @@ class TestAccountConstraintChronology(common.TransactionCase): return journal def create_simple_invoice(self, journal_id, date): - invoice = self.env['account.invoice'].create( - {'partner_id': self.env.ref('base.res_partner_2').id, - 'account_id': self.account_account.id, - 'type': 'in_invoice', - 'journal_id': journal_id, - 'date_invoice': date, - 'state': 'draft', - }) + invoice = self.env['account.invoice'].create({ + 'partner_id': self.env.ref('base.res_partner_2').id, + 'account_id': self.account_account.id, + 'type': 'in_invoice', + 'journal_id': journal_id, + 'date_invoice': date, + 'state': 'draft', + }) - self.env['account.invoice.line'].create( - {'product_id': self.product.id, - 'quantity': 1.0, - 'price_unit': 100.0, - 'invoice_id': invoice.id, - 'name': 'product that cost 100', - 'account_id': self.account_account_line.id, - 'account_analytic_id': self.analytic_account.id, - }) + self.env['account.invoice.line'].create({ + 'product_id': self.product.id, + 'quantity': 1.0, + 'price_unit': 100.0, + 'invoice_id': invoice.id, + 'name': 'product that cost 100', + 'account_id': self.account_account_line.id, + 'account_analytic_id': self.analytic_account.id, + }) return invoice def test_invoice_draft(self): From a33eddcbde3302d4f167ed8e5ee3ad5f232a95fc Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 3 Jun 2017 00:06:49 +0200 Subject: [PATCH 30/32] OCA Transbot updated translations from Transifex --- .../i18n/hr.po | 22 ++++---- .../i18n/hr_HR.po | 50 +++++++++++++++++++ .../i18n/pt_PT.po | 50 +++++++++++++++++++ .../i18n/sl.po | 26 +++++----- .../i18n/tr_TR.po | 50 +++++++++++++++++++ 5 files changed, 176 insertions(+), 22 deletions(-) create mode 100644 account_invoice_constraint_chronology/i18n/hr_HR.po create mode 100644 account_invoice_constraint_chronology/i18n/pt_PT.po create mode 100644 account_invoice_constraint_chronology/i18n/tr_TR.po diff --git a/account_invoice_constraint_chronology/i18n/hr.po b/account_invoice_constraint_chronology/i18n/hr.po index a4d0ff93f..e9624ccbe 100644 --- a/account_invoice_constraint_chronology/i18n/hr.po +++ b/account_invoice_constraint_chronology/i18n/hr.po @@ -3,14 +3,16 @@ # * account_invoice_constraint_chronology # # Translators: +# OCA Transbot , 2017 +# Bole , 2017 msgid "" msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-06-03 15:57+0000\n" -"Last-Translator: <>\n" -"Language-Team: Croatian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/hr/)\n" +"POT-Creation-Date: 2017-05-30 00:47+0000\n" +"PO-Revision-Date: 2017-05-30 00:47+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -18,12 +20,12 @@ msgstr "" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: account_invoice_constraint_chronology -#: field:account.journal,check_chronology:0 -msgid "Check Chronology" -msgstr "" +#: model:ir.model.fields,field_description:account_invoice_constraint_chronology.field_account_journal_check_chronology +msgid "Check chronology" +msgstr "Provjeri kronološki" #. module: account_invoice_constraint_chronology -#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:31 #, python-format msgid "" "Chronology Error. Please confirm older draft invoices before %s and try " @@ -31,7 +33,7 @@ msgid "" msgstr "" #. module: account_invoice_constraint_chronology -#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:48 #, python-format msgid "" "Chronology Error. There exist at least one invoice with a date posterior to " diff --git a/account_invoice_constraint_chronology/i18n/hr_HR.po b/account_invoice_constraint_chronology/i18n/hr_HR.po new file mode 100644 index 000000000..3e6fd0c8e --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/hr_HR.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-30 00:47+0000\n" +"PO-Revision-Date: 2017-05-30 00:47+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr_HR\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: account_invoice_constraint_chronology +#: model:ir.model.fields,field_description:account_invoice_constraint_chronology.field_account_journal_check_chronology +msgid "Check chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:31 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:48 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "Račun" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "" diff --git a/account_invoice_constraint_chronology/i18n/pt_PT.po b/account_invoice_constraint_chronology/i18n/pt_PT.po new file mode 100644 index 000000000..9973fe52e --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/pt_PT.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-30 00:47+0000\n" +"PO-Revision-Date: 2017-05-30 00:47+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_invoice_constraint_chronology +#: model:ir.model.fields,field_description:account_invoice_constraint_chronology.field_account_journal_check_chronology +msgid "Check chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:31 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:48 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Diário" diff --git a/account_invoice_constraint_chronology/i18n/sl.po b/account_invoice_constraint_chronology/i18n/sl.po index 69739b1cd..f5d3fc9de 100644 --- a/account_invoice_constraint_chronology/i18n/sl.po +++ b/account_invoice_constraint_chronology/i18n/sl.po @@ -3,15 +3,15 @@ # * account_invoice_constraint_chronology # # Translators: -# Matjaž Mozetič , 2015 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: account-financial-tools (8.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-07-01 13:25+0000\n" -"PO-Revision-Date: 2015-07-04 11:49+0000\n" -"Last-Translator: Matjaž Mozetič \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/sl/)\n" +"POT-Creation-Date: 2017-05-30 00:47+0000\n" +"PO-Revision-Date: 2017-05-30 00:47+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -19,20 +19,22 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: account_invoice_constraint_chronology -#: field:account.journal,check_chronology:0 -msgid "Check Chronology" -msgstr "Preveri kronologijo" +#: model:ir.model.fields,field_description:account_invoice_constraint_chronology.field_account_journal_check_chronology +msgid "Check chronology" +msgstr "" #. module: account_invoice_constraint_chronology -#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:59 +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:31 #, python-format msgid "" "Chronology Error. Please confirm older draft invoices before %s and try " "again." -msgstr "Kronološka napaka. Starejše osnutke računov potrdite pred %s in poskusite ponovno." +msgstr "" +"Kronološka napaka. Starejše osnutke računov potrdite pred %s in poskusite " +"ponovno." #. module: account_invoice_constraint_chronology -#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:78 +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:48 #, python-format msgid "" "Chronology Error. There exist at least one invoice with a date posterior to " diff --git a/account_invoice_constraint_chronology/i18n/tr_TR.po b/account_invoice_constraint_chronology/i18n/tr_TR.po new file mode 100644 index 000000000..7a4e15f8f --- /dev/null +++ b/account_invoice_constraint_chronology/i18n/tr_TR.po @@ -0,0 +1,50 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_constraint_chronology +# +# Translators: +# Ediz Duman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-30 00:47+0000\n" +"PO-Revision-Date: 2017-05-30 00:47+0000\n" +"Last-Translator: Ediz Duman , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_invoice_constraint_chronology +#: model:ir.model.fields,field_description:account_invoice_constraint_chronology.field_account_journal_check_chronology +msgid "Check chronology" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:31 +#, python-format +msgid "" +"Chronology Error. Please confirm older draft invoices before %s and try " +"again." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: code:addons/account_invoice_constraint_chronology/model/account_invoice.py:48 +#, python-format +msgid "" +"Chronology Error. There exist at least one invoice with a date posterior to " +"%s." +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_invoice_constraint_chronology +#: model:ir.model,name:account_invoice_constraint_chronology.model_account_journal +msgid "Journal" +msgstr "Yevmiye" From 7a7d2b7a0df2ba84fdeb1242e730c640bd0d2af8 Mon Sep 17 00:00:00 2001 From: Francesco Apruzzese Date: Tue, 19 Dec 2017 17:28:44 +0100 Subject: [PATCH 31/32] [MIG] account_invoice_constraint_chronology: Migration to 11.0 --- account_invoice_constraint_chronology/README.rst | 3 ++- account_invoice_constraint_chronology/__manifest__.py | 5 ++--- account_invoice_constraint_chronology/model/account.py | 3 +-- .../model/account_invoice.py | 3 +-- .../tests/test_account_constraint_chronology.py | 3 +-- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/account_invoice_constraint_chronology/README.rst b/account_invoice_constraint_chronology/README.rst index 78fad5acc..2ada196ca 100644 --- a/account_invoice_constraint_chronology/README.rst +++ b/account_invoice_constraint_chronology/README.rst @@ -23,7 +23,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/92/10.0 + :target: https://runbot.odoo-community.org/runbot/92/11.0 Bug Tracker =========== @@ -41,6 +41,7 @@ Contributors * Adrien Peiffer (`Acsone SA/NV `_) * Gilles Gilles +* Francesco Apruzzese Maintainer ---------- diff --git a/account_invoice_constraint_chronology/__manifest__.py b/account_invoice_constraint_chronology/__manifest__.py index ebed7b86c..0c323f913 100644 --- a/account_invoice_constraint_chronology/__manifest__.py +++ b/account_invoice_constraint_chronology/__manifest__.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- # Copyright 2015-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Invoice Constraint Chronology", - "version": "10.0.1.0.0", + "version": "11.0.1.0.0", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV", "website": "http://www.acsone.eu", diff --git a/account_invoice_constraint_chronology/model/account.py b/account_invoice_constraint_chronology/model/account.py index 9af202948..6be55f8c2 100644 --- a/account_invoice_constraint_chronology/model/account.py +++ b/account_invoice_constraint_chronology/model/account.py @@ -1,6 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2015-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models, fields, api diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 08af1b78d..4a8547d4c 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -1,6 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2015-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models, api, fields, _ from odoo.exceptions import UserError diff --git a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py index 7bbc94f6c..7fb574108 100644 --- a/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_constraint_chronology.py @@ -1,6 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2015-2017 ACSONE SA/NV () -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from datetime import datetime, timedelta From 7fbe02cfdbacdf4bc091a65a40fe5b1a86f0ff79 Mon Sep 17 00:00:00 2001 From: rgarnau Date: Fri, 12 Jan 2018 10:46:29 +0100 Subject: [PATCH 32/32] minor fixes --- account_invoice_constraint_chronology/README.rst | 8 ++++---- .../model/account_invoice.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/account_invoice_constraint_chronology/README.rst b/account_invoice_constraint_chronology/README.rst index 2ada196ca..dab49e14e 100644 --- a/account_invoice_constraint_chronology/README.rst +++ b/account_invoice_constraint_chronology/README.rst @@ -1,5 +1,5 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 ===================================== @@ -10,13 +10,13 @@ This module helps ensuring the chronology of invoice numbers. It prevents the validation of invoices when: -* there are draft invoices with an anterior date -* there are validated invoices with a posterior date +* there are draft invoices with a prior date +* there are validated invoices with a later date Configuration ============= -To configure this module, go to the menu *Accounting > Configuration > Journals > Journals* and activate the option *Check Chronology* on the relevant journals. After the installation of the module, this option will be active on *sale* and *sale refund* journals. +To configure this module, go to the menu *Accounting/Invoicing > Configuration > Accounting > Journals* and activate the option *Check Chronology* on the relevant journals. After the installation of the module, this option will be active on *sale* and *sale refund* journals. Usage ===== diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 4a8547d4c..4185fcc7a 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -46,6 +46,6 @@ class AccountInvoice(models.Model): .Date.context_today(self, date_invoice_format) raise UserError(_("Chronology Error. " "There exist at least one invoice " - "with a date posterior to %s.") % + "with a later date to %s.") % date_invoice_tz) return res