Merge lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Nhomar - Vauxoo
Status: Rejected
Rejected by: Nhomar - Vauxoo
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 374 lines (+109/-91)
10 files modified
l10n_ve_withholding/__openerp__.py (+4/-3)
l10n_ve_withholding/l10n_ve_withholding_view.xml (+15/-11)
l10n_ve_withholding/workflow/l10n_ve_withholding_workflow.xml (+17/-0)
l10n_ve_withholding_islr/islr_wh_doc.py (+5/-1)
l10n_ve_withholding_islr/view/invoice_view.xml (+24/-34)
l10n_ve_withholding_islr/view/partner_view.xml (+9/-9)
l10n_ve_withholding_islr/workflow/account_workflow.xml (+3/-2)
l10n_ve_withholding_iva/account_invoice_view.xml (+23/-23)
l10n_ve_withholding_iva/account_workflow.xml (+3/-2)
l10n_ve_withholding_iva/partner_view.xml (+6/-6)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo Disapprove
hbto [Vauxoo] http://www.vauxoo.com conceptual Needs Information
Review via email: mp+80776@code.launchpad.net

Commit message

[MERGE] Workflow concept tested and some fixes on views related to withholding.

Description of the change

See logs from revno 457 to 464.

Improved wh views on invoices.
Improved Workflow for Withholding.

Not verified already functional stuff just redifined workflows-

To post a comment you must log in.
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :
Download full text (19.2 KiB)

Adjunto esta la estructura del workflow tanto para islr con para iva,

con las validaciones pertinentes para que sigan generandose los respectivos
movimientos que previamente se generaban (lineas para xml)
ya los cambios estan probados, lo que estoy es terminando
la estructura para dejarla funcional, habria que revisar son
errores del workflow como tal de iva y/o islr,

en tu estructura falta un router que el que considera la existencia
de las lineas xml's,

que es el metodo que falta, voy a agregar te envio el diferencial cuando lo
tenga listo

2011/10/31 Nhomar Hernandez (Vauxoo) <email address hidden>

