Bläddra i källkod

commit inicial

Rodney Enciso Arias 8 år sedan
incheckning
f7183130ce
12 ändrade filer med 262 tillägg och 0 borttagningar
  1. 2 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 46 0
      __openerp__.py
  4. 13 0
      account_journal.py
  5. BIN
      account_journal.pyc
  6. 16 0
      account_journal_view.xml
  7. 47 0
      account_voucher_view.xml
  8. 27 0
      i18n/account_journal_active.pot
  9. 28 0
      i18n/ca.po
  10. 28 0
      i18n/en.po
  11. 27 0
      i18n/es.po
  12. 28 0
      i18n/gl.po

+ 2 - 0
__init__.py

@@ -0,0 +1,2 @@
+# -*- encoding: utf-8 -*-
+from . import account_journal

BIN
__init__.pyc


+ 46 - 0
__openerp__.py

@@ -0,0 +1,46 @@
+# -*- 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": "Account Journal Active",
+    "version": "8.0.1.2.0",
+    'author':  'ADHOC SA',
+    'website': 'www.adhoc.com.ar',
+    'license': 'AGPL-3',
+    "category": "Accounting",
+    "description": """
+Account Journal Active Field
+============================
+Adds active field on account journal
+    """,
+    'depends': [
+        # we add dependency of account_voucher because we change voucher
+        # action views to make voucher visible when journal inactive
+        'account_voucher'
+        ],
+    'data': [
+        'account_journal_view.xml',
+        'account_voucher_view.xml',
+        ],
+    'demo': [],
+    'test': [],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 13 - 0
account_journal.py

@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from openerp import fields, models
+
+
+class account_journal(models.Model):
+    _inherit = "account.journal"
+    active = fields.Boolean('Active', default=True)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

BIN
account_journal.pyc


+ 16 - 0
account_journal_view.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+	<data>
+        <!-- Account Journal -->
+        <record id="view_account_journal_form" model="ir.ui.view">
+            <field name="name">account.journal.form</field>
+            <field name="model">account.journal</field>
+            <field name="inherit_id" ref="account.view_account_journal_form"/>
+            <field name="arch" type="xml">
+                <field name="company_id" position="before">
+                    <field name="active"/>
+                </field>
+            </field>
+        </record>
+	</data>
+</openerp>

+ 47 - 0
account_voucher_view.xml

@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data> 
+
+        <!-- receipt -->
+        <record model="ir.ui.view" id="view_vendor_receipt_form">
+            <field name="name">account.voucher.receipt.form</field>
+            <field name="model">account.voucher</field>
+            <field name="inherit_id" ref="account_voucher.view_vendor_receipt_form"/>
+            <field name="arch" type="xml">
+                <field name="journal_id" position="attributes">
+                    <attribute name="widget"></attribute>
+                </field>
+            </field>
+        </record>
+        <!-- payments -->
+        <record model="ir.ui.view" id="view_vendor_payment_form">
+            <field name="name">account.voucher.payment.form</field>
+            <field name="model">account.voucher</field>
+            <field name="inherit_id" ref="account_voucher.view_vendor_payment_form"/>
+            <field name="arch" type="xml">
+                <field name="journal_id" position="attributes">
+                    <attribute name="widget"></attribute>
+                </field>
+            </field>
+        </record>
+        <!-- dialog -->
+        <record model="ir.ui.view" id="view_vendor_receipt_dialog_form">
+            <field name="name">account.voucher.receipt.dialog.form</field>
+            <field name="model">account.voucher</field>
+            <field name="inherit_id" ref="account_voucher.view_vendor_receipt_dialog_form"/>
+            <field name="arch" type="xml">
+                <field name="journal_id" position="attributes">
+                    <attribute name="widget"></attribute>
+                </field>
+            </field>
+        </record>
+        <record id="account_voucher.action_vendor_receipt" model="ir.actions.act_window">
+            <field name="domain">[('type','=','receipt')]</field>
+        </record>
+
+        <record id="account_voucher.action_vendor_payment" model="ir.actions.act_window">
+            <field name="domain">[('type','=','payment')]</field>
+        </record>
+
+    </data>
+</openerp>

+ 27 - 0
i18n/account_journal_active.pot

@@ -0,0 +1,27 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+#	* account_journal_active
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-09-29 16:00+0000\n"
+"PO-Revision-Date: 2014-09-29 16:00+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_journal_active
+#: field:account.journal,active:0
+msgid "Active"
+msgstr ""
+
+#. module: account_journal_active
+#: model:ir.model,name:account_journal_active.model_account_journal
+msgid "Journal"
+msgstr ""
+

+ 28 - 0
i18n/ca.po

@@ -0,0 +1,28 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_journal_active
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: odoo-addons (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-10-22 13:44+0000\n"
+"PO-Revision-Date: 2015-09-01 18:07+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Catalan (http://www.transifex.com/adhoc/ingadhoc-odoo-addons-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_journal_active
+#: field:account.journal,active:0
+msgid "Active"
+msgstr ""
+
+#. module: account_journal_active
+#: model:ir.model,name:account_journal_active.model_account_journal
+msgid "Journal"
+msgstr "Diari"

+ 28 - 0
i18n/en.po

@@ -0,0 +1,28 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_journal_active
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: odoo-addons (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-09-09 23:57+0000\n"
+"PO-Revision-Date: 2015-09-01 18:07+0000\n"
+"Last-Translator: Juan Jose Scarafia <scarafia.juanjose@gmail.com>\n"
+"Language-Team: English (http://www.transifex.com/adhoc/ingadhoc-odoo-addons-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_journal_active
+#: field:account.journal,active:0
+msgid "Active"
+msgstr "Active"
+
+#. module: account_journal_active
+#: model:ir.model,name:account_journal_active.model_account_journal
+msgid "Journal"
+msgstr "Journal"

+ 27 - 0
i18n/es.po

@@ -0,0 +1,27 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# 	* account_journal_active
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-09-29 16:01+0000\n"
+"PO-Revision-Date: 2014-09-29 13:01-0300\n"
+"Last-Translator: \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_journal_active
+#: field:account.journal,active:0
+msgid "Active"
+msgstr "Activo"
+
+#. module: account_journal_active
+#: model:ir.model,name:account_journal_active.model_account_journal
+msgid "Journal"
+msgstr "Diario"

+ 28 - 0
i18n/gl.po

@@ -0,0 +1,28 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * account_journal_active
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: odoo-addons (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-10-22 13:44+0000\n"
+"PO-Revision-Date: 2015-09-01 18:07+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Galician (http://www.transifex.com/adhoc/ingadhoc-odoo-addons-8-0/language/gl/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: gl\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: account_journal_active
+#: field:account.journal,active:0
+msgid "Active"
+msgstr ""
+
+#. module: account_journal_active
+#: model:ir.model,name:account_journal_active.model_account_journal
+msgid "Journal"
+msgstr "Diario"