~vauxoo/addons-vauxoo/7.0-average_stock_valuation_journal_items-dev-yani

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version='1.0' encoding='utf-8'?>
<openerp>
<data>


      
<!--        From WH_ROUTER to Withholdings-->
        <record id="l10n_ve_withholding_iva.trans_wh_router_wh_vat" model="workflow.transition">
            <field name="act_from" ref="l10n_ve_withholding.act_wh_router"/>
            <field name="act_to" ref="l10n_ve_withholding_iva.act_withold_vat"/>
            <field name="condition">check_wh_apply() and check_withholdable() and check_iva()</field>
            <field name="signal"/>
        </record>
        
        
        
        <record id="l10n_ve_withholding_iva.trans_cancel_draft" model="workflow.transition">
            <field name="act_from" ref="l10n_ve_withholding_iva.act_cancel"/>
            <field name="act_to" ref="l10n_ve_withholding_iva.act_draft"/>
            <field name="condition">check_state_cancel()</field> 
            <field name="signal">set_to_draft</field>
        </record>

</data>
</openerp>