Merge lp:~vauxoo/openerp-venezuela-localization/miguel-workflow-islr-menu into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Miguel Delgado (Vauxoo)
Status: Merged
Merged at revision: 400
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/miguel-workflow-islr-menu
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 205 lines (+92/-12)
8 files modified
l10n_ve_fiscal_requirements/view/account_invoice_view.xml (+1/-1)
l10n_ve_islr_withholding/__openerp__.py (+1/-0)
l10n_ve_islr_withholding/islr_xml_wh.xml (+2/-2)
l10n_ve_islr_withholding/view/islr_wh_doc_view.xml (+2/-2)
l10n_ve_islr_withholding/workflow/islr_wh_workflow.xml (+78/-0)
l10n_ve_withholding/l10n_ve_withholding_view.xml (+3/-2)
l10n_ve_withholding_iva/generate_txt_view.xml (+1/-1)
l10n_ve_withholding_iva/wh_iva_view.xml (+4/-4)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/miguel-workflow-islr-menu
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo Pending
Review via email: mp+78012@code.launchpad.net

Description of the change

[ADD] workflow to l10n_ve_islr_withholding
[IMP] the menu items for l10n_ve_islr_withholding, l10n_ve_withholding_iva and l10n_ve_withholding

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 'l10n_ve_fiscal_requirements/view/account_invoice_view.xml'
2--- l10n_ve_fiscal_requirements/view/account_invoice_view.xml 2011-09-30 15:48:47 +0000
3+++ l10n_ve_fiscal_requirements/view/account_invoice_view.xml 2011-10-03 21:42:44 +0000
4@@ -107,6 +107,6 @@
5 </xpath>
6 </field>
7 </record>
8-
9+ <menuitem id="menu_venezuela_reporting" name="Venezuela Reports" parent="account.menu_finance_legal_statement"/>
10 </data>
11 </openerp>
12
13=== modified file 'l10n_ve_islr_withholding/__openerp__.py'
14--- l10n_ve_islr_withholding/__openerp__.py 2011-09-30 22:08:51 +0000
15+++ l10n_ve_islr_withholding/__openerp__.py 2011-10-03 21:42:44 +0000
16@@ -74,6 +74,7 @@
17 "islr_xml_wh_report.xml",
18 "islr_wh_report.xml",
19 "islr_xml_wh.xml",
20+ "workflow/islr_wh_workflow.xml"
21 ],
22 "active": False,
23 "installable": True
24
25=== modified file 'l10n_ve_islr_withholding/islr_xml_wh.xml'
26--- l10n_ve_islr_withholding/islr_xml_wh.xml 2011-07-01 21:55:39 +0000
27+++ l10n_ve_islr_withholding/islr_xml_wh.xml 2011-10-03 21:42:44 +0000
28@@ -157,13 +157,13 @@
29
30 <menuitem name="Generate file XML"
31 id="menu_action_xml_islr"
32- parent="l10n_ve_withholding.menu_wh_suppiler"
33+ parent="l10n_ve_fiscal_requirements.menu_venezuela_reporting"
34 action="action_xml_islr"/>
35
36 </data>
37 </openerp>
38
39-
40+<!-- parent="l10n_ve_withholding.menu_wh_suppiler"-->
41
42
43
44
45=== modified file 'l10n_ve_islr_withholding/view/islr_wh_doc_view.xml'
46--- l10n_ve_islr_withholding/view/islr_wh_doc_view.xml 2011-09-26 22:15:56 +0000
47+++ l10n_ve_islr_withholding/view/islr_wh_doc_view.xml 2011-10-03 21:42:44 +0000
48@@ -325,7 +325,7 @@
49 <menuitem
50 id="menu_action_wh_islr_customer"
51 name="Customer Withholding Income"
52- parent="l10n_ve_withholding.menu_wh_customer"
53+ parent="account.menu_finance_receivables"
54 action="action_wh_islr_customer"/>
55
56 <record model="ir.actions.act_window" id="action_wh_islr_supplier">
57@@ -356,7 +356,7 @@
58 <menuitem
59 id="menu_action_wh_islr_supplier"
60 name="Supplier Withholding Income"
61- parent="l10n_ve_withholding.menu_wh_suppiler"
62+ parent="account.menu_finance_payables"
63 action="action_wh_islr_supplier"/>
64
65 </data>
66
67=== added directory 'l10n_ve_islr_withholding/workflow'
68=== added file 'l10n_ve_islr_withholding/workflow/islr_wh_workflow.xml'
69--- l10n_ve_islr_withholding/workflow/islr_wh_workflow.xml 1970-01-01 00:00:00 +0000
70+++ l10n_ve_islr_withholding/workflow/islr_wh_workflow.xml 2011-10-03 21:42:44 +0000
71@@ -0,0 +1,78 @@
72+<?xml version="1.0" encoding="utf-8"?>
73+<openerp>
74+ <data>
75+
76+ <record id="wh_islr_order" model="workflow">
77+ <field name="name">Withholding ISLR Order Basic Workflow</field>
78+ <field name="osv">islr.wh.doc</field>
79+ <field name="on_create">True</field>
80+ </record>
81+
82+ <record id="act_process" model="workflow.activity">
83+ <field name="wkf_id" ref="wh_islr_order"/>
84+ <field name="flow_start">True</field>
85+ <field name="name">process</field>
86+ </record>
87+
88+ <record id="act_draft" model="workflow.activity">
89+ <field name="wkf_id" ref="wh_islr_order"/>
90+ <field name="action">
91+ write({'state':'draft'})
92+ </field>
93+ <field name="kind">function</field>
94+ <field name="name">draft</field>
95+ </record>
96+
97+ <record id="act_confirmed" model="workflow.activity">
98+ <field name="wkf_id" ref="wh_islr_order"/>
99+ <field name="action">
100+ write({'state':'confirmed'})
101+ </field>
102+ <field name="kind">function</field>
103+ <field name="name">confirmed</field>
104+ </record>
105+
106+ <record id="act_done" model="workflow.activity">
107+ <field name="wkf_id" ref="wh_islr_order"/>
108+ <field name="action">
109+ write({'state':'done'})
110+ </field>
111+ <field name="kind">function</field>
112+ <field name="name">done</field>
113+ </record>
114+
115+ <record id="act_cancel" model="workflow.activity">
116+ <field name="wkf_id" ref="wh_islr_order"/>
117+ <field name="action">
118+ write({'state':'cancel'})
119+ </field>
120+ <field name="kind">function</field>
121+ <field name="name">cancel</field>
122+ </record>
123+
124+ <record id="trans_process_draft" model="workflow.transition">
125+ <field name="act_from" ref="act_process"/>
126+ <field name="act_to" ref="act_draft"/>
127+ <field name="signal">wh_islr_draft</field>
128+ </record>
129+
130+ <record id="trans_draft_confirmed" model="workflow.transition">
131+ <field name="act_from" ref="act_draft"/>
132+ <field name="act_to" ref="act_confirmed"/>
133+ <field name="signal">wh_islr_confirmed</field>
134+ </record>
135+
136+ <record id="trans_confirmed_done" model="workflow.transition">
137+ <field name="act_from" ref="act_confirmed"/>
138+ <field name="act_to" ref="act_done"/>
139+ <field name="signal">wh_islr_done</field>
140+ </record>
141+
142+ <record id="trans_done_cancel" model="workflow.transition">
143+ <field name="act_from" ref="act_done"/>
144+ <field name="act_to" ref="act_cancel"/>
145+ <field name="signal">wh_islr_cancel</field>
146+ </record>
147+
148+ </data>
149+</openerp>
150
151=== modified file 'l10n_ve_withholding/l10n_ve_withholding_view.xml'
152--- l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-08-21 20:39:12 +0000
153+++ l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-10-03 21:42:44 +0000
154@@ -6,9 +6,10 @@
155 Menu Generico para todos los modulos de iva, islr y municipales
156 -->
157 <menuitem id="menu_wh_configuration" name="Withholdings" parent="account.menu_finance_configuration"/>
158+ <menuitem id="menu_withholdings" name="Withholdings" parent="account.menu_finance"/>
159
160- <menuitem id="menu_wh_customer" name="Customer Withholding" parent="account.menu_finance_receivables" sequence="300"/>
161- <menuitem id="menu_wh_suppiler" name="Supplier Withholding" parent="account.menu_finance_payables" sequence="300"/>
162+<!-- <menuitem id="menu_wh_customer" name="Customer Withholding" parent="account.menu_finance_receivables" sequence="300"/>-->
163+<!-- <menuitem id="menu_wh_suppiler" name="Supplier Withholding" parent="account.menu_finance_payables" sequence="300"/>-->
164 <!--
165 Vista Generica de Facturas de Compra para iva, islr y municipales
166 -->
167
168=== modified file 'l10n_ve_withholding_iva/generate_txt_view.xml'
169--- l10n_ve_withholding_iva/generate_txt_view.xml 2011-10-03 14:27:38 +0000
170+++ l10n_ve_withholding_iva/generate_txt_view.xml 2011-10-03 21:42:44 +0000
171@@ -96,7 +96,7 @@
172
173 <menuitem name="Generar TXT"
174 id="menu_action_generate_txt_iva"
175- parent="l10n_ve_withholding.menu_wh_suppiler"
176+ parent="l10n_ve_fiscal_requirements.menu_venezuela_reporting"
177 action="action_generate_text_iva"/>
178
179 </data>
180
181=== modified file 'l10n_ve_withholding_iva/wh_iva_view.xml'
182--- l10n_ve_withholding_iva/wh_iva_view.xml 2011-10-03 02:58:44 +0000
183+++ l10n_ve_withholding_iva/wh_iva_view.xml 2011-10-03 21:42:44 +0000
184@@ -237,8 +237,8 @@
185
186 <menuitem
187 id="menu_action_account_wh_iva_customer"
188- name="Withholding vat customer"
189- parent="l10n_ve_withholding.menu_wh_customer"
190+ name="Customer Withholding VAT "
191+ parent="account.menu_finance_receivables"
192 action="action_account_wh_iva_customer"/>
193
194
195@@ -269,8 +269,8 @@
196
197 <menuitem
198 id="menu_action_account_wh_iva_supplier"
199- name="Withholding vat supplier"
200- parent="l10n_ve_withholding.menu_wh_suppiler"
201+ name="Supplier Withholding VAT "
202+ parent="account.menu_finance_payables"
203 action="action_account_wh_iva_supplier"/>
204
205 </data>