summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2011-12-11 10:14:42 +0100
committerFabien Pinckaers <fp@tinyerp.com>2011-12-11 10:14:42 +0100
commitca16eaf1b152aaa2d706883f8ff0971ba288765a (patch)
tree61e874dbd3af18d90f6dc06dccf4d78e6a9479e2
parentb71c469254843e0c3394710b37855dd83bef9b41 (diff)
[FIX] PoS misc access rights
bzr revid: fp@tinyerp.com-20111211091442-c61pssjexf0jog5c
-rw-r--r--addons/account/account.py4
-rw-r--r--addons/point_of_sale/report/pos_receipt.rml2
-rw-r--r--addons/point_of_sale/security/point_of_sale_security.xml2
-rw-r--r--addons/stock/product_view.xml2
4 files changed, 6 insertions, 4 deletions
diff --git a/addons/account/account.py b/addons/account/account.py
index e2ce5ff8063..fd8a0506d01 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -771,7 +771,9 @@ class account_journal(osv.osv):
def create(self, cr, uid, vals, context=None):
if not 'sequence_id' in vals or not vals['sequence_id']:
- vals.update({'sequence_id': self.create_sequence(cr, uid, vals, context)})
+ # if we have the right to create a journal, we should be able to
+ # create it's sequence.
+ vals.update({'sequence_id': self.create_sequence(cr, 1, vals, context)})
return super(account_journal, self).create(cr, uid, vals, context)
def name_get(self, cr, user, ids, context=None):
diff --git a/addons/point_of_sale/report/pos_receipt.rml b/addons/point_of_sale/report/pos_receipt.rml
index e3b5583a499..55873887210 100644
--- a/addons/point_of_sale/report/pos_receipt.rml
+++ b/addons/point_of_sale/report/pos_receipt.rml
@@ -75,7 +75,7 @@
<para style="terp_default_Centre_9">[[ address and address.street ]], [[ address and address.zip ]] [[ address and address.city ]]</para>
<para style="terp_default_Centre_9">[[ address and address.country_id.name ]]</para>
<para style="terp_default_Centre_9">Tel : [[ address and address.phone ]]</para>
- <para style="terp_default_Centre_9">E-mail : [[ address and address.email ]]</para>
+ <para style="terp_default_Centre_9">User : [[ o.user_id.name ]]</para>
<para style="terp_default_Centre_9">Shop : [[ o.shop_id.name ]]</para>
<para style="terp_default_Centre_9">Date : [[ o.date_order ]]</para>
<para style="P4">
diff --git a/addons/point_of_sale/security/point_of_sale_security.xml b/addons/point_of_sale/security/point_of_sale_security.xml
index 14c9e96df9e..09f1e8860fd 100644
--- a/addons/point_of_sale/security/point_of_sale_security.xml
+++ b/addons/point_of_sale/security/point_of_sale_security.xml
@@ -7,7 +7,7 @@
</record>
<record id="group_pos_manager" model="res.groups">
<field name="name">Point of Sale / Manager</field>
- <field name="implied_ids" eval="[(4, ref('group_pos_user'))]"/>
+ <field name="implied_ids" eval="[(4, ref('group_pos_user')), (4, ref('stock.group_stock_user'))]"/>
</record>
</data>
diff --git a/addons/stock/product_view.xml b/addons/stock/product_view.xml
index 9e8cc34813f..b11fe36d8d8 100644
--- a/addons/stock/product_view.xml
+++ b/addons/stock/product_view.xml
@@ -107,7 +107,7 @@
<separator string="Stocks" colspan="4"/>
<field name="qty_available"/>
<button name="%(action_view_change_product_quantity)d" string="Update" attrs="{'invisible': [('type', '=', 'service')]}"
- type="action" icon="gtk-execute" groups = "stock.group_stock_manager,stock.group_stock_user"/>
+ type="action" icon="gtk-execute" groups="stock.group_stock_manager,stock.group_stock_user"/>
<newline/>
<field name="virtual_available"/>
</group>