diff --git a/account_cancel_invoice_check_payment_order/i18n/es.po b/account_cancel_invoice_check_payment_order/i18n/es.po new file mode 100644 index 000000000..eeb682c45 --- /dev/null +++ b/account_cancel_invoice_check_payment_order/i18n/es.po @@ -0,0 +1,35 @@ +# Spanish translation for account-financial-tools +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the account-financial-tools package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2013-10-18 17:46+0000\n" +"PO-Revision-Date: 2014-04-08 19:44+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" + +#. module: account_cancel_invoice_check_payment_order +#: code:addons/account_cancel_invoice_check_payment_order/account_invoice.py:48 +#, python-format +msgid "Error !" +msgstr "Error" + +#. module: account_cancel_invoice_check_payment_order +#: code:addons/account_cancel_invoice_check_payment_order/account_invoice.py:51 +#, python-format +msgid "Invoice already imported in the payment order (%s) at %s on line %s" +msgstr "Factura ya importada en la orden de pago (%s) en %s en la línea %s" + +#. module: account_cancel_invoice_check_payment_order +#: model:ir.model,name:account_cancel_invoice_check_payment_order.model_account_invoice +msgid "Invoice" +msgstr "Factura" diff --git a/account_cancel_invoice_check_payment_order/i18n/pt_BR.po b/account_cancel_invoice_check_payment_order/i18n/pt_BR.po index e9358b38d..a31dd7372 100644 --- a/account_cancel_invoice_check_payment_order/i18n/pt_BR.po +++ b/account_cancel_invoice_check_payment_order/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_cancel_invoice_check_payment_order #: code:addons/account_cancel_invoice_check_payment_order/account_invoice.py:48 diff --git a/account_cancel_invoice_check_voucher/i18n/es.po b/account_cancel_invoice_check_voucher/i18n/es.po new file mode 100644 index 000000000..a5daba6fa --- /dev/null +++ b/account_cancel_invoice_check_voucher/i18n/es.po @@ -0,0 +1,36 @@ +# Spanish translation for account-financial-tools +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the account-financial-tools package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2013-10-18 17:46+0000\n" +"PO-Revision-Date: 2014-04-08 19:45+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" + +#. module: account_cancel_invoice_check_voucher +#: code:addons/account_cancel_invoice_check_voucher/account_invoice.py:49 +#, python-format +msgid "Error!" +msgstr "Error" + +#. module: account_cancel_invoice_check_voucher +#: code:addons/account_cancel_invoice_check_voucher/account_invoice.py:51 +#, python-format +msgid "Invoice already imported in bank statment (%s) at %s on line %s" +msgstr "" +"Factura ya importada en el extracto bancaria (%s) en %s en la línea %s" + +#. module: account_cancel_invoice_check_voucher +#: model:ir.model,name:account_cancel_invoice_check_voucher.model_account_invoice +msgid "Invoice" +msgstr "Factura" diff --git a/account_cancel_invoice_check_voucher/i18n/pt_BR.po b/account_cancel_invoice_check_voucher/i18n/pt_BR.po index fbded3bdc..3841aa6f3 100644 --- a/account_cancel_invoice_check_voucher/i18n/pt_BR.po +++ b/account_cancel_invoice_check_voucher/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_cancel_invoice_check_voucher #: code:addons/account_cancel_invoice_check_voucher/account_invoice.py:49 diff --git a/account_chart_update/i18n/ca.po b/account_chart_update/i18n/ca.po index abcc1c2f5..9e96460bb 100644 --- a/account_chart_update/i18n/ca.po +++ b/account_chart_update/i18n/ca.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_chart_update #: view:wizard.update.charts.accounts:0 diff --git a/account_chart_update/i18n/es.po b/account_chart_update/i18n/es.po index f70f9f09c..5d3785945 100644 --- a/account_chart_update/i18n/es.po +++ b/account_chart_update/i18n/es.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_chart_update #: view:wizard.update.charts.accounts:0 diff --git a/account_chart_update/i18n/es_ES.po b/account_chart_update/i18n/es_ES.po index 5fa486753..a455d78ee 100644 --- a/account_chart_update/i18n/es_ES.po +++ b/account_chart_update/i18n/es_ES.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" "Language: \n" #. module: account_chart_update diff --git a/account_chart_update/i18n/fr.po b/account_chart_update/i18n/fr.po index 6275bd48e..b3bf554e2 100755 --- a/account_chart_update/i18n/fr.po +++ b/account_chart_update/i18n/fr.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_chart_update #: view:wizard.update.charts.accounts:0 diff --git a/account_chart_update/i18n/pt.po b/account_chart_update/i18n/pt.po index 00dc9641b..a0af6ac19 100644 --- a/account_chart_update/i18n/pt.po +++ b/account_chart_update/i18n/pt.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_chart_update #: view:wizard.update.charts.accounts:0 diff --git a/account_chart_update/i18n/pt_BR.po b/account_chart_update/i18n/pt_BR.po index a3a64b468..a053439d8 100644 --- a/account_chart_update/i18n/pt_BR.po +++ b/account_chart_update/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_chart_update #: view:wizard.update.charts.accounts:0 diff --git a/account_chart_update/i18n/sv.po b/account_chart_update/i18n/sv.po index b3b0e15eb..00c152d40 100644 --- a/account_chart_update/i18n/sv.po +++ b/account_chart_update/i18n/sv.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_chart_update #: view:wizard.update.charts.accounts:0 diff --git a/account_compute_tax_amount/i18n/es.po b/account_compute_tax_amount/i18n/es.po new file mode 100644 index 000000000..fe7772652 --- /dev/null +++ b/account_compute_tax_amount/i18n/es.po @@ -0,0 +1,23 @@ +# Spanish translation for account-financial-tools +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the account-financial-tools package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2013-10-18 17:47+0000\n" +"PO-Revision-Date: 2014-04-08 19:55+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" + +#. module: account_compute_tax_amount +#: model:ir.model,name:account_compute_tax_amount.model_account_move_line +msgid "Journal Items" +msgstr "Apuntes contables" diff --git a/account_compute_tax_amount/i18n/pt_BR.po b/account_compute_tax_amount/i18n/pt_BR.po index bb2737027..56f58c676 100644 --- a/account_compute_tax_amount/i18n/pt_BR.po +++ b/account_compute_tax_amount/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_compute_tax_amount #: model:ir.model,name:account_compute_tax_amount.model_account_move_line diff --git a/account_constraints/__openerp__.py b/account_constraints/__openerp__.py index 80009f2bb..60ef18bd1 100644 --- a/account_constraints/__openerp__.py +++ b/account_constraints/__openerp__.py @@ -19,7 +19,7 @@ ############################################################################## { 'name' : 'Account Constraints', - 'version' : '1.0', + 'version' : '1.1', 'depends' : [ 'account', ], @@ -37,7 +37,7 @@ and legal state of the art in other software. Summary of constraints are: * Add a constraint on account move: you cannot pickup a date that is not - in the fiscal year of the concerned period + in the fiscal year of the concerned period (configurable per journal) * For manual entries when multicurrency: @@ -56,8 +56,13 @@ Summary of constraints are: that the user cannot make mistakes even in draft state, he must pass through the parent object to make his modification. + Contributors + * Stéphane Bidoul + """, 'website': 'http://www.camptocamp.com', - 'data': [], + 'data': [ + 'view/account_journal.xml', + ], 'installable': True, } diff --git a/account_constraints/account_constraints.py b/account_constraints/account_constraints.py index bd20e27a3..d5d16f655 100644 --- a/account_constraints/account_constraints.py +++ b/account_constraints/account_constraints.py @@ -22,15 +22,32 @@ from openerp.osv import fields, orm, osv from openerp.tools.translate import _ +class AccountJournal(orm.Model): + _inherit = 'account.journal' + + _columns = { + 'allow_date_fy': fields.boolean('Check Date in Fiscal Year', + help='If set to True then do not ' + 'accept the entry if ' + 'the entry date is not into ' + 'the fiscal year dates'), + } + + _defaults = { + 'allow_date_fy': True, + } + + class AccountMove(orm.Model): _inherit = "account.move" def _check_fiscal_year(self, cr, uid, ids): for move in self.browse(cr, uid, ids): - date_start = move.period_id.fiscalyear_id.date_start - date_stop = move.period_id.fiscalyear_id.date_stop - if not date_start <= move.date <= date_stop: - return False + if move.journal_id.allow_date_fy: + date_start = move.period_id.fiscalyear_id.date_start + date_stop = move.period_id.fiscalyear_id.date_stop + if not date_start <= move.date <= date_stop: + return False return True _constraints = [ diff --git a/account_constraints/i18n/pt_BR.po b/account_constraints/i18n/pt_BR.po index f1ae5c472..31a1c768f 100644 --- a/account_constraints/i18n/pt_BR.po +++ b/account_constraints/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_constraints #: constraint:account.move.line:0 diff --git a/account_constraints/view/account_journal.xml b/account_constraints/view/account_journal.xml new file mode 100644 index 000000000..0185aca6f --- /dev/null +++ b/account_constraints/view/account_journal.xml @@ -0,0 +1,18 @@ + + + + + account.journal.allow_date_fy + account.journal + + + + + + + + + + + + \ No newline at end of file diff --git a/account_default_draft_move/i18n/en.po b/account_default_draft_move/i18n/en.po index 002e0883a..5a467252e 100644 --- a/account_default_draft_move/i18n/en.po +++ b/account_default_draft_move/i18n/en.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_default_draft_move #: model:ir.model,name:account_default_draft_move.model_account_move diff --git a/account_default_draft_move/i18n/fr.po b/account_default_draft_move/i18n/fr.po index ab5f2fa80..e41e01531 100644 --- a/account_default_draft_move/i18n/fr.po +++ b/account_default_draft_move/i18n/fr.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_default_draft_move #: model:ir.model,name:account_default_draft_move.model_account_move diff --git a/account_default_draft_move/i18n/pt_BR.po b/account_default_draft_move/i18n/pt_BR.po index 1327588b5..c39f31c27 100644 --- a/account_default_draft_move/i18n/pt_BR.po +++ b/account_default_draft_move/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_default_draft_move #: model:ir.model,name:account_default_draft_move.model_account_move diff --git a/account_fiscal_position_vat_check/i18n/fr.po b/account_fiscal_position_vat_check/i18n/fr.po index aa1c404c8..bf55b2161 100644 --- a/account_fiscal_position_vat_check/i18n/fr.po +++ b/account_fiscal_position_vat_check/i18n/fr.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_fiscal_position_vat_check #: view:res.partner:0 diff --git a/account_fiscal_position_vat_check/i18n/pt_BR.po b/account_fiscal_position_vat_check/i18n/pt_BR.po index 8186d7a22..fa7c17238 100644 --- a/account_fiscal_position_vat_check/i18n/pt_BR.po +++ b/account_fiscal_position_vat_check/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_fiscal_position_vat_check #: view:res.partner:0 diff --git a/account_invoice_currency/i18n/ca.po b/account_invoice_currency/i18n/ca.po index dd6a1e45c..d91b99dc6 100644 --- a/account_invoice_currency/i18n/ca.po +++ b/account_invoice_currency/i18n/ca.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_invoice_currency #: help:account.invoice,cc_amount_total:0 diff --git a/account_invoice_currency/i18n/es.po b/account_invoice_currency/i18n/es.po index 6f9968551..e16057351 100644 --- a/account_invoice_currency/i18n/es.po +++ b/account_invoice_currency/i18n/es.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.9\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-11-18 11:53+0000\n" -"PO-Revision-Date: 2014-02-04 16:48+0000\n" -"Last-Translator: Joaquin Gutierrez \n" +"PO-Revision-Date: 2014-04-08 19:42+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" "Language: \n" #. module: account_invoice_currency @@ -51,6 +51,8 @@ msgid "" "Invoice untaxed amount in the company currency(useful when invoice currency " "is different from company currency)." msgstr "" +"Importe sin impuestos de la factura en la moneda de la compañía (útil cuando " +" la moneda de la factura es diferente de la moneda de la compañía)." #. module: account_invoice_currency #: view:account.invoice:0 diff --git a/account_invoice_currency/i18n/pt.po b/account_invoice_currency/i18n/pt.po index 302fe21b2..5c19131d6 100644 --- a/account_invoice_currency/i18n/pt.po +++ b/account_invoice_currency/i18n/pt.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_invoice_currency #: help:account.invoice,cc_amount_total:0 diff --git a/account_journal_always_check_date/i18n/fr.po b/account_journal_always_check_date/i18n/fr.po index 237ec09ea..cfe637057 100644 --- a/account_journal_always_check_date/i18n/fr.po +++ b/account_journal_always_check_date/i18n/fr.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_journal_always_check_date #: constraint:account.journal:0 diff --git a/account_journal_always_check_date/i18n/pt_BR.po b/account_journal_always_check_date/i18n/pt_BR.po index c66a60db4..399146fef 100644 --- a/account_journal_always_check_date/i18n/pt_BR.po +++ b/account_journal_always_check_date/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_journal_always_check_date #: constraint:account.journal:0 diff --git a/account_move_batch_validate/i18n/fr.po b/account_move_batch_validate/i18n/fr.po index d3b6e82cf..381de4838 100644 --- a/account_move_batch_validate/i18n/fr.po +++ b/account_move_batch_validate/i18n/fr.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_move_batch_validate #: field:account.move,post_job_uuid:0 diff --git a/account_move_line_no_default_search/__init__.py b/account_move_line_no_default_search/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/account_move_line_no_default_search/__openerp__.py b/account_move_line_no_default_search/__openerp__.py new file mode 100644 index 000000000..5121a68ab --- /dev/null +++ b/account_move_line_no_default_search/__openerp__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2014 Therp BV (). +# +# 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" : "Move line search view - disable defaults for period and journal", + "version" : "0.1", + "author" : "Therp BV", + "category": 'Accounting & Finance', + 'description': """ +OpenERP 7.0 implements a custom javascript search view for move lines. This +search view shows dropdowns for period and journal. By default, these are +set to the default journal and (current) period. + +This module leaves the search view extension for move lines intact, but +disables the default search values for the dropdowns so that you do not +have to disable these before entering your own search queries. + +.. image:: /account_move_line_no_default_search/static/src/img/move_line_search_view.png + + """, + 'website': 'http://therp.nl', + 'depends' : [ + 'account', + ], + 'js': [ + 'static/src/js/move_line_search_view.js', + ], + 'images': [ + 'static/src/img/move_line_search_view.png', + ], +} diff --git a/account_move_line_no_default_search/static/src/img/icon.png b/account_move_line_no_default_search/static/src/img/icon.png new file mode 100644 index 000000000..4ac0af920 Binary files /dev/null and b/account_move_line_no_default_search/static/src/img/icon.png differ diff --git a/account_move_line_no_default_search/static/src/img/move_line_search_view.png b/account_move_line_no_default_search/static/src/img/move_line_search_view.png new file mode 100644 index 000000000..2f6eba3f6 Binary files /dev/null and b/account_move_line_no_default_search/static/src/img/move_line_search_view.png differ diff --git a/account_move_line_no_default_search/static/src/js/move_line_search_view.js b/account_move_line_no_default_search/static/src/js/move_line_search_view.js new file mode 100644 index 000000000..b023a8bad --- /dev/null +++ b/account_move_line_no_default_search/static/src/js/move_line_search_view.js @@ -0,0 +1,38 @@ +/* + + Copyright (C) 2013 Therp BV + License: GNU AFFERO GENERAL PUBLIC LICENSE + Version 3 or any later version + + Disable default search on the default journal and period + in the javascript search extension on move lines in + openobject-addons/account/static/src/js/account_move_line_quickadd.js +*/ +openerp.account_move_line_no_default_search = function (instance) { + instance.web.account.QuickAddListView.include({ + start: function() { + /* + Set a hook to be honoured in our override of do_search() + so as to prevent a default search on account move lines + on the default period and journal. + */ + this.block_default_search = true; + return this._super.apply(this, arguments); + }, + + do_search: function(domain, context, group_by) { + /* + Check for a flag to block default search + and reset default values when it has been found, + then reset the blocking flag. + */ + if (this.block_default_search === true) { + this.current_journal = null; + this.current_period = null; + this.block_default_search = false; + } + return this._super.apply(this, arguments); + }, + }); +}; + \ No newline at end of file diff --git a/account_move_template/i18n/it.po b/account_move_template/i18n/it.po index 75a053ee5..7cabcbfcc 100644 --- a/account_move_template/i18n/it.po +++ b/account_move_template/i18n/it.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_move_template #: code:addons/account_move_template/account_document_template.py:68 diff --git a/account_move_template/i18n/pt_BR.po b/account_move_template/i18n/pt_BR.po index 526b596d1..4b2972377 100644 --- a/account_move_template/i18n/pt_BR.po +++ b/account_move_template/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_move_template #: code:addons/account_move_template/account_document_template.py:68 diff --git a/account_renumber/i18n/ab.po b/account_renumber/i18n/ab.po index cbd38713c..e1cc316ec 100644 --- a/account_renumber/i18n/ab.po +++ b/account_renumber/i18n/ab.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" "X-Poedit-Language: Catalan\n" #. module: account_renumber diff --git a/account_renumber/i18n/bg.po b/account_renumber/i18n/bg.po index 41fc6c5db..ec7479972 100644 --- a/account_renumber/i18n/bg.po +++ b/account_renumber/i18n/bg.po @@ -15,8 +15,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_renumber #: selection:wizard.renumber,state:0 diff --git a/account_renumber/i18n/ca.po b/account_renumber/i18n/ca.po index e44689669..60e415967 100644 --- a/account_renumber/i18n/ca.po +++ b/account_renumber/i18n/ca.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" "X-Poedit-Language: Catalan\n" #. module: account_renumber diff --git a/account_renumber/i18n/es.po b/account_renumber/i18n/es.po index bb262c832..3fe856b74 100644 --- a/account_renumber/i18n/es.po +++ b/account_renumber/i18n/es.po @@ -1,19 +1,20 @@ # Translation of OpenERP Server. # This file contains the translation of the following modules: -# * account_renumber +# * account_renumber # msgid "" msgstr "" "Project-Id-Version: OpenERP Server 7.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-04-14 12:12+0000\n" -"PO-Revision-Date: 2014-04-14 14:17+0100\n" +"PO-Revision-Date: 2014-05-05 11:47+0100\n" "Last-Translator: Pedro Manuel Baeza \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" +"X-Generator: Poedit 1.5.4\n" #. module: account_renumber #: code:_description:0 @@ -47,13 +48,7 @@ msgid "Initial" msgstr "Inicial" #. module: account_renumber -#: help:wizard.renumber,number_next:0 -msgid "Journal sequences will start counting on this number" -msgstr "Las secuencias de diario comenzarán a contar en este número" - -#. module: account_renumber -#: view:wizard.renumber:0 -#: field:wizard.renumber,journal_ids:0 +#: view:wizard.renumber:0 field:wizard.renumber,journal_ids:0 msgid "Journals" msgstr "Diarios" @@ -71,7 +66,7 @@ msgstr "Diarios a renumerar" #: code:addons/account_renumber/wizard/wizard_renumber.py:96 #, python-format msgid "No Data Available" -msgstr "Sin datos disponibles" +msgstr "No hay datos disponibles" #. module: account_renumber #: code:addons/account_renumber/wizard/wizard_renumber.py:97 @@ -80,15 +75,18 @@ msgid "No records found for your selection!" msgstr "No se han encontrado registros para la selección" #. module: account_renumber -#: view:wizard.renumber:0 -#: field:wizard.renumber,period_ids:0 +#: view:wizard.renumber:0 field:wizard.renumber,period_ids:0 msgid "Periods" msgstr "Periodos" #. module: account_renumber #: view:wizard.renumber:0 -msgid "Posted moves from those journals will be sorted by date and then assigned sequential numbers using their journal sequence." -msgstr "Los asientos asentados de estos diarios se ordenarán por fecha y entonces se les asignará un número de secuencia usando su secuencia de diario." +msgid "" +"Posted moves from those journals will be sorted by date and then assigned " +"sequential numbers using their journal sequence." +msgstr "" +"Los asientos asentados de estos diarios se ordenarán por fecha y entonces se " +"les asignará un número de secuencia usando su secuencia de diario." #. module: account_renumber #: view:wizard.renumber:0 @@ -115,7 +113,7 @@ msgstr "Asientos contables renumerados" #. module: account_renumber #: selection:wizard.renumber,state:0 msgid "Renumbering" -msgstr "Renumerados" +msgstr "Renumerando" #. module: account_renumber #: view:wizard.renumber:0 @@ -139,3 +137,7 @@ msgstr "desconocido" msgid "wizard.renumber" msgstr "Asistente de renumeración de asientos" +#. module: account_renumber +#: help:wizard.renumber,number_next:0 +msgid "Journal sequences will start counting on this number" +msgstr "Las secuencias de los diarios empezarán a contar en este número" diff --git a/account_renumber/i18n/gl.po b/account_renumber/i18n/gl.po index 9424da0f5..6039d8374 100644 --- a/account_renumber/i18n/gl.po +++ b/account_renumber/i18n/gl.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_renumber #: selection:wizard.renumber,state:0 diff --git a/account_renumber/i18n/pt.po b/account_renumber/i18n/pt.po index 47992c66c..af30e605a 100644 --- a/account_renumber/i18n/pt.po +++ b/account_renumber/i18n/pt.po @@ -15,8 +15,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_renumber #: selection:wizard.renumber,state:0 diff --git a/account_renumber/i18n/pt_BR.po b/account_renumber/i18n/pt_BR.po index e1fe286e0..c3ba0c82a 100644 --- a/account_renumber/i18n/pt_BR.po +++ b/account_renumber/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_renumber #: selection:wizard.renumber,state:0 diff --git a/account_renumber/i18n/sv.po b/account_renumber/i18n/sv.po index 545b6b107..c4a4fbbef 100644 --- a/account_renumber/i18n/sv.po +++ b/account_renumber/i18n/sv.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_renumber #: selection:wizard.renumber,state:0 diff --git a/account_reversal/i18n/ca.po b/account_reversal/i18n/ca.po index 61f108f1b..2a8ab6cbc 100644 --- a/account_reversal/i18n/ca.po +++ b/account_reversal/i18n/ca.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_reversal #: field:account.move.reverse,move_line_prefix:0 diff --git a/account_reversal/i18n/es.po b/account_reversal/i18n/es.po index 57b09c9d6..a8660126e 100644 --- a/account_reversal/i18n/es.po +++ b/account_reversal/i18n/es.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_reversal #: field:account.move.reverse,move_line_prefix:0 diff --git a/account_reversal/i18n/fr.po b/account_reversal/i18n/fr.po index 20bc9b900..c5e1e5a41 100644 --- a/account_reversal/i18n/fr.po +++ b/account_reversal/i18n/fr.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_reversal #: field:account.move.reverse,move_line_prefix:0 diff --git a/account_reversal/i18n/pt_BR.po b/account_reversal/i18n/pt_BR.po index e0eb57487..61a888199 100644 --- a/account_reversal/i18n/pt_BR.po +++ b/account_reversal/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_reversal #: field:account.move.reverse,move_line_prefix:0 diff --git a/account_tax_analysis/i18n/pt_BR.po b/account_tax_analysis/i18n/pt_BR.po index 440158b1c..857892269 100644 --- a/account_tax_analysis/i18n/pt_BR.po +++ b/account_tax_analysis/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: account_tax_analysis #: model:ir.actions.act_window,name:account_tax_analysis.action_account_vat_declaration_analysis diff --git a/currency_rate_date_check/i18n/fr.po b/currency_rate_date_check/i18n/fr.po index 047e36085..9387c089b 100644 --- a/currency_rate_date_check/i18n/fr.po +++ b/currency_rate_date_check/i18n/fr.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: currency_rate_date_check #: help:res.company,currency_rate_max_delta:0 diff --git a/currency_rate_date_check/i18n/pt_BR.po b/currency_rate_date_check/i18n/pt_BR.po index a7807863b..ca914088c 100644 --- a/currency_rate_date_check/i18n/pt_BR.po +++ b/currency_rate_date_check/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: currency_rate_date_check #: help:res.company,currency_rate_max_delta:0 diff --git a/currency_rate_update/i18n/ab.po b/currency_rate_update/i18n/ab.po index 7b0089d58..7d3e54f66 100644 --- a/currency_rate_update/i18n/ab.po +++ b/currency_rate_update/i18n/ab.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: currency_rate_update #: view:res.company:0 diff --git a/currency_rate_update/i18n/es.po b/currency_rate_update/i18n/es.po new file mode 100644 index 000000000..eb542d9cb --- /dev/null +++ b/currency_rate_update/i18n/es.po @@ -0,0 +1,184 @@ +# Spanish translation for account-financial-tools +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the account-financial-tools package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: account-financial-tools\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2013-10-18 17:52+0000\n" +"PO-Revision-Date: 2014-04-08 19:54+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" + +#. module: currency_rate_update +#: view:res.company:0 +msgid "Currency auto update configuration" +msgstr "Configuración de auto actualización de las tasas de cambio" + +#. module: currency_rate_update +#: view:res.company:0 +msgid "Currency updates services" +msgstr "Servicios de actualización de las tasas de cambio" + +#. module: currency_rate_update +#: field:currency.rate.update.service,company_id:0 +msgid "linked company" +msgstr "compañía relacionada" + +#. module: currency_rate_update +#: view:currency.rate.update.service:0 +msgid "Rate" +msgstr "Tasa" + +#. module: currency_rate_update +#: view:currency.rate.update.service:0 +msgid "Rates" +msgstr "Tasas" + +#. module: currency_rate_update +#: field:res.company,multi_company_currency_enable:0 +msgid "Multi company currency" +msgstr "Moneda multi-compañía" + +#. module: currency_rate_update +#: field:res.company,interval_type:0 +msgid "Currency update frequence" +msgstr "Frecuencia de actualización" + +#. module: currency_rate_update +#: selection:res.company,interval_type:0 +msgid "Day(s)" +msgstr "Día(s)" + +#. module: currency_rate_update +#: field:currency.rate.update.service,currency_to_update:0 +msgid "currency to update with this service" +msgstr "moneda a actualizar con este servicio" + +#. module: currency_rate_update +#: selection:currency.rate.update.service,service:0 +msgid "Narodowy Bank Polski" +msgstr "Narodowy Bank Polski" + +#. module: currency_rate_update +#: field:currency.rate.update.service,note:0 +msgid "update notice" +msgstr "nota de actualización" + +#. module: currency_rate_update +#: field:currency.rate.update.service,service:0 +msgid "Webservice to use" +msgstr "Servicio web a utilizar" + +#. module: currency_rate_update +#: help:currency.rate.update.service,max_delta_days:0 +msgid "" +"If the time delta between the rate date given by the webservice and the " +"current date exeeds this value, then the currency rate is not updated in " +"OpenERP." +msgstr "" +"Si la diferencia de tiempo entre la fecha de la tasa dada por el servicio " +"web y la fecha actual excede este valor, entonces la tasa de cambio de " +"divisa no se actualizará en OpenERP." + +#. module: currency_rate_update +#: field:res.company,services_to_use:0 +msgid "Currency update services" +msgstr "Servicios de actualización de la tasa de cambio" + +#. module: currency_rate_update +#: constraint:currency.rate.update.service:0 +msgid "'Max delta days' must be >= 0" +msgstr "Los días de diferencia máximos deben ser mayor o igual que 0" + +#. module: currency_rate_update +#: code:addons/currency_rate_update/currency_rate_update.py:89 +#: sql_constraint:currency.rate.update.service:0 +#, python-format +msgid "You can use a service one time per company !" +msgstr "Sólo puedes usar una vez un servicio por compañía" + +#. module: currency_rate_update +#: selection:currency.rate.update.service,service:0 +msgid "Yahoo Finance " +msgstr "Yahoo Finance " + +#. module: currency_rate_update +#: field:currency.rate.update.service,max_delta_days:0 +msgid "Max delta days" +msgstr "Días de diferencia máximos" + +#. module: currency_rate_update +#: selection:currency.rate.update.service,service:0 +msgid "Admin.ch" +msgstr "Admin.ch" + +#. module: currency_rate_update +#: model:ir.model,name:currency_rate_update.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: currency_rate_update +#: view:currency.rate.update.service:0 +msgid "Currencies to update with this service" +msgstr "Monedas a actualizar con este servicio" + +#. module: currency_rate_update +#: selection:res.company,interval_type:0 +msgid "Week(s)" +msgstr "Semana(s)" + +#. module: currency_rate_update +#: help:res.company,multi_company_currency_enable:0 +msgid "" +"if this case is not check you can not set currency is active on two company" +msgstr "" +"Si está casilla no está marcada, no podrá marcar que una moneda está activa " +"en dos compañías" + +#. module: currency_rate_update +#: code:addons/currency_rate_update/currency_rate_update.py:153 +#: model:ir.model,name:currency_rate_update.model_currency_rate_update +#: model:ir.model,name:currency_rate_update.model_currency_rate_update_service +#, python-format +msgid "Currency Rate Update" +msgstr "Actualización del tipo de cambio" + +#. module: currency_rate_update +#: view:currency.rate.update.service:0 +msgid "Logs" +msgstr "Registro" + +#. module: currency_rate_update +#: field:res.company,auto_currency_up:0 +msgid "Automatical update of the currency this company" +msgstr "Actualización automática del tipo de cambio de esta compañía" + +#. module: currency_rate_update +#: selection:res.company,interval_type:0 +msgid "Month(s)" +msgstr "Mes(es)" + +#. module: currency_rate_update +#: selection:currency.rate.update.service,service:0 +msgid "European Central Bank" +msgstr "Banco Central Europeo" + +#. module: currency_rate_update +#: help:res.company,interval_type:0 +msgid "" +"changing this value will\n" +" also affect other compagnies" +msgstr "cambiando este valor, también afectará a otras compañías" + +#. module: currency_rate_update +#: view:res.company:0 +msgid "Refresh currencies" +msgstr "Actualizar tipos de cambio" diff --git a/currency_rate_update/i18n/fr_FR.po b/currency_rate_update/i18n/fr_FR.po index 2aa2ccec4..4905d8f64 100644 --- a/currency_rate_update/i18n/fr_FR.po +++ b/currency_rate_update/i18n/fr_FR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: currency_rate_update #: view:res.company:0 diff --git a/currency_rate_update/i18n/pl.po b/currency_rate_update/i18n/pl.po index 3e24ea8e9..2a9826a42 100644 --- a/currency_rate_update/i18n/pl.po +++ b/currency_rate_update/i18n/pl.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: currency_rate_update #: view:res.company:0 diff --git a/currency_rate_update/i18n/pt_BR.po b/currency_rate_update/i18n/pt_BR.po index fb63c6aac..cca8322d2 100644 --- a/currency_rate_update/i18n/pt_BR.po +++ b/currency_rate_update/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: currency_rate_update #: view:res.company:0 diff --git a/l10n_fr_siret/__init__.py b/l10n_fr_siret/__init__.py index f9ccadcb7..7c560ac5e 100644 --- a/l10n_fr_siret/__init__.py +++ b/l10n_fr_siret/__init__.py @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution @@ -20,6 +20,4 @@ ############################################################################## import partner - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +import company diff --git a/l10n_fr_siret/__openerp__.py b/l10n_fr_siret/__openerp__.py index 9a02a5e26..e8f12b796 100644 --- a/l10n_fr_siret/__openerp__.py +++ b/l10n_fr_siret/__openerp__.py @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution @@ -21,25 +21,32 @@ { 'name': 'French company identity numbers SIRET/SIREN/NIC', - 'version': '1.0', + 'version': '1.1', "category": 'Accounting', - 'description': """ -This module lets users keep track of the companies' unique -identification numbers from the official SIRENE registry in France: -SIRET, SIREN and NIC. These numbers identify each company and their -subsidiaries, and are often required for administrative tasks. + 'description': ''' +This module add the French company identity numbers. +==================================================== -At the top of the Partner form, users will be able to enter the SIREN +This can help any company doing business with French companies +by letting users track the partners' unique identification +numbers from the official SIRENE registry in France: SIRET, SIREN and NIC. +These numbers identify each company and their subsidiaries, and are +often required for administrative tasks. + +On the Partner form, users will be able to enter the SIREN and NIC numbers, and the SIRET number will be calculated automatically. The last digits of the SIREN and NIC are control keys: OpenERP will check their validity when partners are recorded. -""", - 'author' : u'Numérigraphe SARL', - 'depends': ['account'], - 'data': ['partner_view.xml', - ], + +ATTENTION! this module replaces the fields on the Company form with the new +ones on the Partner form, but it will NOT copy the corresponding data: you +will have to enter them again. +''', + 'author': u'Numérigraphe SARL', + 'depends': ['account', 'l10n_fr'], + 'data': [ + 'partner_view.xml', + ], 'installable': True, 'active': False, } - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/l10n_fr_siret/company.py b/l10n_fr_siret/company.py new file mode 100644 index 000000000..146ee5f43 --- /dev/null +++ b/l10n_fr_siret/company.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2011 Numérigraphe SARL. +# +# 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 fields, orm + + +class res_company(orm.Model): + """Replace the company's fields for SIRET/RC with the partner's""" + _inherit = 'res.company' + + def _get_partner_change(self, cr, uid, ids, context=None): + return self.pool.get('res.partner').search( + cr, uid, [('partner_id', 'in', ids)], context=context) + + _columns = { + 'siret': fields.related( + 'partner_id', 'siret', type='char', store={ + 'res.partner': (_get_partner_change, ['siren', 'nic'], 20), + 'res.company': (lambda self, cr, uid, ids, c={}: + ids, ['partner_id'], 20), }), + 'company_registry': fields.related( + 'partner_id', 'company_registry', type='char', store={ + 'res.partner': (_get_partner_change, ['company_registry'], 20), + 'res.company': (lambda self, cr, uid, ids, c={}: + ids, ['partner_id'], 20), }) + } diff --git a/l10n_fr_siret/i18n/ab.po b/l10n_fr_siret/i18n/ab.po index be1ce373f..fb1f35b64 100644 --- a/l10n_fr_siret/i18n/ab.po +++ b/l10n_fr_siret/i18n/ab.po @@ -13,8 +13,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: l10n_fr_siret #: field:res.partner,siren:0 diff --git a/l10n_fr_siret/i18n/fr.po b/l10n_fr_siret/i18n/fr.po index 45c7518b6..9aa36f610 100644 --- a/l10n_fr_siret/i18n/fr.po +++ b/l10n_fr_siret/i18n/fr.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: l10n_fr_siret #: field:res.partner,siren:0 diff --git a/l10n_fr_siret/i18n/pt_BR.po b/l10n_fr_siret/i18n/pt_BR.po index 2893872bd..21c503606 100644 --- a/l10n_fr_siret/i18n/pt_BR.po +++ b/l10n_fr_siret/i18n/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2014-04-01 06:51+0000\n" -"X-Generator: Launchpad (build 16967)\n" +"X-Launchpad-Export-Date: 2014-05-03 06:44+0000\n" +"X-Generator: Launchpad (build 16985)\n" #. module: l10n_fr_siret #: field:res.partner,siren:0 diff --git a/l10n_fr_siret/partner.py b/l10n_fr_siret/partner.py index 4291c0665..13aac7653 100644 --- a/l10n_fr_siret/partner.py +++ b/l10n_fr_siret/partner.py @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution @@ -27,10 +27,13 @@ from openerp.osv import fields, orm def _check_luhn(string): """Luhn test to check control keys - Credits: http://rosettacode.org/wiki/Luhn_test_of_credit_card_numbers#Python + Credits: + http://rosettacode.org/wiki/Luhn_test_of_credit_card_numbers#Python """ r = [int(ch) for ch in string][::-1] - return (sum(r[0::2]) + sum(sum(divmod(d*2,10)) for d in r[1::2])) % 10 == 0 + return (sum(r[0::2]) + sum(sum(divmod(d * 2, 10)) + for d in r[1::2])) % 10 == 0 + class Partner(orm.Model): """Add the French official company identity numbers SIREN, NIC and SIRET""" @@ -38,29 +41,26 @@ class Partner(orm.Model): def _get_siret(self, cr, uid, ids, field_name, arg, context=None): """Concatenate the SIREN and NIC to form the SIRET""" - sirets = {} - for partner in self.browse(cr, uid, ids, context=context): - if partner.siren and partner.nic: - sirets[partner.id] = '%s%s' % (partner.siren, partner.nic) - else: - sirets[partner.id] = '' - return sirets + return {partner.id: '%s%s' % (partner.siren, partner.nic or '*****') + if partner.siren else '' + for partner in self.browse(cr, uid, ids, context=context)} def _check_siret(self, cr, uid, ids): """Check the SIREN's and NIC's keys (last digits)""" for partner in self.browse(cr, uid, ids, context=None): if partner.nic: # Check the NIC type and length - if not partner.nic.isdecimal() or len(partner.nic)!=5: + if not partner.nic.isdecimal() or len(partner.nic) != 5: return False if partner.siren: # Check the SIREN type, length and key if (not partner.siren.isdecimal() - or len(partner.siren)!=9 - or not _check_luhn(partner.siren) ): + or len(partner.siren) != 9 + or not _check_luhn(partner.siren)): return False # Check the NIC key (you need both SIREN and NIC to check it) - if partner.nic and not _check_luhn(partner.siren + partner.nic): + if partner.nic and not _check_luhn(partner.siren + + partner.nic): return False return True @@ -74,26 +74,24 @@ class Partner(orm.Model): "of this office in the company in France. It " "makes the last 5 digits of the SIRET " "number."), - 'siret': fields.function(_get_siret, type="char", string='SIRET', + 'siret': fields.function( + _get_siret, type="char", string='SIRET', method=True, size=14, - store = { + store={ 'res.partner': [lambda self, cr, uid, ids, context=None: ids, - ['siren', 'nic'], - 10]}, + ['siren', 'nic'], 10]}, help="The SIRET number is the official identity number of this " "company's office in France. It is composed of the 9 digits " "of the SIREN number and the 5 digits of the NIC number, ie. " "14 digits."), - 'company_registry': fields.char('Company Registry', size=64, - help="The name of official registry where this " - "company was declared."), + 'company_registry': fields.char( + 'Company Registry', size=64, + help="The name of official registry where this " + "company was declared."), } _constraints = [ - (_check_siret, - "The SIREN or NIC number is incorrect.", - ["siren", "nic"]), + (_check_siret, + "The SIREN or NIC number is incorrect.", + ["siren", "nic"]), ] - - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/l10n_fr_siret/partner_view.xml b/l10n_fr_siret/partner_view.xml index a53deeeba..b373bb2b2 100644 --- a/l10n_fr_siret/partner_view.xml +++ b/l10n_fr_siret/partner_view.xml @@ -1,25 +1,30 @@ - - - - res.partner.form.siret - res.partner - - - - - - - - - - - - - - - - - + + + + res.partner.form.siret + res.partner + + + + + + + + + + + + + + + + + +