Merge lp:~vauxoo/openerp-venezuela-localization/luiseev_fiscal_requeriments into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Luis Escobar V. (Vauxoo)
Status: Merged
Merged at revision: 588
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/luiseev_fiscal_requeriments
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 67 lines (+33/-0)
4 files modified
l10n_ve_fiscal_requirements/__openerp__.py (+1/-0)
l10n_ve_fiscal_requirements/security/acc_inv_refund_security.xml (+9/-0)
l10n_ve_fiscal_requirements/security/ir.model.access.csv (+1/-0)
l10n_ve_fiscal_requirements/view/account_invoice_view.xml (+22/-0)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/luiseev_fiscal_requeriments
Reviewer Review Type Date Requested Status
Gabriela Quilarque Approve
Review via email: mp+90544@code.launchpad.net

Description of the change

[IMP] add group to refund button.

To post a comment you must log in.
567. By Luis Escobar V. (Vauxoo)

[IMP] add file acc_inv_refund_security.xml.

Revision history for this message
Gabriela Quilarque (gabrielaquilarque97) wrote :

Merge Realizado.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_fiscal_requirements/__openerp__.py'
2--- l10n_ve_fiscal_requirements/__openerp__.py 2012-01-27 20:18:28 +0000
3+++ l10n_ve_fiscal_requirements/__openerp__.py 2012-01-27 22:09:30 +0000
4@@ -66,6 +66,7 @@
5 "depends" : ["base_vat", "account", "account_accountant","account_voucher"],
6 'update_xml': [
7 'installer_view.xml',
8+ 'security/acc_inv_refund_security.xml',
9 'security/ir.model.access.csv',
10 'view/account_invoice_view.xml',
11 'view/res_company_view.xml',
12
13=== added file 'l10n_ve_fiscal_requirements/security/acc_inv_refund_security.xml'
14--- l10n_ve_fiscal_requirements/security/acc_inv_refund_security.xml 1970-01-01 00:00:00 +0000
15+++ l10n_ve_fiscal_requirements/security/acc_inv_refund_security.xml 2012-01-27 22:09:30 +0000
16@@ -0,0 +1,9 @@
17+<?xml version="1.0" encoding="utf-8"?>
18+ <openerp>
19+ <data noupdate="1">
20+
21+ <record id="group_account_inv_refund_manager" model="res.groups">
22+ <field name="name">Invoice Refund / Manager</field>
23+ </record>
24+ </data>
25+ </openerp>
26
27=== modified file 'l10n_ve_fiscal_requirements/security/ir.model.access.csv'
28--- l10n_ve_fiscal_requirements/security/ir.model.access.csv 2012-01-05 16:21:15 +0000
29+++ l10n_ve_fiscal_requirements/security/ir.model.access.csv 2012-01-27 22:09:30 +0000
30@@ -4,3 +4,4 @@
31 "access_account_seniat_url_3","seniat.url","model_seniat_url","account.group_account_manager",1,1,1,1
32 "access_account_seniat_url_4","seniat.url","model_seniat_url","base.group_erp_manager",1,1,1,1
33 "access_account_seniat_url_5","seniat.url","model_seniat_url","base.group_partner_manager",1,0,0,0
34+"access_account_inv_refund_1","account.invoice.refund","model_account_invoice_refund","l10n_ve_fiscal_requirements.group_account_inv_refund_manager",1,1,1,1
35
36=== modified file 'l10n_ve_fiscal_requirements/view/account_invoice_view.xml'
37--- l10n_ve_fiscal_requirements/view/account_invoice_view.xml 2012-01-12 23:24:16 +0000
38+++ l10n_ve_fiscal_requirements/view/account_invoice_view.xml 2012-01-27 22:09:30 +0000
39@@ -50,6 +50,28 @@
40 </xpath>
41 </field>
42 </record>
43+ <record id="account_invoice_refund_supplier_form" model="ir.ui.view">
44+ <field name="name">account.invoice.refund.supplier.form</field>
45+ <field name="model">account.invoice</field>
46+ <field name="type">form</field>
47+ <field name="inherit_id" ref="account.invoice_supplier_form"/>
48+ <field name="arch" type="xml">
49+ <xpath expr="/form/notebook/page/group/group/button[@string='Refund']" position="replace">
50+ <button name="822" type="action" string="Refund" states="open,paid" groups="l10n_ve_fiscal_requirements.group_account_inv_refund_manager" icon="gtk-execute"/>
51+ </xpath>
52+ </field>
53+ </record>
54+ <record id="account_invoice_refund_customer_form" model="ir.ui.view">
55+ <field name="name">account.invoice.refund.customer.form</field>
56+ <field name="model">account.invoice</field>
57+ <field name="type">form</field>
58+ <field name="inherit_id" ref="account.invoice_form"/>
59+ <field name="arch" type="xml">
60+ <xpath expr="/form/notebook/page/group/group/button[@string='Refund']" position="replace">
61+ <button name="822" type="action" string="Refund" states="open,paid" groups="l10n_ve_fiscal_requirements.group_account_inv_refund_manager" icon="gtk-execute"/>
62+ </xpath>
63+ </field>
64+ </record>
65 <record id="account_invoice_ext_view_tree_loc_ve2" model="ir.ui.view">
66 <field name="name">invoice_extended.account.invoice.tree.loc_ve2</field>
67 <field name="model">account.invoice</field>