> Nhomar Hernandez (Vauxoo) has proposed merging
> lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix into
> lp:openerp-venezuela-localization.
>
> Requested reviews:
> hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha): conceptual
>
> For more details, see:
>
> https://code.launchpad.net/~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix/+merge/80776
>
> See logs from revno 457 to 464.
>
> Improved wh views on invoices.
> Improved Workflow for Withholding.
>
> Not verified already functional stuff just redifined workflows-
> --
>
> https://code.launchpad.net/~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix/+merge/80776
> You are requested to review the proposed merge of
> lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix into
> lp:openerp-venezuela-localization.
>
> === modified file 'l10n_ve_withholding/__openerp__.py'
> --- l10n_ve_withholding/__openerp__.py 2011-10-25 20:33:16 +0000
> +++ l10n_ve_withholding/__openerp__.py 2011-10-31 06:36:38 +0000
> @@ -32,9 +32,9 @@
> - Add relation between account invoice tax and account tax, to avoid loss
> historical relation.
> - Add account journals types or withholding VAT and Income.
> - Make relation between account move and withholding documents with a
> method.
> -- Add common menus for withholdin process.
> +- Add common menus for withholding process.
> - Add common tabs on views where they will be used to add information for
> other modules related to Venezuela. localization.
> -
> +- Add basic stage to workflow on invoice to ensure the aplication of this
> feature.
> TODO:
> -
> """,
> @@ -45,7 +45,8 @@
> 'security/ir.model.access.csv',
> 'l10n_ve_withholding_data.xml',
> 'l10n_ve_withholding_view.xml',
> - 'account_view.xml'
> + 'account_view.xml',
> + 'workflow/l10n_ve_withholding_workflow.xml',
> ],
> 'demo_xml': [],
> 'test': [],
>
> === modified file 'l10n_ve_withholding/l10n_ve_withholding_view.xml'
> --- l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-10-25
> 20:33:16 +0000
> +++ l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-10-31
> 06:36:38 +0000
> @@ -20,11 +20,12 @@
> <field name="type">form</field>
> <field name="inherit_id" ref="account.invoice_supplier_form"/>
> <field name="arch" type="xml">
> - <notebook>
> + <xpath expr="/form/notebook/page[@string='Invoice']"
> position="after">
> <page string="Withholdings" >
> -
> + <separator string="vsep"/>
> ...

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :
Download full text (19.7 KiB)

en la linea 50 haces un cambio indicando que la vista de wh supplier
deberia llamarse igual tanto para el cliente como para el proveedor,
en openerp las dos vistas no son iguales y se les trata distinto,
los cambios que se aplican a una vista no se heredan en la otra,
a no ser que esto sea nuevo para la v6.1

- <field name="name">account.invoice.supplier.wh.form</field>

en la linea 125 incluyes un raise en un workflow, si la situacion no aplica
no se emerge con una señal de alarma, sencillamente no se aplica la
situacion
y la salida es transparente para el usuario, lo cual no implica que el
usuario este
comentiendo un error, lo cual si aplica si la retencion se esta generando
desde
cero donde el usuario estaria sujeto a seleccionar una factura, cuestion
que se
puede evitar porque la factura ya tiene un atributo que indica que ya ha
sido
retenida y que se puede usar para evitar que el mismo cometa el error.
+ raise osv.except_osv(_('Invalid action !'),_("The Withholding invoice
'%s' has already been done!") % (invoice.number))

2011/10/31 Nhomar Hernandez (Vauxoo) <email address hidden>

> Nhomar Hernandez (Vauxoo) has proposed merging
> lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix into
> lp:openerp-venezuela-localization.
>
> Requested reviews:
> hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha): conceptual
>
> For more details, see:
>
> https://code.launchpad.net/~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix/+merge/80776
>
> See logs from revno 457 to 464.
>
> Improved wh views on invoices.
> Improved Workflow for Withholding.
>
> Not verified already functional stuff just redifined workflows-
> --
>
> https://code.launchpad.net/~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix/+merge/80776
> You are requested to review the proposed merge of
> lp:~vauxoo/openerp-venezuela-localization/nhomar_wkf-wh-fix into
> lp:openerp-venezuela-localization.
>
> === modified file 'l10n_ve_withholding/__openerp__.py'
> --- l10n_ve_withholding/__openerp__.py 2011-10-25 20:33:16 +0000
> +++ l10n_ve_withholding/__openerp__.py 2011-10-31 06:36:38 +0000
> @@ -32,9 +32,9 @@
> - Add relation between account invoice tax and account tax, to avoid loss
> historical relation.
> - Add account journals types or withholding VAT and Income.
> - Make relation between account move and withholding documents with a
> method.
> -- Add common menus for withholdin process.
> +- Add common menus for withholding process.
> - Add common tabs on views where they will be used to add information for
> other modules related to Venezuela. localization.
> -
> +- Add basic stage to workflow on invoice to ensure the aplication of this
> feature.
> TODO:
> -
> """,
> @@ -45,7 +45,8 @@
> 'security/ir.model.access.csv',
> 'l10n_ve_withholding_data.xml',
> 'l10n_ve_withholding_view.xml',
> - 'account_view.xml'
> + 'account_view.xml',
> + 'workflow/l10n_ve_withholding_workflow.xml',
> ],
> 'demo_xml': [],
> 'test': [],
>
> === modified file 'l10n_ve_withholding/l10n_ve_withholding_view.xml'
> --- l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-10-25
> 20:33:16 +0000
> +++ l10n_ve_with...

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Discutamos ambas propuestas de merge tanto la tuya como la mia,
alli se puede sacar algo en comun y discutimos las diferencias

en mi caso me centre en resolver el asunto hasta el subflujo,
no tengo modificaciones de vista, estas las estoy dejando para
otro momento.

review: Needs Information (conceptual)
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Merged in other process.....

review: Disapprove

Unmerged revisions

465. By Nhomar Hernandez <email address hidden>

[IMP] Improved inheritance view on partner customer and supplier form view for withholdings

464. By Nhomar Hernandez <email address hidden>

[IMP] Improved inheritance view on customer form view for withholdings

463. By Nhomar Hernandez <email address hidden>

[IMP] Improved inheritance view on supplier form view for withholdings

462. By Nhomar Hernandez <email address hidden>

[FIX] Fixing inconsistency on generation and inheritance on withholding views on invoice forms

