Selaa lähdekoodia

commit inicial

Rodney Enciso Arias 8 vuotta sitten
commit
d433f1e8c6
7 muutettua tiedostoa jossa 117 lisäystä ja 0 poistoa
  1. 6 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 47 0
      __openerp__.py
  4. 18 0
      account_invoice.py
  5. BIN
      account_invoice.pyc
  6. 23 0
      i18n/es.po
  7. 23 0
      i18n/es_AR.po

+ 6 - 0
__init__.py

@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from . import account_invoice

BIN
__init__.pyc


+ 47 - 0
__openerp__.py

@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2015  ADHOC SA  (http://www.adhoc.com.ar)
+#    All Rights Reserved.
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+    "name": "Invoice Taxes Auto Update",
+    'version': '8.0.0.0.0',
+    'category': 'Product',
+    'sequence': 14,
+    'author': 'ADHOC SA',
+    'website': 'www.adhoc.com.ar',
+    'license': 'AGPL-3',
+    "description": """
+Invoice Taxes Auto Update
+=========================
+    """,
+    "depends": [
+        "account",
+    ],
+    'external_dependencies': {
+    },
+    "data": [
+    ],
+    'demo': [
+    ],
+    'test': [
+    ],
+    "installable": True,
+    'auto_install': False,
+    'application': False,
+}

+ 18 - 0
account_invoice.py

@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from openerp import models, api
+
+
+class AccountInvoice(models.Model):
+    _inherit = 'account.invoice'
+
+    @api.multi
+    @api.constrains('invoice_line')
+    def update_taxes(self):
+        context = dict(self._context)
+        if context.get('constraint_update_taxes'):
+            return True
+        self.with_context(constraint_update_taxes=True).button_reset_taxes()

BIN
account_invoice.pyc


+ 23 - 0
i18n/es.po

@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_invoice_tax_auto_update
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: account-invoicing (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-28 00:19+0000\n"
+"PO-Revision-Date: 2016-05-27 12:46+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Spanish (http://www.transifex.com/adhoc/ingadhoc-account-invoicing-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_tax_auto_update
+#: model:ir.model,name:account_invoice_tax_auto_update.model_account_invoice
+msgid "Invoice"
+msgstr "Factura"

+ 23 - 0
i18n/es_AR.po

@@ -0,0 +1,23 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_invoice_tax_auto_update
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: account-invoicing (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-28 00:19+0000\n"
+"PO-Revision-Date: 2016-05-27 12:46+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Spanish (Argentina) (http://www.transifex.com/adhoc/ingadhoc-account-invoicing-8-0/language/es_AR/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: es_AR\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: account_invoice_tax_auto_update
+#: model:ir.model,name:account_invoice_tax_auto_update.model_account_invoice
+msgid "Invoice"
+msgstr "Factura"