← Back to team overview

clearcorp team mailing list archive

lp:~as.clearcorp/openerp-costa-rica/6.1-l10n_cr_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_cr_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_cr_account_voucher/+merge/107815

[ADD] Added l10n_cr_account_voucher_view.xml, l10n_cr_voucher_payment_receipt_view.xml, l10n_cr_voucher_sales_purchase_view.xml
[IMP] reference required = True
-- 
https://code.launchpad.net/~as.clearcorp/openerp-costa-rica/6.1-l10n_cr_account_voucher/+merge/107815
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 15:41:19 +0000
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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 l10n_cr_account_voucher
+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 15:41:19 +0000
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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" : 'Armando Soto',
+    'complexity': "normal",
+    "description": """
+Account Voucher module includes all the basic requirements of Voucher Entries for Bank, Cash, Sales, Purchase, Expanse, Contra, etc.
+====================================================================================================================================
+
+    * Voucher Entry
+    * Voucher Receipt
+    * Cheque Register
+    """,
+    "category": 'Accounting & Finance',
+    "website" : "http://clearcorp.co.cr";,
+    "depends" : ["account_voucher"], 
+    "init_xml" : [],
+    "update_xml" : [
+	'l10n_cr_account_voucher_view.xml',
+	"l10n_cr_voucher_payment_receipt_view.xml",
+	"l10n_cr_voucher_sales_purchase_view.xml"
+    ],
+    'auto_install': False,
+    "application": True,
+    "installable": True,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'l10n_cr_account_voucher/l10n_cr_account_voucher.py'
--- l10n_cr_account_voucher/l10n_cr_account_voucher.py	1970-01-01 00:00:00 +0000
+++ l10n_cr_account_voucher/l10n_cr_account_voucher.py	2012-05-29 15:41:19 +0000
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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 time
+from lxml import etree
+
+import netsvc
+from osv import osv, fields
+import decimal_precision as dp
+from tools.translate import _
+
+class account_voucher(osv.osv):
+    _name = 'account.voucher' 
+    _inherit = 'account.voucher'
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== 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 15:41:19 +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 15:41:19 +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 15:41:19 +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