Merge lp:~vauxoo/openerp-venezuela-localization/ovl70-wh-rev-hbto into lp:openerp-venezuela-localization

Proposed by hbto [Vauxoo] http://www.vauxoo.com
Status: Merged
Merged at revision: 766
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/ovl70-wh-rev-hbto
Merge into: lp:openerp-venezuela-localization
Diff against target: 232 lines (+76/-28)
6 files modified
l10n_ve_withholding/__init__.py (+1/-4)
l10n_ve_withholding/__openerp__.py (+3/-3)
l10n_ve_withholding/model/__init__.py (+31/-0)
l10n_ve_withholding/model/account.py (+38/-8)
l10n_ve_withholding/view/account_view.xml (+3/-7)
l10n_ve_withholding/view/l10n_ve_withholding_view.xml (+0/-6)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/ovl70-wh-rev-hbto
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Approve
Review via email: mp+139041@code.launchpad.net
To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding/__init__.py'
2--- l10n_ve_withholding/__init__.py 2011-10-25 20:33:16 +0000
3+++ l10n_ve_withholding/__init__.py 2012-12-10 17:17:27 +0000
4@@ -23,9 +23,6 @@
5 # along with this program. If not, see <http://www.gnu.org/licenses/>.
6 ################################################################################
7
8-import account
9-import l10n_ve_withholding
10-import account_move_line
11-import invoice
12+import model
13
14 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
15
16=== modified file 'l10n_ve_withholding/__openerp__.py'
17--- l10n_ve_withholding/__openerp__.py 2012-09-25 22:32:13 +0000
18+++ l10n_ve_withholding/__openerp__.py 2012-12-10 17:17:27 +0000
19@@ -43,9 +43,9 @@
20 'update_xml': [
21 'security/withholding_security.xml',
22 'security/ir.model.access.csv',
23- 'l10n_ve_withholding_data.xml',
24- 'l10n_ve_withholding_view.xml',
25- 'account_view.xml',
26+ 'data/l10n_ve_withholding_data.xml',
27+ 'view/l10n_ve_withholding_view.xml',
28+ 'view/account_view.xml',
29 'workflow/account_workflow.xml',
30 ],
31 'demo_xml': [],
32
33=== added directory 'l10n_ve_withholding/data'
34=== renamed file 'l10n_ve_withholding/l10n_ve_withholding_data.xml' => 'l10n_ve_withholding/data/l10n_ve_withholding_data.xml'
35=== added directory 'l10n_ve_withholding/model'
36=== added file 'l10n_ve_withholding/model/__init__.py'
37--- l10n_ve_withholding/model/__init__.py 1970-01-01 00:00:00 +0000
38+++ l10n_ve_withholding/model/__init__.py 2012-12-10 17:17:27 +0000
39@@ -0,0 +1,31 @@
40+#!/usr/bin/python
41+# -*- encoding: utf-8 -*-
42+###########################################################################
43+# Module Writen to OpenERP, Open Source Management Solution
44+# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
45+# All Rights Reserved
46+###############Credits######################################################
47+# Coded by: Vauxoo C.A.
48+# Planified by: Nhomar Hernandez
49+# Audited by: Vauxoo C.A.
50+#############################################################################
51+# This program is free software: you can redistribute it and/or modify
52+# it under the terms of the GNU Affero General Public License as published by
53+# the Free Software Foundation, either version 3 of the License, or
54+# (at your option) any later version.
55+#
56+# This program is distributed in the hope that it will be useful,
57+# but WITHOUT ANY WARRANTY; without even the implied warranty of
58+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59+# GNU Affero General Public License for more details.
60+#
61+# You should have received a copy of the GNU Affero General Public License
62+# along with this program. If not, see <http://www.gnu.org/licenses/>.
63+################################################################################
64+
65+import account
66+import l10n_ve_withholding
67+import account_move_line
68+import invoice
69+
70+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
71
72=== renamed file 'l10n_ve_withholding/account.py' => 'l10n_ve_withholding/model/account.py'
73--- l10n_ve_withholding/account.py 2012-02-17 05:23:01 +0000
74+++ l10n_ve_withholding/model/account.py 2012-12-10 17:17:27 +0000
75@@ -26,16 +26,46 @@
76 from osv import fields, osv
77 import time
78
79+__TYPES__ =[('sale', 'Sale'),
80+ ('sale_refund','Sale Refund'),
81+ ('purchase', 'Purchase'),
82+ ('purchase_refund','Purchase Refund'),
83+ ('cash', 'Cash'),
84+ ('bank', 'Bank and Cheques'),
85+ ('general', 'General'),
86+ ('situation', 'Opening/Closing Situation'),
87+ ('sale_debit', 'Sale Debit'),
88+ ('purchase_debit', 'Purchase Debit'),
89+ ('iva_sale', 'Sale Wh VAT'),
90+ ('iva_purchase', 'Purchase Wh VAT'),
91+ ('islr_purchase', 'Purchase Wh Income'),
92+ ('islr_sale', 'Sale Wh Income'),
93+ ('mun_sale', 'Sale Wh County'),
94+ ('mun_purchase', 'Purchase Wh County'),
95+ ('src_sale', 'Sale Wh src'),
96+ ('src_purchase', 'Purchase Wh src')]
97+
98 class account_journal(osv.osv):
99 _inherit = 'account.journal'
100- _columns = {
101- 'type': fields.selection([('sale', 'Sale'),('sale_refund','Sale Refund'), ('purchase', 'Purchase'), ('purchase_refund','Purchase Refund'), ('cash', 'Cash'), ('bank', 'Bank and Cheques'), ('general', 'General'), ('situation', 'Opening/Closing Situation'), ('iva_sale', 'Sale Wh VAT'), ('iva_purchase', 'Purchase Wh VAT'), ('islr_purchase', 'Purchase Wh Income'), ('islr_sale', 'Sale Wh Income'), ('mun_sale', 'Sale Wh County'), ('mun_purchase', 'Purchase Wh County'),('src_sale', 'Sale Wh src'), ('src_purchase', 'Purchase Wh src')], 'Type', size=32, required=True,
102- help="Select 'Sale' for Sale journal to be used at the time of making invoice."\
103- " Select 'Purchase' for Purchase Journal to be used at the time of approving purchase order."\
104- " Select 'Cash' to be used at the time of making payment."\
105- " Select 'General' for miscellaneous operations."\
106- " Select 'Opening/Closing Situation' to be used at the time of new fiscal year creation or end of year entries generation."),
107- }
108+
109+ _columns = {'type': fields.selection(__TYPES__, 'Type', size=32, required=True,
110+ help = "Select 'Sale' for customer invoices journals."\
111+ " Select 'Purchase' for supplier invoices journals."\
112+ " Select 'Cash' or 'Bank' for journals that are used in customer or supplier payments."\
113+ " Select 'General' for miscellaneous operations journals."\
114+ " Select 'Opening/Closing Situation' for entries generated for new fiscal years."\
115+ " Select 'Sale Debit' for customer debit note journals."\
116+ " Select 'Purchase Debit' for supplier debit note journals."
117+ " Select 'Sale Wh VAT' for customer vat withholding journals."
118+ " Select 'Purchase Wh VAT' for supplier vat withholding journals."
119+ " Select 'Sale Wh Income' for customer income withholding journals."
120+ " Select 'Purchase Wh Income' for supplier income withholding journals."
121+ " Select 'Sale Wh County' for customer municipal withholding journals."
122+ " Select 'Purchase Wh County' for supplier municipal withholding journals."
123+ " Select 'Sale Wh SRC' for customer social withholding journals."
124+ " Select 'Purchase Wh SRC' for supplier social withholding journals."
125+ )
126+ }
127
128 account_journal()
129
130
131=== renamed file 'l10n_ve_withholding/account_move_line.py' => 'l10n_ve_withholding/model/account_move_line.py'
132=== renamed file 'l10n_ve_withholding/invoice.py' => 'l10n_ve_withholding/model/invoice.py'
133=== renamed file 'l10n_ve_withholding/l10n_ve_withholding.py' => 'l10n_ve_withholding/model/l10n_ve_withholding.py'
134=== added directory 'l10n_ve_withholding/view'
135=== renamed file 'l10n_ve_withholding/account_view.xml' => 'l10n_ve_withholding/view/account_view.xml'
136--- l10n_ve_withholding/account_view.xml 2012-04-16 23:46:57 +0000
137+++ l10n_ve_withholding/view/account_view.xml 2012-12-10 17:17:27 +0000
138@@ -5,7 +5,6 @@
139 <record id="view_move_line_form_iva" model="ir.ui.view">
140 <field name="name">account.move.line.form.iva</field>
141 <field name="model">account.move.line</field>
142- <field name="type">form</field>
143 <field name="inherit_id" ref="account.view_move_line_form"/>
144 <field name="arch" type="xml">
145 <field name="state" position="after">
146@@ -17,7 +16,6 @@
147 <record id="view_move_line_form_iva2" model="ir.ui.view">
148 <field name="name">account.move.line.form.iva2</field>
149 <field name="model">account.move.line</field>
150- <field name="type">form</field>
151 <field name="inherit_id" ref="account.view_move_line_form2"/>
152 <field name="arch" type="xml">
153 <field name="state" position="after">
154@@ -29,8 +27,7 @@
155 <record id="view_move_line_tax_tree_iva" model="ir.ui.view">
156 <field name="name">account.move.line.tax.tree.iva</field>
157 <field name="model">account.move.line</field>
158- <field name="type">tree</field>
159- <field name="inherit_id" ref="account.view_move_line_tax_tree"/>
160+ <field name="inherit_id" ref="account.view_move_line_tree"/>
161 <field name="arch" type="xml">
162 <field name="state" position="after">
163 <field name="res_id" />
164@@ -44,14 +41,13 @@
165 <record id="view_move_form_iva" model="ir.ui.view">
166 <field name="name">account.move.form.iva</field>
167 <field name="model">account.move</field>
168- <field name="type">form</field>
169 <field name="inherit_id" ref="account.view_move_form"/>
170 <field name="arch" type="xml">
171- <xpath expr='/form/notebook/page[@string="Journal Items"]/field[@name="line_id"]/form[@string="Journal Item"]/notebook/page[@string="Information"]/group/field[@name="blocked"]' position="after">
172+ <xpath expr='//sheet[@string="Journal Entries"]/notebook/page[@string="Journal Items"]/field[@name="line_id"]/form[@string="Journal Item"]/notebook/page[@string="Information"]/group/group[@string="States"]/field[@name="blocked"]' position="after">
173 <field name='res_id'/>
174 </xpath>
175
176- <xpath expr='/form/notebook/page[@string="Journal Items"]/field[@name="line_id"]/tree[@string="Journal Items"]/field[@name="state"]' position="after">
177+ <xpath expr='//sheet[@string="Journal Entries"]/notebook/page[@string="Journal Items"]/field[@name="line_id"]/tree[@string="Journal Items"]/field[@name="state"]' position="after">
178 <field name='res_id'/>
179 </xpath>
180
181
182=== renamed file 'l10n_ve_withholding/l10n_ve_withholding_view.xml' => 'l10n_ve_withholding/view/l10n_ve_withholding_view.xml'
183--- l10n_ve_withholding/l10n_ve_withholding_view.xml 2012-11-07 21:33:58 +0000
184+++ l10n_ve_withholding/view/l10n_ve_withholding_view.xml 2012-12-10 17:17:27 +0000
185@@ -17,7 +17,6 @@
186 <record id="wh_inv_supplier" model="ir.ui.view">
187 <field name="name">account.invoice.supplier.wh.form</field>
188 <field name="model">account.invoice</field>
189- <field name="type">form</field>
190 <field name="inherit_id" ref="account.invoice_supplier_form"/>
191 <field name="arch" type="xml">
192 <xpath expr="//notebook/page[@string='Invoice']" position="after">
193@@ -37,7 +36,6 @@
194 <record id="wh_inv_customer" model="ir.ui.view">
195 <field name="name">account.invoice.customer.wh.form</field>
196 <field name="model">account.invoice</field>
197- <field name="type">form</field>
198 <field name="inherit_id" ref="account.invoice_form"/>
199 <field name="arch" type="xml">
200 <xpath expr="//page[@string='Invoice Lines']" position="after">
201@@ -57,7 +55,6 @@
202 <record id="wh_partner" model="ir.ui.view">
203 <field name="name">res.partner.form.wh</field>
204 <field name="model">res.partner</field>
205- <field name="type">form</field>
206 <field name="inherit_id" ref="base.view_partner_form"/>
207 <field name="arch" type="xml">
208 <xpath expr="//page[@string='Internal Notes']" position="after">
209@@ -81,7 +78,6 @@
210 <record id="view_account_wh_doc_tree" model="ir.ui.view">
211 <field name="name">account.wh.doc.tree</field>
212 <field name="model">account.wh.doc</field>
213- <field name="type">tree</field>
214 <field name="arch" type="xml">
215 <tree string="Documents">
216 <field name="model_parent" select="1"/>
217@@ -92,7 +88,6 @@
218 <record id="view_account_wh_doc_form" model="ir.ui.view">
219 <field name="name">account.wh.doc.form</field>
220 <field name="model">account.wh.doc</field>
221- <field name="type">form</field>
222 <field name="arch" type="xml">
223 <form string="Documents">
224 <field name="model_parent" select="1"/>
225@@ -105,7 +100,6 @@
226 <field name="name">Withholdings Document</field>
227 <field name="type">ir.actions.act_window</field>
228 <field name="res_model">account.wh.doc</field>
229- <field name="view_type">form</field>
230 <field name="view_mode">tree,form</field>
231 <field name="help">Create and manage the withholding documents in account move line.</field>
232 </record>