461. By Nhomar Hernandez <email address hidden>

[FIX] Corrected problem with validation in withholding islr workflow to avoid verify the validation process and the regeneration of data.

460. By Nhomar Hernandez <email address hidden>

[IMP] Moved workflow withholding iva to correct place on router generic activity

459. By Nhomar Hernandez <email address hidden>

[IMP] Moved workflow withholding islr to correct place on router generic activity

458. By Nhomar Hernandez <email address hidden>

[IMP] Add basic WKF to excecute withholding correctly.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_withholding/__openerp__.py'
2--- l10n_ve_withholding/__openerp__.py 2011-10-25 20:33:16 +0000
3+++ l10n_ve_withholding/__openerp__.py 2011-10-31 06:36:38 +0000
4@@ -32,9 +32,9 @@
5 - Add relation between account invoice tax and account tax, to avoid loss historical relation.
6 - Add account journals types or withholding VAT and Income.
7 - Make relation between account move and withholding documents with a method.
8-- Add common menus for withholdin process.
9+- Add common menus for withholding process.
10 - Add common tabs on views where they will be used to add information for other modules related to Venezuela. localization.
11-
12+- Add basic stage to workflow on invoice to ensure the aplication of this feature.
13 TODO:
14 -
15 """,
16@@ -45,7 +45,8 @@
17 'security/ir.model.access.csv',
18 'l10n_ve_withholding_data.xml',
19 'l10n_ve_withholding_view.xml',
20- 'account_view.xml'
21+ 'account_view.xml',
22+ 'workflow/l10n_ve_withholding_workflow.xml',
23 ],
24 'demo_xml': [],
25 'test': [],
26
27=== modified file 'l10n_ve_withholding/l10n_ve_withholding_view.xml'
28--- l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-10-25 20:33:16 +0000
29+++ l10n_ve_withholding/l10n_ve_withholding_view.xml 2011-10-31 06:36:38 +0000
30@@ -20,11 +20,12 @@
31 <field name="type">form</field>
32 <field name="inherit_id" ref="account.invoice_supplier_form"/>
33 <field name="arch" type="xml">
34- <notebook>
35+ <xpath expr="/form/notebook/page[@string='Invoice']" position="after">
36 <page string="Withholdings" >
37-
38+ <separator string="vsep"/>
39+ <separator string="isep"/>
40 </page>
41- </notebook>
42+ </xpath>
43 </field>
44 </record>
45
46@@ -33,21 +34,22 @@
47 -->
48
49 <record id="wh_inv_customer" model="ir.ui.view">
50- <field name="name">account.invoice.supplier.wh.form</field>
51+ <field name="name">account.invoice.all.wh.form</field>
52 <field name="model">account.invoice</field>
53 <field name="type">form</field>
54 <field name="inherit_id" ref="account.invoice_form"/>
55 <field name="arch" type="xml">
56- <notebook>
57+ <xpath expr="/form/notebook/page[@string='Invoice']" position="after">
58 <page string="Withholdings" >
59-
60+ <separator string="vsep"/>
61+ <separator string="isep"/>
62 </page>
63- </notebook>
64+ </xpath>
65 </field>
66 </record>
67
68 <!--
69- Vista Generica de Parnets para iva, islr y municipales
70+ Vista Generica de Partners para iva, islr y municipales
71 -->
72
73 <record id="wh_partner" model="ir.ui.view">
74@@ -56,11 +58,13 @@
75 <field name="type">form</field>
76 <field name="inherit_id" ref="base.view_partner_form"/>
77 <field name="arch" type="xml">
78- <notebook>
79+ <xpath expr="/form/notebook/page[@string='Notes']" position="after">
80 <page string="Withholdings" >
81-
82+ <separator string="vsep"/>
83+ <newline/>
84+ <separator string="isep"/>
85 </page>
86- </notebook>
87+ </xpath>
88 </field>
89 </record>
90
91
92=== added directory 'l10n_ve_withholding/workflow'
93=== added file 'l10n_ve_withholding/workflow/l10n_ve_withholding_workflow.xml'
94--- l10n_ve_withholding/workflow/l10n_ve_withholding_workflow.xml 1970-01-01 00:00:00 +0000
95+++ l10n_ve_withholding/workflow/l10n_ve_withholding_workflow.xml 2011-10-31 06:36:38 +0000
96@@ -0,0 +1,17 @@
97+<?xml version="1.0"?>
98+<openerp>
99+ <data>
100+<!-- This will be updated from iva and islr withholding.-->
101+ <record id="wh_router" model="workflow.activity">
102+ <field name="wkf_id" ref="account.wkf"/>
103+ <field name="name">wh_router</field>
104+ <field name="split_mode">AND</field>
105+ </record>
106+ <record id="wh_router_trans" model="workflow.transition">
107+ <field name="act_from" ref="account.act_open"/>
108+ <field name="act_to" ref="wh_router"/>
109+ <field name="signal"></field>
110+ <field name="condition">True</field>
111+ </record>
112+ </data>
113+</openerp>
114
115=== modified file 'l10n_ve_withholding_islr/islr_wh_doc.py'
116--- l10n_ve_withholding_islr/islr_wh_doc.py 2011-10-25 20:33:16 +0000
117+++ l10n_ve_withholding_islr/islr_wh_doc.py 2011-10-31 06:36:38 +0000
118@@ -390,7 +390,11 @@
119 for invoice in invoices_brw:
120 wh_doc_list = inv_obj.pool.get('islr.wh.doc.invoices').search(cr,uid,[('invoice_id','=',invoice.id)])
121 if wh_doc_list: #Chequear que la factura no haya sido retenida.
122- raise osv.except_osv(_('Invalid action !'),_("The Withholding invoice '%s' has already been done!") % (invoice.number))
123+ print "idssssssssssssss %s" % ids
124+ if not (self.browse(cr,uid,ids,context) and self.browse(cr,uid,ids,context)[0].state in ['draft','to_process','progress']):
125+ raise osv.except_osv(_('Invalid action !'),_("The Withholding invoice '%s' has already been done!") % (invoice.number))
126+ else:
127+ return self.browse(cr,uid,ids,context)[0].id
128 else: # 1.- Si la factura no ha sido retenida
129 wh_dict={}
130 dict_rate={}
131
132=== modified file 'l10n_ve_withholding_islr/view/invoice_view.xml'
133--- l10n_ve_withholding_islr/view/invoice_view.xml 2011-10-25 20:33:16 +0000
134+++ l10n_ve_withholding_islr/view/invoice_view.xml 2011-10-31 06:36:38 +0000
135@@ -14,23 +14,18 @@
136 <field name="type">form</field>
137 <field name="inherit_id" ref="l10n_ve_withholding.wh_inv_customer"/>
138 <field name="arch" type="xml">
139- <page string="Withholdings" position="inside">
140- <notebook>
141- <page string="Withholdings Income">
142- <group col="6" colspan="4">
143- <field name="status" colspan='4'/>
144- <newline/>
145- <button name="action_ret_islr" attrs="{'readonly':[('state','in',['draft','open','paid'])]}" string="Retener ISLR" type="object" colspan='1'/>
146- <newline/>
147- <hpaned/>
148- <hpaned/>
149- <hpaned/>
150- <hpaned/>
151- <field name="islr_wh_doc_id" colspan='8'/>
152- </group>
153- </page>
154- </notebook>
155- </page>
156+ <xpath expr="//separator[@string='vsep']" position="after">
157+ <newline/>
158+ <group col="6" colspan="4">
159+ <field name="status" colspan='2'/>
160+ <field name="islr_wh_doc_id" colspan='2'/>
161+ <newline/>
162+<!-- <button name="action_ret_islr" states="open" string="Retener ISLR" type="object" colspan='1'/>-->
163+ </group>
164+ </xpath>
165+ <xpath expr='//separator[@string="vsep"]' position='attributes'>
166+ <attribute name="string">Income Withholding</attribute>
167+ </xpath>
168 </field>
169 </record>
170
171@@ -40,23 +35,18 @@
172 <field name="type">form</field>
173 <field name="inherit_id" ref="l10n_ve_withholding.wh_inv_supplier"/>
174 <field name="arch" type="xml">
175- <page string="Withholdings" position="inside">
176- <notebook>
177- <page string="Withholdings Income">
178- <group col="6" colspan="4">
179- <field name="status" colspan='4'/>
180- <newline/>
181- <button name="action_ret_islr" states="open" string="Retener ISLR" type="object" colspan='1'/>
182- <newline/>
183- <hpaned/>
184- <hpaned/>
185- <hpaned/>
186- <hpaned/>
187- <field name="islr_wh_doc_id" colspan='8'/>
188- </group>
189- </page>
190- </notebook>
191- </page>
192+ <xpath expr="//separator[@string='vsep']" position="after">
193+ <newline/>
194+ <group col="6" colspan="4">
195+ <field name="status" colspan='2'/>
196+ <field name="islr_wh_doc_id" colspan='2'/>
197+ <newline/>
198+<!-- <button name="action_ret_islr" states="open" string="Retener ISLR" type="object" colspan='1'/>-->
199+ </group>
200+ </xpath>
201+ <xpath expr='//separator[@string="vsep"]' position='attributes'>
202+ <attribute name="string">Income Withholding</attribute>
203+ </xpath>
204 </field>
205 </record>
206
207
208=== modified file 'l10n_ve_withholding_islr/view/partner_view.xml'
209--- l10n_ve_withholding_islr/view/partner_view.xml 2011-10-25 20:33:16 +0000
210+++ l10n_ve_withholding_islr/view/partner_view.xml 2011-10-31 06:36:38 +0000
211@@ -14,15 +14,15 @@
212 <field name="type">form</field>
213 <field name="inherit_id" ref="l10n_ve_withholding.wh_partner"/>
214 <field name="arch" type="xml">
215- <page string="Withholdings" position="inside">
216- <notebook>
217- <page string="Withholding Income">
218- <group col="4" colspan="2">
219- <field name="islr_withholding_agent"/>
220- </group>
221- </page>
222- </notebook>
223- </page>
224+ <xpath expr="//separator[@string='vsep']" position="after">
225+ <newline/>
226+ <group col="4" colspan="2">
227+ <field name="islr_withholding_agent"/>
228+ </group>
229+ </xpath>
230+ <xpath expr='//separator[@string="vsep"]' position='attributes'>
231+ <attribute name="string">Income Withholding</attribute>
232+ </xpath>
233 </field>
234 </record>
235
236
237=== modified file 'l10n_ve_withholding_islr/workflow/account_workflow.xml'
238--- l10n_ve_withholding_islr/workflow/account_workflow.xml 2011-10-31 01:02:55 +0000
239+++ l10n_ve_withholding_islr/workflow/account_workflow.xml 2011-10-31 06:36:38 +0000
240@@ -29,7 +29,7 @@
241 <!-- </record>-->
242 <!-- From Open to Withholdings-->
243 <record id="trans_open_wh_islr" model="workflow.transition">
244- <field name="act_from" ref="account.act_open"/>
245+ <field name="act_from" ref="l10n_ve_withholding.wh_router"/>
246 <field name="act_to" ref="act_withold_islr"/>
247 <field name="condition">check_wh_islr_apply()</field>
248 <field name="signal"></field>
249@@ -39,7 +39,8 @@
250 <record id="trans_withhold_paid" model="workflow.transition">
251 <field name="act_from" ref="act_withold_islr"/>
252 <field name="act_to" ref="account.act_paid"/>
253- <field name="signal"></field>
254+ <field name="trigger_model">account.move.line</field>
255+ <field name="trigger_expr_id">move_line_id_payment_get()</field>
256 <field name="condition">test_paid()</field>
257 </record>
258
259
260=== modified file 'l10n_ve_withholding_iva/account_invoice_view.xml'
261--- l10n_ve_withholding_iva/account_invoice_view.xml 2011-10-25 20:33:16 +0000
262+++ l10n_ve_withholding_iva/account_invoice_view.xml 2011-10-31 06:36:38 +0000
263@@ -16,17 +16,17 @@
264 <field name="type">form</field>
265 <field name="inherit_id" ref="l10n_ve_withholding.wh_inv_customer"/>
266 <field name="arch" type="xml">
267- <page string="Withholdings" position="inside">
268- <notebook>
269- <page string="Withholdings Vat">
270- <group col="6" colspan="4">
271- <field name="wh_iva"/>
272- <field name="wh_iva_rate"/>
273- <field name="wh_iva_id"/>
274- </group>
275- </page>
276- </notebook>
277- </page>
278+ <xpath expr="//separator[@string='isep']" position="after">
279+ <newline/>
280+ <group col="6" colspan="4">
281+ <field name="wh_iva"/>
282+ <field name="wh_iva_rate"/>
283+ <field name="wh_iva_id"/>
284+ </group>
285+ </xpath>
286+ <xpath expr='//separator[@string="isep"]' position='attributes'>
287+ <attribute name="string">Withholdings Vat</attribute>
288+ </xpath>
289 </field>
290 </record>
291
292@@ -37,18 +37,18 @@
293 <field name="model">account.invoice</field>
294 <field name="type">form</field>
295 <field name="inherit_id" ref="l10n_ve_withholding.wh_inv_supplier"/>
296- <field name="arch" type="xml">
297- <page string="Withholdings" position="inside">
298- <notebook>
299- <page string="Withholdings Vat">
300- <group col="6" colspan="4">
301- <field name="wh_iva"/>
302- <field name="wh_iva_rate"/>
303- <field name="wh_iva_id"/>
304- </group>
305- </page>
306- </notebook>
307- </page>
308+ <field name="arch" type="xml">
309+ <xpath expr="//separator[@string='isep']" position="after">
310+ <newline/>
311+ <group col="6" colspan="4">
312+ <field name="wh_iva"/>
313+ <field name="wh_iva_rate"/>
314+ <field name="wh_iva_id"/>
315+ </group>
316+ </xpath>
317+ <xpath expr='//separator[@string="isep"]' position='attributes'>
318+ <attribute name="string">Withholdings Vat</attribute>
319+ </xpath>
320 </field>
321 </record>
322
323
324=== modified file 'l10n_ve_withholding_iva/account_workflow.xml'
325--- l10n_ve_withholding_iva/account_workflow.xml 2011-10-30 04:26:37 +0000
326+++ l10n_ve_withholding_iva/account_workflow.xml 2011-10-31 06:36:38 +0000
327@@ -29,7 +29,7 @@
328 <!-- </record>-->
329 <!-- From Open to Withholdings-->
330 <record id="trans_open_wh" model="workflow.transition">
331- <field name="act_from" ref="account.act_open"/>
332+ <field name="act_from" ref="l10n_ve_withholding.wh_router"/>
333 <field name="act_to" ref="act_withold_vat"/>
334 <field name="condition">check_wh_apply()</field>
335 <field name="signal"></field>
336@@ -39,7 +39,8 @@
337 <record id="trans_withhold_paid" model="workflow.transition">
338 <field name="act_from" ref="act_withold_vat"/>
339 <field name="act_to" ref="account.act_paid"/>
340- <field name="signal"></field>
341+ <field name="trigger_model">account.move.line</field>
342+ <field name="trigger_expr_id">move_line_id_payment_get()</field>
343 <field name="condition">test_paid()</field>
344 </record>
345
346
347=== modified file 'l10n_ve_withholding_iva/partner_view.xml'
348--- l10n_ve_withholding_iva/partner_view.xml 2011-10-25 20:33:16 +0000
349+++ l10n_ve_withholding_iva/partner_view.xml 2011-10-31 06:36:38 +0000
350@@ -16,18 +16,18 @@
351 <field name="type">form</field>
352 <field name="inherit_id" ref="l10n_ve_withholding.wh_partner"/>
353 <field name="arch" type="xml">
354- <page string="Withholdings" position="inside">
355- <notebook>
356- <page string="Withholdings Vat">
357+ <xpath expr="//separator[@string='isep']" position="after">
358+ <newline/>
359 <group col="4" colspan="2">
360 <field name="wh_iva_agent"/>
361 <field name="wh_iva_rate"/>
362 <field name="property_wh_iva_payable"/>
363 <field name="property_wh_iva_receivable"/>
364 </group>
365- </page>
366- </notebook>
367- </page>
368+ </xpath>
369+ <xpath expr='//separator[@string="isep"]' position='attributes'>
370+ <attribute name="string">VAT Withholding</attribute>
371+ </xpath>
372 </field>
373 </record>
374 </data>