[Invoice] no restricted access to journal_id
[burette/lhc.git] / view / account_invoice.xml
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>