Merge lp:~vauxoo/addons-vauxoo/7.0-hr_payroll_cancel-dev_luis into lp:addons-vauxoo/7.0

Proposed by Luis Torres - http://www.vauxoo.com
Status: Merged
Merged at revision: 970
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-hr_payroll_cancel-dev_luis
Merge into: lp:addons-vauxoo/7.0
Diff against target: 129 lines (+109/-0)
4 files modified
hr_payroll_cancel/__init__.py (+25/-0)
hr_payroll_cancel/__openerp__.py (+47/-0)
hr_payroll_cancel/hr_payslip_view.xml (+17/-0)
hr_payroll_cancel/hr_payslip_workflow.xml (+20/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-hr_payroll_cancel-dev_luis
Reviewer Review Type Date Requested Status
Julio Serna-http://www.vauxoo.com Pending
Review via email: mp+208708@code.launchpad.net

Description of the change

Se agrego al frujo de hr.payslip que se pueda pasar del estado Done a Cancelado

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=== added directory 'hr_payroll_cancel'
2=== added file 'hr_payroll_cancel/__init__.py'
3--- hr_payroll_cancel/__init__.py 1970-01-01 00:00:00 +0000
4+++ hr_payroll_cancel/__init__.py 2014-02-27 23:26:00 +0000
5@@ -0,0 +1,25 @@
6+# -*- encoding: utf-8 -*-
7+###########################################################################
8+# Module Writen to OpenERP, Open Source Management Solution
9+#
10+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
11+# All Rights Reserved.
12+# info Vauxoo (info@vauxoo.com)
13+############################################################################
14+# Coded by: Luis Torres (luis_t@vauxoo.com)
15+############################################################################
16+#
17+# This program is free software: you can redistribute it and/or modify
18+# it under the terms of the GNU Affero General Public License as
19+# published by the Free Software Foundation, either version 3 of the
20+# License, or (at your option) any later version.
21+#
22+# This program is distributed in the hope that it will be useful,
23+# but WITHOUT ANY WARRANTY; without even the implied warranty of
24+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+# GNU Affero General Public License for more details.
26+#
27+# You should have received a copy of the GNU Affero General Public License
28+# along with this program. If not, see <http://www.gnu.org/licenses/>.
29+#
30+##############################################################################
31
32=== added file 'hr_payroll_cancel/__openerp__.py'
33--- hr_payroll_cancel/__openerp__.py 1970-01-01 00:00:00 +0000
34+++ hr_payroll_cancel/__openerp__.py 2014-02-27 23:26:00 +0000
35@@ -0,0 +1,47 @@
36+# -*- encoding: utf-8 -*-
37+###########################################################################
38+# Module Writen to OpenERP, Open Source Management Solution
39+#
40+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
41+# All Rights Reserved.
42+# info Vauxoo (info@vauxoo.com)
43+############################################################################
44+# Coded by: Luis Torres (luis_t@vauxoo.com)
45+############################################################################
46+#
47+# This program is free software: you can redistribute it and/or modify
48+# it under the terms of the GNU Affero General Public License as
49+# published by the Free Software Foundation, either version 3 of the
50+# License, or (at your option) any later version.
51+#
52+# This program is distributed in the hope that it will be useful,
53+# but WITHOUT ANY WARRANTY; without even the implied warranty of
54+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55+# GNU Affero General Public License for more details.
56+#
57+# You should have received a copy of the GNU Affero General Public License
58+# along with this program. If not, see <http://www.gnu.org/licenses/>.
59+#
60+##############################################################################
61+
62+{
63+ "name" : "Hr Payroll Cancel",
64+ "version" : "1.0",
65+ "author" : "Vauxoo",
66+ "category" : "Localization/Mexico",
67+ "description" : """
68+ This module change the workflow from hr.payslip to can cancel after to confirm this
69+ """,
70+ "website" : "http://www.vauxoo.com/",
71+ "license" : "AGPL-3",
72+ "depends" : [
73+ "hr_payroll",
74+ ],
75+ "data" : [
76+ "hr_payslip_view.xml",
77+ "hr_payslip_workflow.xml",
78+ ],
79+ "test": [],
80+ "installable" : True,
81+ "active" : False,
82+}
83
84=== added file 'hr_payroll_cancel/hr_payslip_view.xml'
85--- hr_payroll_cancel/hr_payslip_view.xml 1970-01-01 00:00:00 +0000
86+++ hr_payroll_cancel/hr_payslip_view.xml 2014-02-27 23:26:00 +0000
87@@ -0,0 +1,17 @@
88+<?xml version='1.0' encoding='utf-8'?>
89+<openerp>
90+ <data>
91+
92+ <record id="view_cancel_payslip_form" model="ir.ui.view">
93+ <field name="name">view.cancel.payslip.form</field>
94+ <field name="model">hr.payslip</field>
95+ <field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
96+ <field name="arch" type="xml">
97+ <xpath expr="//button[@string='Cancel Payslip']" position="attributes">
98+ <attribute name="states">draft,hr_check,confirm,verify,done</attribute>
99+ </xpath>
100+ </field>
101+ </record>
102+
103+ </data>
104+</openerp>
105
106=== added file 'hr_payroll_cancel/hr_payslip_workflow.xml'
107--- hr_payroll_cancel/hr_payslip_workflow.xml 1970-01-01 00:00:00 +0000
108+++ hr_payroll_cancel/hr_payslip_workflow.xml 2014-02-27 23:26:00 +0000
109@@ -0,0 +1,20 @@
110+<?xml version="1.0" encoding="utf-8"?>
111+<openerp>
112+ <data>
113+ <record id="hr_payroll.act_done" model="workflow.activity">
114+ <field name="wkf_id" ref="hr_payroll.wkf"/>
115+ <field name="name">done</field>
116+ <field name="action">process_sheet()</field>
117+ <field name="kind">function</field>
118+ <field name="flow_stop"></field>
119+ </record>
120+
121+ <record id="workflow_transition_act_done_to_act_cancel" model="workflow.transition">
122+ <field name="signal">cancel_sheet</field>
123+ <field model="workflow.activity" name="act_from" ref="hr_payroll.act_done"/>
124+ <field model="workflow.activity" name="act_to" ref="hr_payroll.act_cancel"/>
125+ <field name="condition">True</field>
126+ </record>
127+
128+ </data>
129+</openerp>