[VIEW] ~cash register repsonsible is read and write
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 8 Apr 2016 10:43:21 +0000 (12:43 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 8 Apr 2016 10:43:21 +0000 (12:43 +0200)
__openerp__.py
view/account.xml [new file with mode: 0644]

index d991fba..3be48fe 100644 (file)
@@ -49,8 +49,10 @@ It installs the profile for bike co-ops to manage some features like:
         'data/plan_comptable_general.xml',
         'data/products_categories.xml',
         'data/products_products.xml',
+        'data/remembership.xml',
         'data/members.xml',
         'data/users.xml',
+        'view/account.xml',
         'view/bikecoop.xml',
     ],
     'installable': True,
diff --git a/view/account.xml b/view/account.xml
new file mode 100644 (file)
index 0000000..154a061
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_bank_statement_form2" model="ir.ui.view">
+            <field name="name">account.bank.statement.form</field>
+            <field name="model">account.bank.statement</field>
+            <field name="inherit_id" ref="account.view_bank_statement_form2"/>
+            <field name="arch" type="xml">
+                <xpath expr="//field[@name='user_id']" position="attributes">
+                    <attribute name="readonly">0</attribute>
+                </xpath>
+            </field>
+        </record>
+    </data>
+</openerp>