Merge lp:~vauxoo/openerp-venezuela-localization/jose-wf-municipality into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Status: Merged
Merged at revision: 441
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/jose-wf-municipality
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 223 lines (+61/-14)
13 files modified
bank_management/__openerp__.py (+1/-1)
l10n_ve/__openerp__.py (+1/-1)
l10n_ve_fiscal_requirements/__openerp__.py (+1/-1)
l10n_ve_islr_withholding/__openerp__.py (+1/-1)
l10n_ve_sale_purchase/__openerp__.py (+1/-1)
l10n_ve_withholding/__openerp__.py (+1/-1)
l10n_ve_withholding_iva/__openerp__.py (+1/-1)
l10n_ve_withholding_muni/__init__.py (+1/-1)
l10n_ve_withholding_muni/__openerp__.py (+2/-1)
l10n_ve_withholding_muni/wh_muni.py (+0/-2)
l10n_ve_withholding_muni/wh_muni_view.xml (+2/-2)
l10n_ve_withholding_muni/workflow/l10n_ve_wh_muni_wf.xml (+48/-0)
topology/__openerp__.py (+1/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/jose-wf-municipality
Reviewer Review Type Date Requested Status
Israel Fermin Montilla Pending
Review via email: mp+79959@code.launchpad.net

Description of the change

Added workflow in withholding municipality and changed to 2.0 version all modules

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bank_management/__openerp__.py'
2--- bank_management/__openerp__.py 2011-10-06 17:35:45 +0000
3+++ bank_management/__openerp__.py 2011-10-20 13:23:24 +0000
4@@ -33,7 +33,7 @@
5
6 {
7 "name" : "Bank Management",
8- "version" : "0.1",
9+ "version" : "0.2",
10 "author" : "Vauxoo",
11 "website" : "http://vauxoo.com",
12 "category": 'Generic Modules/Accounting',
13
14=== modified file 'l10n_ve/__openerp__.py'
15--- l10n_ve/__openerp__.py 2011-10-11 04:59:00 +0000
16+++ l10n_ve/__openerp__.py 2011-10-20 13:23:24 +0000
17@@ -24,7 +24,7 @@
18 ##############################################################################
19 {
20 "name" : "Venezuelan Account Chart (Aimed at Commercial Trades)",
21- "version" : "1.0",
22+ "version" : "0.2",
23 "author" : "Tiny & Vauxoo",
24 "category" : "Localisation/Account Charts",
25 "description":
26
27=== modified file 'l10n_ve_fiscal_requirements/__openerp__.py'
28--- l10n_ve_fiscal_requirements/__openerp__.py 2011-10-11 19:04:54 +0000
29+++ l10n_ve_fiscal_requirements/__openerp__.py 2011-10-20 13:23:24 +0000
30@@ -22,7 +22,7 @@
31 ##############################################################################
32 {
33 "name" : "Fiscal requirements Venezuelan laws",
34- "version" : "0.5",
35+ "version" : "0.2",
36 "author" : "Vauxoo",
37 "website" : "http://vauxoo.com",
38 "category": 'Generic Modules/Accounting',
39
40=== modified file 'l10n_ve_islr_withholding/__openerp__.py'
41--- l10n_ve_islr_withholding/__openerp__.py 2011-10-05 02:12:07 +0000
42+++ l10n_ve_islr_withholding/__openerp__.py 2011-10-20 13:23:24 +0000
43@@ -28,7 +28,7 @@
44
45 {
46 "name" : "Automatically Calculated Withholding Income",
47- "version" : "0.6",
48+ "version" : "0.2",
49 "author" : "Vauxoo",
50 "category" : "General",
51 "website": "http://wiki.openerp.org.ve/",
52
53=== modified file 'l10n_ve_sale_purchase/__openerp__.py'
54--- l10n_ve_sale_purchase/__openerp__.py 2011-10-04 23:39:47 +0000
55+++ l10n_ve_sale_purchase/__openerp__.py 2011-10-20 13:23:24 +0000
56@@ -27,7 +27,7 @@
57 ###############################################################################
58 {
59 'name' : 'ISLR Sale and Purchase Functionalities',
60- 'version' : '0.1',
61+ 'version' : '0.2',
62 'author' : 'Vauxoo',
63 'description' : '''
64 Due to the Dependendy reduction on the l10n_ve_islr_withholding module, it was necesary to incorporate
65
66=== modified file 'l10n_ve_withholding/__openerp__.py'
67--- l10n_ve_withholding/__openerp__.py 2011-10-06 01:32:14 +0000
68+++ l10n_ve_withholding/__openerp__.py 2011-10-20 13:23:24 +0000
69@@ -23,7 +23,7 @@
70 ##############################################################################
71 {
72 "name" : "Management withholdings Venezuelan laws",
73- "version" : "0.5",
74+ "version" : "0.2",
75 "author" : "Vauxoo",
76 "website" : "http://vauxoo.com",
77 "category": 'Generic Modules/Accounting',
78
79=== modified file 'l10n_ve_withholding_iva/__openerp__.py'
80--- l10n_ve_withholding_iva/__openerp__.py 2011-10-11 19:04:54 +0000
81+++ l10n_ve_withholding_iva/__openerp__.py 2011-10-20 13:23:24 +0000
82@@ -23,7 +23,7 @@
83 ##############################################################################
84 {
85 "name" : "Withholding vat Venezuelan laws",
86- "version" : "0.6",
87+ "version" : "0.2",
88 "author" : "Vauxoo",
89 "website" : "http://vauxoo.com",
90 "category": 'Generic Modules/Accounting',
91
92=== modified file 'l10n_ve_withholding_muni/__init__.py'
93--- l10n_ve_withholding_muni/__init__.py 2011-09-25 23:55:38 +0000
94+++ l10n_ve_withholding_muni/__init__.py 2011-10-20 13:23:24 +0000
95@@ -34,4 +34,4 @@
96 import partner
97 import report
98 #import wizard
99-
100+import workflow
101
102=== modified file 'l10n_ve_withholding_muni/__openerp__.py'
103--- l10n_ve_withholding_muni/__openerp__.py 2011-09-12 16:34:55 +0000
104+++ l10n_ve_withholding_muni/__openerp__.py 2011-10-20 13:23:24 +0000
105@@ -23,7 +23,7 @@
106 ##############################################################################
107 {
108 "name" : "Local Withholding Venezuelan laws",
109- "version" : "0.5",
110+ "version" : "0.2",
111 "author" : "Vauxoo",
112 "website" : "http://vauxoo.com",
113 "category": 'Generic Modules/Accounting',
114@@ -39,6 +39,7 @@
115 'wh_muni_view.xml',
116 "wh_muni_sequence.xml",
117 "wh_muni_report.xml",
118+ "workflow/l10n_ve_wh_muni_wf.xml"
119 # "account_workflow.xml",
120 ],
121 'demo_xml': [],
122
123=== modified file 'l10n_ve_withholding_muni/wh_muni.py'
124--- l10n_ve_withholding_muni/wh_muni.py 2011-09-25 23:55:38 +0000
125+++ l10n_ve_withholding_muni/wh_muni.py 2011-10-20 13:23:24 +0000
126@@ -117,7 +117,6 @@
127 raise osv.except_osv(_('Invalid action !'), _("The line containing the document '%s' looks as if the amount withheld was wrong please check.!") % (i.invoice_id.reference))
128 total+=i.amount
129 self.write(cr,uid,ids,{'amount':total})
130- self.write(cr, uid, ids, {'state':'confirmed'})
131 return True
132
133
134@@ -141,7 +140,6 @@
135 def action_done(self, cr, uid, ids, context={}):
136 self.action_number(cr, uid, ids)
137 self.action_move_create(cr, uid, ids)
138- self.write(cr, uid, ids, {'state':'done'})
139 return True
140
141
142
143=== modified file 'l10n_ve_withholding_muni/wh_muni_view.xml'
144--- l10n_ve_withholding_muni/wh_muni_view.xml 2011-10-05 15:30:11 +0000
145+++ l10n_ve_withholding_muni/wh_muni_view.xml 2011-10-20 13:23:24 +0000
146@@ -128,8 +128,8 @@
147 <field name="munici_line_ids" default_get="{'lines': munici_line_ids }" colspan="4" nolabel="1" height="275"/>
148 <group col="4" colspan="2">
149 <field name="state"/>
150- <button name="action_confirm" string="Confirmed" states="draft" type="object" icon="gtk-open"/>
151- <button name="action_done" string="Done" states="confirmed" type="object" icon="gtk-go-forward"/>
152+ <button name="wh_muni_confirmed" states="draft" string="Confirm" icon="gtk-execute"/>
153+ <button name="wh_muni_done" states="confirmed" string="Done" icon="gtk-execute"/>
154 </group>
155 </page>
156 <page string="Other Information">
157
158=== added directory 'l10n_ve_withholding_muni/workflow'
159=== added file 'l10n_ve_withholding_muni/workflow/l10n_ve_wh_muni_wf.xml'
160--- l10n_ve_withholding_muni/workflow/l10n_ve_wh_muni_wf.xml 1970-01-01 00:00:00 +0000
161+++ l10n_ve_withholding_muni/workflow/l10n_ve_wh_muni_wf.xml 2011-10-20 13:23:24 +0000
162@@ -0,0 +1,48 @@
163+<?xml version="1.0" encoding="utf-8"?>
164+<openerp>
165+ <data>
166+
167+ <record id="wh_muni_order" model="workflow">
168+ <field name="name">Withholding municipality Order Basic Workflow</field>
169+ <field name="osv">account.wh.munici</field>
170+ <field name="on_create">True</field>
171+ </record>
172+
173+ <record id="act_draft" model="workflow.activity">
174+ <field name="wkf_id" ref="wh_muni_order"/>
175+ <field name="flow_start">True</field>
176+ <field name="name">draft</field>
177+ </record>
178+
179+ <record id="act_confirmed" model="workflow.activity">
180+ <field name="wkf_id" ref="wh_muni_order"/>
181+ <field name="action">action_confirm()
182+ write({'state':'confirmed'})</field>
183+ <field name="kind">function</field>
184+ <field name="name">confirmed</field>
185+ </record>
186+
187+ <record id="act_done" model="workflow.activity">
188+ <field name="wkf_id" ref="wh_muni_order"/>
189+ <field name="action">action_done()
190+ write({'state':'done'})</field>
191+ <field name="kind">function</field>
192+ <field name="name">done</field>
193+ </record>
194+
195+
196+ <record id="trans_draft_done" model="workflow.transition">
197+ <field name="act_from" ref="act_draft"/>
198+ <field name="act_to" ref="act_confirmed"/>
199+ <field name="signal">wh_muni_confirmed</field>
200+ </record>
201+
202+ <record id="trans_confirmed_done" model="workflow.transition">
203+ <field name="act_from" ref="act_confirmed"/>
204+ <field name="act_to" ref="act_done"/>
205+ <field name="signal">wh_muni_done</field>
206+ </record>
207+
208+
209+ </data>
210+</openerp>
211
212=== modified file 'topology/__openerp__.py'
213--- topology/__openerp__.py 2011-09-22 17:30:32 +0000
214+++ topology/__openerp__.py 2011-10-20 13:23:24 +0000
215@@ -1,7 +1,7 @@
216 # -*- encoding: utf-8 -*-
217 {
218 "name" : "Opening balance Update",
219- "version" : "0.1",
220+ "version" : "0.2",
221 "depends" : ["base"],
222 "author" : "Vauxoo",
223 "description" : """