Explorar el Código

commit inicial

Rodney Enciso Arias hace 7 años
commit
067b3e02d9
Se han modificado 16 ficheros con 468 adiciones y 0 borrados
  1. 59 0
      README.rst
  2. 1 0
      __init__.py
  3. BIN
      __init__.pyc
  4. 35 0
      __openerp__.py
  5. 29 0
      i18n/ca.po
  6. 33 0
      i18n/contract_invoices_button.pot
  7. 30 0
      i18n/de.po
  8. 29 0
      i18n/es.po
  9. 30 0
      i18n/fi.po
  10. 30 0
      i18n/fr.po
  11. 31 0
      i18n/pt_BR.po
  12. 29 0
      i18n/ru.po
  13. 30 0
      i18n/sk_SK.po
  14. 30 0
      i18n/sl.po
  15. 30 0
      i18n/zh_CN.po
  16. 42 0
      views/contract_view.xml

+ 59 - 0
README.rst

@@ -0,0 +1,59 @@
+.. 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
+
+=====================
+Contract Show Invoice
+=====================
+
+This module add a button in contracts to show their invoices.
+All invoices including lines for the Contract and other related invoices will be shown.
+
+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/110/8.0
+
+For further information, please visit:
+
+* https://www.odoo.com/forum/help-1
+
+Known issues / Roadmap
+======================
+
+* Add field with the total amount invoiced to the invoices button.
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues <https://github.com/OCA/contract/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
+`here <https://github.com/OCA/contract/issues/new?body=module:%20contract_show_invoice%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
+
+Credits
+=======
+
+Contributors
+------------
+
+* Daniel Rodríguez <drl.9319@gmail.com>
+* Ángel Moya <angel.moya@domatix.com>
+* Stéphane Bidoul <stephane.bidoul@acsone.eu>
+
+Maintainer
+----------
+
+.. image:: http://odoo-community.org/logo.png
+   :alt: Odoo Community Association
+   :target: http://odoo-community.org
+
+This module is maintained by the OCA.
+
+OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
+To contribute to this module, please visit http://odoo-community.org.

+ 1 - 0
__init__.py

@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-

BIN
__init__.pyc


+ 35 - 0
__openerp__.py

@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+###############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2015 Domatix (<www.domatix.com>).
+#
+#    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': 'Contract Show Invoice',
+    'summary': 'Button in contracts to show their invoices',
+    'version': '8.0.2.1.0',
+    'author': 'Domatix,Odoo Community Association (OCA)',
+    'website': 'http://www.domatix.com',
+    'depends': ['account_analytic_analysis'],
+    'category': 'Sales Management',
+    'data': [
+        'views/contract_view.xml',
+    ],
+    'installable': True,
+    'auto_install': False,
+}

+ 29 - 0
i18n/ca.po

@@ -0,0 +1,29 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-01-21 01:57+0000\n"
+"PO-Revision-Date: 2017-03-14 18:38+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: Catalan (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Factures"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Factures relacionades amb aquest contracte"

+ 33 - 0
i18n/contract_invoices_button.pot

@@ -0,0 +1,33 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+#	* contract_show_invoice
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-13 12:35+0000\n"
+"PO-Revision-Date: 2016-04-13 12:35+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: contract_show_invoice
+#: model:ir.model,name:contract_show_invoice.model_account_invoice
+msgid "Invoice"
+msgstr ""
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr ""
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr ""
+

+ 30 - 0
i18n/de.po

@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# Rudolf Schnapka <rs@techno-flex.de>, 2015
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-28 00:54+0000\n"
+"PO-Revision-Date: 2016-04-27 19:38+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: German (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Rechnungen"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Rechnungen mit Bezug auf diesen Vertrag"

+ 29 - 0
i18n/es.po

@@ -0,0 +1,29 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-28 00:54+0000\n"
+"PO-Revision-Date: 2016-04-27 19:38+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: Spanish (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Facturas"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Facturas relacionadas con este contrato"

+ 30 - 0
i18n/fi.po

@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-28 11:00+0000\n"
+"PO-Revision-Date: 2016-07-08 10:42+0000\n"
+"Last-Translator: Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>\n"
+"Language-Team: Finnish (http://www.transifex.com/oca/OCA-contract-8-0/language/fi/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fi\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Laskut"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Tähän sopimukseen liittyvät laskut"

+ 30 - 0
i18n/fr.po

@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# Christophe CHAUVET <christophe.chauvet@gmail.com>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-30 10:34+0000\n"
+"PO-Revision-Date: 2016-05-19 16:09+0000\n"
+"Last-Translator: Christophe CHAUVET <christophe.chauvet@gmail.com>\n"
+"Language-Team: French (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Factures"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Factures liés à ce contrat"

+ 31 - 0
i18n/pt_BR.po

@@ -0,0 +1,31 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# danimaribeiro <danimaribeiro@gmail.com>, 2016
+# danimaribeiro <danimaribeiro@gmail.com>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-28 00:54+0000\n"
+"PO-Revision-Date: 2016-04-27 19:38+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Faturas"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Faturas relacionadas com este contrato"

+ 29 - 0
i18n/ru.po

@@ -0,0 +1,29 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-05-01 16:51+0000\n"
+"PO-Revision-Date: 2017-05-11 10:40+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: Russian (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Счета"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr ""

+ 30 - 0
i18n/sk_SK.po

@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# ivbo <ivan@bock.sk>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-21 10:53+0000\n"
+"PO-Revision-Date: 2016-05-24 14:08+0000\n"
+"Last-Translator: ivbo <ivan@bock.sk>\n"
+"Language-Team: Slovak (Slovakia) (http://www.transifex.com/oca/OCA-contract-8-0/language/sk_SK/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: sk_SK\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Faktúry"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Faktúry súvisiace s touto zmluvou"

+ 30 - 0
i18n/sl.po

@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# Matjaž Mozetič <m.mozetic@matmoz.si>, 2015
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-04-28 00:54+0000\n"
+"PO-Revision-Date: 2016-04-27 19:38+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "Računi"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "Računi v povezavi s to pogodbo"

+ 30 - 0
i18n/zh_CN.po

@@ -0,0 +1,30 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * contract_show_invoice
+# 
+# Translators:
+# ITGeeker <alanljj@qq.com>, 2017
+msgid ""
+msgstr ""
+"Project-Id-Version: contract (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-03-25 04:22+0000\n"
+"PO-Revision-Date: 2017-04-11 06:33+0000\n"
+"Last-Translator: ITGeeker <alanljj@qq.com>\n"
+"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-contract-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: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+#: model:ir.actions.act_window,name:contract_show_invoice.act_analytic_invoices
+msgid "Invoices"
+msgstr "发票"
+
+#. module: contract_show_invoice
+#: view:account.analytic.account:contract_show_invoice.account_analytic_account_button_invoice
+msgid "Invoices related with this contract"
+msgstr "该合同相关的发票"

+ 42 - 0
views/contract_view.xml

@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<openerp>
+    <data>
+
+        <record id="act_analytic_invoices" model="ir.actions.act_window">
+            <field name="name">Invoices</field>
+            <field name="res_model">account.invoice</field>
+            <field name="domain">[('invoice_line.account_analytic_id','=',active_id)]</field>
+            <field name="search_view_id" ref="account.view_account_invoice_filter" />
+        </record>
+
+        <record id="action_contract_show_invoice_tree" model="ir.actions.act_window.view">
+            <field name="sequence" eval="1"/>
+            <field name="view_mode">tree</field>
+            <field name="view_id" ref="account.invoice_tree"/>
+            <field name="act_window_id" ref="act_analytic_invoices"/>
+        </record>
+
+        <record id="action_contract_show_invoice_form" model="ir.actions.act_window.view">
+            <field name="sequence" eval="2"/>
+            <field name="view_mode">form</field>
+            <field name="view_id" ref="account.invoice_form"/>
+            <field name="act_window_id" ref="act_analytic_invoices"/>
+        </record>
+
+        <record id="account_analytic_account_button_invoice" model="ir.ui.view">
+            <field name="name">account.analytic.account.button.invoice
+            </field>
+            <field name="model">account.analytic.account</field>
+            <field name="inherit_id" ref="analytic.view_account_analytic_account_form" />
+            <field name="arch" type="xml">
+                <xpath expr='//div[@name="buttons"]' position='inside'>
+                    <button class="oe_stat_button" type="action" icon="fa-edit"
+                        name="%(contract_show_invoice.act_analytic_invoices)d"
+                        string="Invoices" help="Invoices related with this contract">
+                    </button>
+                </xpath>
+            </field>
+        </record>
+
+    </data>
+</openerp>