← Back to team overview

clearcorp team mailing list archive

[Merge] lp:~as.clearcorp/openerp-costa-rica/6.1-l10n_account_voucher into lp:openerp-costa-rica/6.1

 

Armando Soto Rodríguez has proposed merging lp:~as.clearcorp/openerp-costa-rica/6.1-l10n_account_voucher into lp:openerp-costa-rica/6.1.

Requested reviews:
  CLEARCORP drivers (clearcorp-drivers)

For more details, see:
https://code.launchpad.net/~as.clearcorp/openerp-costa-rica/6.1-l10n_account_voucher/+merge/107880

[FIX] Format of the __openerp__.py improved
[REM] l10n_cr_account_voucher.py removed
-- 
https://code.launchpad.net/~as.clearcorp/openerp-costa-rica/6.1-l10n_account_voucher/+merge/107880
Your team CLEARCORP development team is subscribed to branch lp:openerp-costa-rica/6.1.
=== added directory 'l10n_cr_account_voucher'
=== added file 'l10n_cr_account_voucher/__init__.py'
--- l10n_cr_account_voucher/__init__.py	1970-01-01 00:00:00 +0000
+++ l10n_cr_account_voucher/__init__.py	2012-05-29 21:05:22 +0000
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Addons modules by CLEARCORP S.A.
+#    Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
+#
+#    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/>.
+#
+##############################################################################
+
+
+import account_voucher
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'l10n_cr_account_voucher/__openerp__.py'
--- l10n_cr_account_voucher/__openerp__.py	1970-01-01 00:00:00 +0000
+++ l10n_cr_account_voucher/__openerp__.py	2012-05-29 21:05:22 +0000
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Addons modules by CLEARCORP S.A.
+#    Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
+#
+#    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" : "l10n_cr_account_voucher",
+    "version" : "1.0",
+    "author" : 'CLEARCORP S.A.',
+    'complexity': "normal",
+    "description": """
+Localization of Account Voucher
+Changed the refence field of account_voucher to required
+""",
+    "category": 'Accounting & Finance',
+    "sequence": 4,
+    "website" : "http://clearcorp.co.cr";,
+    "images" : [],
+    "icon" : False,
+    "depends" : ["account_voucher"], 
+    "init_xml" : [],
+    "demo_xml" : [],
+    "update_xml" : [
+	'l10n_cr_account_voucher_view.xml',
+	"l10n_cr_voucher_payment_receipt_view.xml",
+	"l10n_cr_voucher_sales_purchase_view.xml"
+    ],
+    "test" : [],
+    'auto_install': False,
+    "application": True,
+    "installable": True,
+    'license': 'AGPL-3',
+}
+

=== added file 'l10n_cr_account_voucher/l10n_cr_account_voucher_view.xml'
--- l10n_cr_account_voucher/l10n_cr_account_voucher_view.xml	1970-01-01 00:00:00 +0000
+++ l10n_cr_account_voucher/l10n_cr_account_voucher_view.xml	2012-05-29 21:05:22 +0000
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <record id="cr_account_voucher_tree" model="ir.ui.view">
+            <field name="name">cr.account.voucher.tree</field>
+            <field name="model">account.voucher</field>
+            <field name="type">tree</field>
+            <field name="inherit_id" ref="account_voucher.view_voucher_tree"/>
+            <field name="arch" type="xml">
+                <data>                
+                    <field name = "reference" position = "replace">
+                        <field name="reference" required="True"/>
+                    </field>
+                </data>
+            </field>
+        </record>
+
+	<record id="cr_account_voucher_form" model="ir.ui.view">
+            <field name="name">cr.account.voucher.form</field>
+            <field name="model">account.voucher</field>
+            <field name="type">form</field>
+            <field name="inherit_id" ref="account_voucher.view_voucher_form"/>
+            <field name="arch" type="xml">
+                <data>                
+                    <field name = "reference" position = "replace">
+                        <field name="reference" select="1" required="True"/>
+                    </field>
+                </data>
+            </field>
+        </record>
+
+
+    </data>
+</openerp>

=== added file 'l10n_cr_account_voucher/l10n_cr_voucher_payment_receipt_view.xml'
--- l10n_cr_account_voucher/l10n_cr_voucher_payment_receipt_view.xml	1970-01-01 00:00:00 +0000
+++ l10n_cr_account_voucher/l10n_cr_voucher_payment_receipt_view.xml	2012-05-29 21:05:22 +0000
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <record id="cr_view_low_priority_payment_form" model="ir.ui.view">
+            <field name="name">cr.view.low.priority.payment.form</field>
+            <field name="model">account.voucher</field>
+            <field name="type">form</field>
+            <field name="inherit_id" ref="account_voucher.view_low_priority_payment_form"/>
+            <field name="arch" type="xml">
+                <data>                
+                    <field name = "reference" position = "replace">
+                        <field name="reference" select="1" required="1" string="Payment Ref"/>
+                    </field>
+                </data>
+            </field>
+        </record>
+
+	<record id="cr_view_vendor_payment_form" model="ir.ui.view">
+            <field name="name">cr.view.vendor.payment.form</field>
+            <field name="model">account.voucher</field>
+            <field name="type">form</field>
+            <field name="inherit_id" ref="account_voucher.view_vendor_payment_form"/>
+            <field name="arch" type="xml">
+                <data>                
+                    <field name = "reference" position = "replace">
+                        <field name="reference" select="1" required="1" invisible="context.get('line_type', False)" string="Payment Ref"/>
+                    </field>
+                </data>
+            </field>
+        </record>
+
+	<record id="cr_view_vendor_receipt_form" model="ir.ui.view">
+            <field name="name">cr.view.vendor.receipt.form</field>
+            <field name="model">account.voucher</field>
+            <field name="type">form</field>
+            <field name="inherit_id" ref="account_voucher.view_vendor_receipt_form"/>
+            <field name="arch" type="xml">
+                <data>                
+                    <field name = "reference" position = "replace">
+                        <field name="reference" select="1" required="1" invisible="context.get('line_type', False)" string="Payment Ref"/>
+                    </field>
+                </data>
+            </field>
+        </record>
+
+
+    </data>
+</openerp>

=== added file 'l10n_cr_account_voucher/l10n_cr_voucher_sales_purchase_view.xml'
--- l10n_cr_account_voucher/l10n_cr_voucher_sales_purchase_view.xml	1970-01-01 00:00:00 +0000
+++ l10n_cr_account_voucher/l10n_cr_voucher_sales_purchase_view.xml	2012-05-29 21:05:22 +0000
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <record id="cr_view_purchase_receipt_form" model="ir.ui.view">
+            <field name="name">cr.view.purchase.receipt.form</field>
+            <field name="model">account.voucher</field>
+            <field name="type">form</field>
+            <field name="inherit_id" ref="account_voucher.view_purchase_receipt_form"/>
+            <field name="arch" type="xml">
+                <data>                
+                    <field name = "reference" position = "replace">
+                        <field name="reference" select="1" required="1" />
+                    </field>
+                </data>
+            </field>
+        </record>
+
+    </data>
+</openerp>


Follow ups