clearcorp team mailing list archive
-
clearcorp team
-
Mailing list archive
-
Message #00172
lp:~dr.clearcorp/openerp-ccorp-addons/6.1-account_voucher_check into lp:openerp-ccorp-addons/6.1
Diana Rodríguez Martínez has proposed merging lp:~dr.clearcorp/openerp-ccorp-addons/6.1-account_voucher_check into lp:openerp-ccorp-addons/6.1.
Requested reviews:
CLEARCORP drivers (clearcorp-drivers)
For more details, see:
https://code.launchpad.net/~dr.clearcorp/openerp-ccorp-addons/6.1-account_voucher_check/+merge/109395
[REM] account_voucher_check module
--
https://code.launchpad.net/~dr.clearcorp/openerp-ccorp-addons/6.1-account_voucher_check/+merge/109395
Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons/6.1.
=== removed directory 'account_voucher_check'
=== removed file 'account_voucher_check/__init__.py'
--- account_voucher_check/__init__.py 2012-01-04 20:06:41 +0000
+++ account_voucher_check/__init__.py 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
-import report
=== removed file 'account_voucher_check/__openerp__.py'
--- account_voucher_check/__openerp__.py 2012-01-04 20:06:41 +0000
+++ account_voucher_check/__openerp__.py 1970-01-01 00:00:00 +0000
@@ -1,44 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# account_voucher_check.py
-# account_voucher_check
-# First author: Mag Guevara <mag.guevara@xxxxxxxxxxxxxxx> (ClearCorp S.A.)
-# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without modification, are
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this list of
-# conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice, this list
-# of conditions and the following disclaimer in the documentation and/or other materials
-# provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# The views and conclusions contained in the software and documentation are those of the
-# authors and should not be interpreted as representing official policies, either expressed
-# or implied, of ClearCorp S.A..
-#
-##############################################################################
-{
- "name" : "Voucher Check",
- "author" : "ClearCorp S.A.",
- "version" : "0.1",
- "depends" : ["base","account","report_webkit","base_currency_symbol"],
- "init_xml" : [],
- "update_xml" : ['account_voucher_check_view.xml','account_voucher_check_report.xml',],
- "category" : "Accounting",
- "active" : False,
- "instalable" : True,
-}
=== removed file 'account_voucher_check/account_voucher_check_report.xml'
--- account_voucher_check/account_voucher_check_report.xml 2011-11-11 16:09:05 +0000
+++ account_voucher_check/account_voucher_check_report.xml 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<openerp>
- <data>
- <report auto="False"
- id="account_voucher.report_check_voucher"
- model="account.voucher"
- name="check.voucher.layout_ccorp"
- file="account_voucher_check/report/check_voucher.mako"
- string="Check Print"
- report_type="webkit"
- header = "False"
- />
- </data>
-</openerp>
=== removed file 'account_voucher_check/account_voucher_check_view.xml'
--- account_voucher_check/account_voucher_check_view.xml 2012-05-03 05:21:54 +0000
+++ account_voucher_check/account_voucher_check_view.xml 1970-01-01 00:00:00 +0000
@@ -1,83 +0,0 @@
-<?xml version = "1.0" encoding = "UTF-8"?>
-<openerp>
- <data>
-
- <!--
- ======================================
- accounts
- ======================================
-
-
- <record model="ir.ui.view" id="view_check_form">
- <field name="name">account.voucher.check.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 = "company_id" position = "after">
- <field name = "amount_text" required="1"/>
- </field>
- </data>
- </field>
- </record>
--->
- <record id="action_check_payment" model="ir.actions.act_window">
- <field name="name">Check Payment</field>
- <field name="res_model">account.voucher</field>
- <field name="view_type">form</field>
- <field name="domain">[('journal_id.type', 'in', ['bank']), ('type','=','payment')]</field>
- <field name="context">{'type':'payment'}</field>
- <field name="view_id" eval="False"/>
- <field name="search_view_id" ref="account_voucher.view_voucher_filter_vendor_pay"/>
- <field name="target">current</field>
- <field name="help">The Check payment form allows you to track the payment by check you do to your suppliers. When you select a supplier, the payment method and an amount for the payment, OpenERP will propose to reconcile your payment with the open supplier invoices or bills.</field>
- </record>
- <record id="action_check_payment_tree" model="ir.actions.act_window.view">
- <field eval="1" name="sequence"/>
- <field name="view_mode">tree</field>
- <field name="act_window_id" ref="action_check_payment"/>
- </record>
- <record id="action_check_payment_form" model="ir.actions.act_window.view">
- <field eval="2" name="sequence"/>
- <field name="view_mode">form</field>
- <field name="view_id" ref="account_voucher.view_vendor_payment_form"/>
- <field name="act_window_id" ref="action_check_payment"/>
- </record>
-
- <record model = "ir.ui.view" id = "rent_invoice_form_view">
- <field name = "name">check.invoice.supplier.form</field>
- <field name = "model">account.invoice</field>
- <field name = "type">form</field>
- <field name = "inherit_id" ref = "account.invoice_supplier_form"/>
- <field name = "arch" type="xml">
- <data>
- <field name="date_invoice" position="before">
- <field name = "name" />
- </field>
- </data>
- </field>
- </record>
-
-<!--
- <record model = "ir.ui.view" id = "rent_invoice_tree_view">
- <field name = "name">check.invoice.supplier.tree</field>
- <field name = "model">account.invoice</field>
- <field name = "type">tree</field>
- <field name = "inherit_id" ref = "account.invoice_tree"/>
- <field name = "arch" type="xml">
- <data>
- <field name="company_id" position="after">
- <field name = "name" />
- </field>
- </data>
- </field>
- </record>
--->
-
-
- <menuitem action="action_check_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
- id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
- </data>
-</openerp>
-
=== removed file 'account_voucher_check/data.xml'
--- account_voucher_check/data.xml 2012-01-04 20:07:15 +0000
+++ account_voucher_check/data.xml 1970-01-01 00:00:00 +0000
@@ -1,140 +0,0 @@
-<?xml version="1.0" ?>
- <openerp>
- <data noupdate="1">
- <record id="ir_header_webkit_base_check" model="ir.header_webkit">
- <field eval=""""Portrait"""" name="orientation"/>
- <field eval=""""Letter"""" name="format"/>
- <field eval="55.0" name="margin_top"/>
- <field name="css" ><![CDATA[
- body {
- margin-top : 10px;/*cambio de 20 a 10*/
-}
-
-#wrapper{
-
-}
-
-#document_data{
- padding : 5px;
- width : 100%;
- height : 200px;/*cambio de 210 a 200*/
-}
-
-#date {
- margin : 20px 0px 5px 300px;/*cambio de 400 a 200*/
-}
-
-#detail {
- margin-top : 20px;
- width : 100%;
-
-}
-
-.amount_detail {
- margin : 0px 0px 0px 300px;/*cambio de 400 a 200*/
-
-}
-
-#accounting_data {
- margin-right : 100px;
-
-}
-
-#document_desc {
- height : 90px;/*cambio de 110 a 90*/
- margin-bottom : 3px;/*cambio de 7 a 3*/
- width : 100%;
-}
-
-#accounts{
- margin-left : 0px;
- margin-top : 2px;/*cambio de 8 a 2*/
- margin-bottom : 7px;/*cambio de 13 a 7*/
- height : 250px;/*cambio de 290 a 250*/
- width : 660px; /*643*/
-}
-
-#table_account{}
-
-#footer_data{}
-
-.detail_desc{
- font-family : courier, arial, sans, serif;
- font-size : 14px;
- font-style : italic;
-}
-
-.text_font{
- font-family : courier, arial, sans, serif;
- font-size : 14px;
-}
-
-.amount{
- font-family : courier, arial, sans, serif;
- font-size : 14px;
- font-style : italic;
-}
-
-.account_line{
- font-family : courier, arial, sans, serif;
- font-size : 14px;
- text-align : center;
-}
-.detail_line{
- width : 60%;/*cambio de 70 a 30*/
- float : left;
- margin-left : 30px;/*cambio de 70 a 30*/
-}
-.amount_text{
- margin : 5px;
- width : 100%;
- margin-top : 20px;
- margin-left : 30px;/*cambio de 70 a 30*/
-}
-
-.account_id{
- width : 290px;
-}
-
-.code_cell {
- width : 125px;
-}
-
-.code_div {
- float : left;
- width : 120px;
-
-}
-
-.amount_acc {
- width : 130px;
-}
-
-.made_by{
- float : left;
- width : 85px;
- margin-left : 5px;
- font-family : courier, arial, sans, serif;
- font-size : 14px;
- text-align : center;
-}
-
-#receipt {
- float : left;
- margin-left : 15px;
-}
-
-#related{
- float : left;
-}
-
-.sub_receipt{
- width : 140px;
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
-]]>
- </field>
- </data>
-</openerp>
=== removed directory 'account_voucher_check/i18n'
=== removed file 'account_voucher_check/i18n/es_CR.po'
--- account_voucher_check/i18n/es_CR.po 2012-04-12 20:25:25 +0000
+++ account_voucher_check/i18n/es_CR.po 1970-01-01 00:00:00 +0000
@@ -1,86 +0,0 @@
-# Translation of OpenERP Server.
-# This file contains the translation of the following modules:
-# * ccorp_payment_receipt
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 6.0.3\n"
-"Report-Msgid-Bugs-To: support@xxxxxxxxxxx\n"
-"POT-Creation-Date: 2012-01-03 22:28+0000\n"
-"PO-Revision-Date: 2012-01-03 22:28+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: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:39
-msgid "Check No."
-msgstr "CHEQUE No."
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:13
-msgid "No."
-msgstr "No."
-
-#. module: ccorp_payment_receipt
-#: model:ir.actions.report.xml,name:ccorp_payment_receipt.account_voucher_ccorp
-msgid "Payment Voucher"
-msgstr "Imprimir Recibo"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:46
-msgid "AUTORIZADO MEDIANTE OFICIO No.04-00007-97 DE FECHA 30-09-97 DE LA D.G.T.D."
-msgstr "AUTORIZADO MEDIANTE OFICIO No.04-00007-97 DE FECHA 30-09-97 DE LA D.G.T.D."
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:23
-msgid "Concept of"
-msgstr "POR CONCEPTO DE"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:45
-msgid "LA VALIDEZ DE ESTE RECIBO QUEDA SUJETA A QUE LOS CHEQUES RECIBIDOS SEAN PAGADOS POR EL BANCO A NUESTRA SATISFACCION"
-msgstr "LA VALIDEZ DE ESTE RECIBO QUEDA SUJETA A QUE LOS CHEQUES RECIBIDOS SEAN PAGADOS POR EL BANCO A NUESTRA SATISFACCION"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:37
-msgid "Cash"
-msgstr "EFECTIVO"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:20
-msgid "The amount of"
-msgstr "LA SUMA DE"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:26
-msgid "Observations"
-msgstr "OBSERVACIONES"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:49
-msgid "P/"
-msgstr "P/"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:17
-msgid "We recieve from"
-msgstr "RECIBIMOS DE"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:1
-msgid "MONEY RECEIPT"
-msgstr "RECIBO DE DINERO"
-
-#. module: ccorp_payment_receipt
-#: report:report.account.voucher.layout_ccorp:1
-msgid "Date"
-msgstr "FECHA"
-
-#. module: ccorp_payment_receipt
-#: report:addons/ccorp_payment_receipt/report/payment_receipt.mako:23
-msgid "In words"
-msgstr "EN LETRAS"
=== removed directory 'account_voucher_check/report'
=== removed file 'account_voucher_check/report/__init__.py'
--- account_voucher_check/report/__init__.py 2011-11-10 20:42:31 +0000
+++ account_voucher_check/report/__init__.py 1970-01-01 00:00:00 +0000
@@ -1,35 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# __init__.py
-# check_voucher
-# First author: Mag Guevara <mag.guevara@xxxxxxxxxxxxxxx> (ClearCorp S.A.)
-# Copyright (c) 2011-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without modification, are
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this list of
-# conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice, this list
-# of conditions and the following disclaimer in the documentation and/or other materials
-# provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# The views and conclusions contained in the software and documentation are those of the
-# authors and should not be interpreted as representing official policies, either expressed
-# or implied, of ClearCorp S.A..
-#
-##############################################################################
-
-import check_voucher
=== removed file 'account_voucher_check/report/account_voucher_check_dot_matrix.css'
--- account_voucher_check/report/account_voucher_check_dot_matrix.css 2012-01-13 15:36:53 +0000
+++ account_voucher_check/report/account_voucher_check_dot_matrix.css 1970-01-01 00:00:00 +0000
@@ -1,144 +0,0 @@
-body {
- /*margin-top : 10px;cambio de 20 a 10*/
-}
-
-#wrapper{
-
-}
-
-#document_data{
- /*padding : 5px;*/
- padding-top : 15px;
- width : 100%;
- height : 185px;/*cambio de 210 a 200*/
-}
-
-#date {
- margin : 20px 0px 5px 350px;/*cambio de 400 a 200*/
-}
-
-#detail {
- margin-top : 13px;
- width : 100%;
-
-}
-
-.amount_detail {
- margin : 0px 0px 0px 375px;/*cambio de 400 a 200*/
-
-}
-
-#accounting_data {
- /*margin-right : 100px;*/
-
-}
-
-#document_desc {
- height : 90px;/*cambio de 110 a 90*/
- margin-bottom : 10px;/*cambio de 7 a 3*/
- width : 100%;
-}
-
-#accounts{
- margin-top : 4px;/*cambio de 8 a 2*/
- margin-bottom : 7px;/*cambio de 13 a 7*/
- height : 250px;/*cambio de 290 a 250*/
- width : 82%;
- /*width : 660px; /*643*/
-}
-
-#table_account{
- border-collapse: collapse;
-}
-
-#footer_data{}
-
-.detail_desc{
- font-family : courier, arial, sans, serif;
- font-size : 13px;
- font-style : italic;
-}
-
-.text_font{
- font-family : courier, arial, sans, serif;
- font-size : 13px;
-}
-
-.amount{
- font-family : courier, arial, sans, serif;
- font-size : 13px;
- font-style : italic;
-}
-
-.account_line{
- font-family : courier, arial, sans, serif;
- font-size : 13px;
-}
-.detail_line{
- width : 60%;/*cambio de 70 a 30*/
- float : left;
- margin-left : 50px;/*cambio de 70 a 30*/
-}
-.amount_text{
- /*margin : 5px;*/
- width : 70%;
- margin-top : 15px;
- margin-left : 50px;/*cambio de 70 a 30*/
- word-spacing:-1px;
-}
-
-.account_id{
- width : 288px;
- text-align : center;
- word-spacing:-1px;
-}
-
-.code_cell {
- width : 120px;/*125*/
- text-align : left;
-}
-
-.code_div {
- float : left;
- width : 120px;
-
-}
-
-.amount_acc {
- width : 120px;/*125*/
- text-align : center;
- word-spacing:-1px;
-}
-
-.made_by{
- float : left;
- width : 85px;
- margin-left : 5px;
- font-family : courier, arial, sans, serif;
- font-size : 13px;
- text-align : center;
-}
-
-#receipt {
- float : left;
- margin-left : 15px;
-}
-
-#related{
- float : left;
-}
-
-.sub_receipt{
- width : 140px;
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
-
- td {border-collapse: collapse; }
-
-.amount_desc {
- font-family : courier, arial, sans, serif;
- font-size : 13px;
- word-spacing:-6px;
- }
=== removed file 'account_voucher_check/report/account_voucher_check_page.css'
--- account_voucher_check/report/account_voucher_check_page.css 2011-12-23 23:09:52 +0000
+++ account_voucher_check/report/account_voucher_check_page.css 1970-01-01 00:00:00 +0000
@@ -1,128 +0,0 @@
-body {
- margin-top : 20px;
-}
-
-#wrapper{
-
-}
-
-#document_data{
- padding : 5px;
- width : 100%;
- height : 210px;
-}
-
-#date {
- margin : 20px 0px 5px 400px;
-}
-
-#detail {
- margin-top : 20px;
- width : 100%;
-
-}
-
-.amount_detail {
- margin : 0px 0px 0px 400px;
-
-}
-
-#accounting_data {
- margin : 5px;
-
-}
-
-#document_desc {
- height : 110px;
- margin-bottom : 7px;
- width : 100%;
-}
-
-#accounts{
- margin-left : 0px;
- margin-top : 8px;
- margin-bottom : 13px;
- height : 290px;
- width : 660px; /*643*/
-}
-
-#table_account{}
-
-#footer_data{}
-
-.detail_desc{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- font-style : italic;
-}
-
-.text_font{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
-}
-
-.amount{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- font-style : italic;
-}
-
-.account_line{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
-.detail_line{
- width : 75%;
- float : left;
- margin-left : 70px;
-}
-.amount_text{
- margin : 5px;
- width : 100%;
- margin-top : 20px;
- margin-left : 70px;
-}
-
-.account_id{
- width : 290px;
-}
-
-.code_cell {
- width : 125px;
-}
-
-.code_div {
- float : left;
- width : 120px;
-
-}
-
-.amount_acc {
- width : 130px;
-}
-
-.made_by{
- float : left;
- width : 85px;
- margin-left : 5px;
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
-
-#receipt {
- float : left;
- margin-left : 15px;
-}
-
-#related{
- float : left;
-}
-
-.sub_receipt{
- width : 140px;
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
=== removed file 'account_voucher_check/report/account_voucher_check_test.css'
--- account_voucher_check/report/account_voucher_check_test.css 2012-01-04 20:07:15 +0000
+++ account_voucher_check/report/account_voucher_check_test.css 1970-01-01 00:00:00 +0000
@@ -1,126 +0,0 @@
-body {
-
-}
-
-#wrapper{
-
-}
-
-#document_data{
- padding : 5px;
- width : 100%;
- height : 210px;
-}
-
-#date {
- margin : 20px 0px 5px 400px;
-}
-
-#detail {
- margin-top : 20px;
- width : 100%;
-}
-
-.amount_detail {
- margin : 0px 0px 0px 10px;
-}
-
-#accounting_data {
- margin : 5px;
-}
-
-#document_desc {
- height : 110px;
- margin-bottom : 7px;
- width : 100%;
-}
-
-#accounts{
- margin-left : 0px;
- margin-top : 8px;
- margin-bottom : 13px;
- height : 290px;
-}
-
-#table_account{}
-
-#footer_data{}
-
-.detail_desc{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- font-style : italic;
-}
-
-.text_font{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
-}
-
-.amount{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- font-style : italic;
-}
-
-.account_line{
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
-.detail_line{
- width : 70%;
- float : left;
- margin-left : 70px;
-}
-.amount_text{
- margin : 5px;
- width : 100%;
- margin-top : 20px;
- margin-left : 70px;
-}
-
-.account_id{
- width : 270px;
-}
-
-.code_cell {
- width : 130px;
-}
-
-.code_div {
- float : left;
- width : 130px;
-
-}
-
-.amount_acc {
- width : 140px;
-}
-
-.made_by{
- float : left;
- width : 100px;
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
- border: 1px solid #000; border-collapse: collapse;
-}
-
-#receipt {
- float : left;
- border: 1px solid #000; border-collapse: collapse;
- margin-left : 5px;
-}
-
-#related{
- float : left;
-}
-
-.sub_receipt{
- width : 140px;
- font-family : courier, arial, sans, serif;
- font-size : 10px;
- text-align : center;
-}
- td {border: 1px solid #000; border-collapse: collapse; }
=== removed file 'account_voucher_check/report/amount_to_text.py'
--- account_voucher_check/report/amount_to_text.py 2012-04-16 18:01:54 +0000
+++ account_voucher_check/report/amount_to_text.py 1970-01-01 00:00:00 +0000
@@ -1,130 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-#from tools import #debug
-UNIDADES = (
- '',
- 'UN ',
- 'DOS ',
- 'TRES ',
- 'CUATRO ',
- 'CINCO ',
- 'SEIS ',
- 'SIETE ',
- 'OCHO ',
- 'NUEVE ',
- 'DIEZ ',
- 'ONCE ',
- 'DOCE ',
- 'TRECE ',
- 'CATORCE ',
- 'QUINCE ',
- 'DIECISEIS ',
- 'DIECISIETE ',
- 'DIECIOCHO ',
- 'DIECINUEVE ',
- 'VEINTE '
-)
-DECENAS = (
- 'VENTI',
- 'TREINTA ',
- 'CUARENTA ',
- 'CINCUENTA ',
- 'SESENTA ',
- 'SETENTA ',
- 'OCHENTA ',
- 'NOVENTA ',
- 'CIEN '
-)
-CENTENAS = (
- 'CIENTO ',
- 'DOSCIENTOS ',
- 'TRESCIENTOS ',
- 'CUATROCIENTOS ',
- 'QUINIENTOS ',
- 'SEISCIENTOS ',
- 'SETECIENTOS ',
- 'OCHOCIENTOS ',
- 'NOVECIENTOS '
-)
-
-def number_to_text_es(number_in,currency,join_dec=' Y ',separator=',',decimal_point='.'):
-
- converted = ''
- if currency == False:
- currency = ''
-
- if currency == None:
- currency = ''
-
- if type(number_in) != 'str':
- number = str(number_in)
- else:
- number = number_in
-
- number_str=number
- #if we are using the coma as separator we need to remove them from the string
- try:
- number_str = number_str.replace(separator,'')
- except ValueError:
- print 'The separator used for the thousands its not supported'
-
- #debug(number_str)
-
- try:
- number_int, number_dec = number_str.split(decimal_point)
- except ValueError:
- number_int = number_str
- number_dec = ""
-
- number_str = number_int.zfill(9)
- millones = number_str[:3]
- miles = number_str[3:6]
- cientos = number_str[6:]
-
- if(millones):
- if(millones == '001'):
- converted += 'UN MILLON '
- elif(int(millones) > 0):
- converted += '%sMILLONES ' % __convertNumber(millones)
-
- if(miles):
- if(miles == '001'):
- converted += 'MIL '
- elif(int(miles) > 0):
- converted += '%sMIL ' % __convertNumber(miles)
- if(cientos):
- if(cientos == '001'):
- converted += 'UN '
- elif(int(cientos) > 0):
- converted += '%s ' % __convertNumber(cientos)
-
- if number_dec == "":
- number_dec = "00"
- if (len(number_dec) < 2 ):
- number_dec+='0'
-
- has_decimal = float(number_dec) != 0 and join_dec + number_dec + "/100" or ' EXACTOS'
- converted += currency + has_decimal
-
-
- return converted
-
-def __convertNumber(n):
- output = ''
-
- if(n == '100'):
- output = "CIEN "
- elif(n[0] != '0'):
- output = CENTENAS[int(n[0])-1]
-
- k = int(n[1:])
- if(k <= 20):
- output += UNIDADES[k]
- else:
- if((k > 30) & (n[2] != '0')):
- output += '%sY %s' % (DECENAS[int(n[1])-2], UNIDADES[int(n[2])])
- else:
- output += '%s%s' % (DECENAS[int(n[1])-2], UNIDADES[int(n[2])])
-
- return output
=== removed file 'account_voucher_check/report/check_voucher.mako'
--- account_voucher_check/report/check_voucher.mako 2012-05-03 05:21:54 +0000
+++ account_voucher_check/report/check_voucher.mako 1970-01-01 00:00:00 +0000
@@ -1,91 +0,0 @@
-<html>
-<head>
- <style style="text/css">
- ${css}
- </style>
-</head>
-<body class = "data">
- %for check in objects :
- <% setLang(check.partner_id.lang) %>
- <div id="wrapper">
- <div id = "document_data">
- <div id = "date">
- <span class="text_font">${check.date or ''|entity}</span>
- </div>
- <div id = "detail">
- <div class = "detail_line">
- <span class="text_font">${check.partner_id.name or ''|entity}</span>
- </div>
- <div class = "amount_detail">
- <span class = "amount">${formatLang(check.amount)}</span>
- </div>
- </div>
- %if count_text(check.amount,check.currency_id,check.partner_id.lang,check.company_id) < 50 :
- <div class = "amount_text">
- <span class="amount_desc">${get_text(check.amount,check.currency_id,check.partner_id.lang,check.company_id) or ''|entity}</span>
- </div>
- %elif count_text(check.amount,check.currency_id,check.partner_id.lang,check.company_id) > 50 and get_text(check.amount,check.currency_id,check.partner_id.lang,check.company_id) < 80:
- <div class = "amount_text">
- <span class="amount_desc_medium">${get_text(check.amount,check.currency_id,check.partner_id.lang,check.company_id) or ''|entity}</span>
- </div>
- %else :
- <div class = "amount_text">
- <span class="amount_desc_small">${get_text(check.amount,check.currency_id,check.partner_id.lang,check.company_id) or ''|entity}</span>
- </div>
- %endif
- </div>
- <div id = "accounting_data">
- <div id = "document_desc">
- <p> </p>
- <div class = "detail_desc">
- %if check.name:
- <span class = "text_font">${check.name or ''|entity}</span>
- %endif
- %for line in check.move_ids :
- %if line.invoice.name:
- <span class = "text_font">${ line.invoice.name or ''|entity}</span>
- <span> </span>
- %endif
- %endfor
- </div>
- </div>
- </br>
- <div id = "accounts">
- <table width = "100%" id = "table_account" cellpadding = "0" cellspacing = "0">
- <thead><tr><th> </th><th> </th><th> </th><th> </th></tr></thead>
- <tbody>
- %for line in check.move_ids :
- <tr class = "account_line">
- <td valign="top" class = "code_cell">
- ${line.account_id.code}
- </td>
- <td valign="top" class = "account_id">
- ${line.account_id.name}
- </td>
- <td valign="top" class = "amount_acc">
- ${line.account_id.currency_id.symbol_prefix or ''|entity} ${formatLang(line.debit)} ${line.account_id.currency_id.symbol_suffix or ''|entity}
- </td>
- <td valign="top" class = "amount_acc">
- ${line.account_id.currency_id.symbol_prefix or ''|entity} ${formatLang(line.credit)} ${line.account_id.currency_id.symbol_suffix or ''|entity}
- </td>
- </tr>
- %endfor
- %for line in check.line_dr_ids :
- <!--tr class = "account_line">
- <td valign="top" class = "code_cell">${line.account_id.code}</td>
- <td valign="top" class = "account_id">
- ${line.account_id.name}
- </td>
- <td valign="top" class = "amount_acc">${line.account_id.currency_id.symbol_prefix or ''|entity} ${formatLang(line.account_id.credit)} ${line.account_id.currency_id.symbol_suffix or ''|entity}</td>
- <td valign="top" class = "amount_acc">${line.account_id.currency_id.symbol_prefix or ''|entity} ${formatLang(line.account_id.credit)} ${line.account_id.currency_id.symbol_suffix or ''|entity}</td>
- </tr-->
- %endfor
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <p style="page-break-after:always"></p>
-%endfor
-</body>
-</html>
=== removed file 'account_voucher_check/report/check_voucher.py'
--- account_voucher_check/report/check_voucher.py 2012-05-03 05:21:54 +0000
+++ account_voucher_check/report/check_voucher.py 1970-01-01 00:00:00 +0000
@@ -1,99 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# check_voucher.py
-# account_voucher_check
-# First author: Mag Guevara <mag.guevara@xxxxxxxxxxxxxxx> (ClearCorp S.A.)
-# Second author: Juan Felipe Muñoz <juan.munoz@xxxxxxxxxxxxxxx> (ClearCorp S.A.)
-# Copyright (c) 2010-TODAY ClearCorp S.A. (http://clearcorp.co.cr). All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without modification, are
-# permitted provided that the following conditions are met:
-#
-# 1. Redistributions of source code must retain the above copyright notice, this list of
-# conditions and the following disclaimer.
-#
-# 2. Redistributions in binary form must reproduce the above copyright notice, this list
-# of conditions and the following disclaimer in the documentation and/or other materials
-# provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ``AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# The views and conclusions contained in the software and documentation are those of the
-# authors and should not be interpreted as representing official policies, either expressed
-# or implied, of ClearCorp S.A..
-#
-##############################################################################
-
-import time
-import pooler
-from report import report_sxw
-from amount_to_text import number_to_text_es
-import locale
-#from tools import #debug
-
-class check_voucher(report_sxw.rml_parse):
-
- def __init__(self, cr, uid, name, context):
- super(check_voucher, self).__init__(cr, uid, name, context=context)
- self.localcontext.update({
- 'time': time,
- 'cr' : cr,
- 'uid' : uid,
- 'get_text':self.get_text,
- 'count_text':self.count_text,
- 'get_concept':self.get_concept,
- })
- self.context = context
- self._node = None
-
-
- def get_text(self,amount,currency,lang,company_id):
- separator = ','
- decimal_point = '.'
- name_currency = currency.currency_name
- if name_currency == False:
- name_currency = company_id.currency_id.currency_name
- if name_currency == None:
- name_currency = company_id.currency_id.currency_name
- if lang:
- lang_pool = self.pool.get('res.lang')
- id_lang = lang_pool.search(self.cr,self.uid,[('code','=',lang)])
- obj_lang = lang_pool.browse(self.cr,self.uid,id_lang)[0]
- separator = obj_lang and obj_lang.thousands_sep or separator
- decimal_point = obj_lang and obj_lang.decimal_point or decimal_point
- #debug(separator)
- #debug(decimal_point)
- res = number_to_text_es(amount,name_currency,separator=separator,decimal_point=decimal_point)
- return res
-
-
-
- def count_text(self,amount,currency,lang,company_id):
- res = len(self.get_text(amount,currency,lang,company_id))
- return res
-
-
- def get_concept(self,moves):
- res = 'error'
- for move in moves:
- move_line = self.pool.get('acccount.move.line').browse(self.cr,self.uid,move.id)
- invoice = self.pool.get('account.invoice').browse(self.cr,self.uid,move_line.invoice)
- if invoice.name != ''or invoice.name != False:
- res = invoice.name
- return res
-
-report_sxw.report_sxw(
- 'report.check.voucher.layout_ccorp',
- 'account.voucher',
- 'addons/account_voucher_check/report/check_voucher.mako',
- parser=check_voucher
-)
Follow ups