[Invoice] no restricted access to journal_id
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 15 Mar 2013 11:05:52 +0000 (12:05 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 15 Mar 2013 11:05:52 +0000 (12:05 +0100)
__openerp__.py
view/account_invoice.xml

index ece3b3d..60dc590 100644 (file)
@@ -37,7 +37,11 @@ Module pour les personnalisations de L'Heureux Cyclage
         'account',
     ],
     'update_xml': [
+        'security/lhc_custom_oe_security.xml',
+        'security/ir.model.access.csv',
+        'data/wiki.xml',
         'view/account_invoice.xml',
+        'view/wiki.xml',
         'data/filters.xml',
     ],
     'installable': True,
index 7f0d0da..a3d3951 100644 (file)
@@ -7,6 +7,9 @@
             <field name="type">form</field>
             <field name="inherit_id" ref="account.invoice_form"/>
             <field name="arch" type="xml">
+                <xpath expr="//field[@name='journal_id']" position="replace">
+                    <field name="journal_id" on_change="onchange_journal_id(journal_id)" widget="selection"/>
+                </xpath>
                 <xpath expr="//field[@name='partner_id']" position="replace">
                     <field string="Customer" name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'search_default_customer': 1}"/>
                 </xpath>