[REF]English demo, fix report, clear security

bzr revid: api@openerp.com-20121106162907-ir7ujoxowlrqouyt
This commit is contained in:
Arnaud Pineux 2012-11-06 17:29:07 +01:00
parent c0971be90b
commit 2a13ed6338
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,9 @@
<record id="base.user_root" model="res.users">
<field name="groups_id" eval="[(4,ref('lunch.group_lunch_manager'))]"/>
</record>
<record id="base.user_demo" model="res.users">
<field name="groups_id" eval="[(4,ref('lunch.group_lunch_user'))]"/>
</record>
<record model="lunch.product.category" id="categ_sandwich">
<field name="name">Sandwich</field>

View File

@ -45,11 +45,11 @@ class report_lunch_order(osv.osv):
create or replace view report_lunch_order_line as (
select
min(lo.id) as id,
lo.user_id as user_id,
lo.date as date,
to_char(lo.date, 'YYYY') as year,
to_char(lo.date, 'MM') as month,
to_char(lo.date, 'YYYY-MM-DD') as day,
lo.user_id,
lo.note as note,
sum(lp.price) as price_total