From 7b36357001d797c2869032f561690ccd47e8475a Mon Sep 17 00:00:00 2001 From: Arnaud Pineux Date: Thu, 3 Jan 2013 11:39:35 +0100 Subject: [PATCH 1/3] [FIX] Lunch name changed to have the good breadcrumb lp bug: https://launchpad.net/bugs/1095566 fixed bzr revid: api@openerp.com-20130103103935-i1vdmukol420r62p --- addons/lunch/lunch.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addons/lunch/lunch.py b/addons/lunch/lunch.py index f61ecc8eb7d..1c78633ccac 100644 --- a/addons/lunch/lunch.py +++ b/addons/lunch/lunch.py @@ -35,6 +35,16 @@ class lunch_order(osv.Model): _description = 'Lunch Order' _order = 'date desc' + def name_get(self, cr, uid, ids, context=None): + if not ids: + return [] + res = [] + for elmt in self.browse(cr, uid, ids, context=context): + name = _("Lunch Order") + name = name + ' ' + str(elmt.id) + res.append((elmt.id, name)) + return res + def _price_get(self, cr, uid, ids, name, arg, context=None): """ get and sum the order lines' price From 0145fe1d069f9d1e9b869098a1ca6baca149f89a Mon Sep 17 00:00:00 2001 From: Arnaud Pineux Date: Thu, 3 Jan 2013 12:30:50 +0100 Subject: [PATCH 2/3] [FIX] Lunch : button create removed lp bug: https://launchpad.net/bugs/1095568 fixed bzr revid: api@openerp.com-20130103113050-fie0zx1lx5vs388a --- addons/lunch/lunch_view.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml index 8974099a294..c07f26f025b 100644 --- a/addons/lunch/lunch_view.xml +++ b/addons/lunch/lunch_view.xml @@ -109,6 +109,19 @@ + + + cashmove tree + lunch.cashmove + + + + + + + + + @@ -117,6 +130,7 @@ tree {"search_default_is_mine":1} +

Here you can see your cash moves.
A cash moves can be either an expense or a payment. @@ -173,6 +187,7 @@ tree,form {"search_default_group_by_user":1} +

Click to create a new payment. @@ -194,6 +209,7 @@ tree,form {"search_default_is_payment":1} +

Click to create a payment. From cba3bacef61627296b3aa4ff072ec60be50aee0a Mon Sep 17 00:00:00 2001 From: Arnaud Pineux Date: Thu, 3 Jan 2013 13:26:46 +0100 Subject: [PATCH 3/3] [FIX] Lunch : button create removed lp bug: https://launchpad.net/bugs/1095568 fixed bzr revid: api@openerp.com-20130103122646-fj3ykurbbyk6x2br --- addons/lunch/lunch_view.xml | 66 +++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml index c07f26f025b..5cdc1f36715 100644 --- a/addons/lunch/lunch_view.xml +++ b/addons/lunch/lunch_view.xml @@ -83,6 +83,39 @@ + + + cashmove tree + lunch.cashmove + + + + + + + + + + + + cashmove form + lunch.cashmove + +

+ + + + + + + +
+
+
+ + New Order @@ -401,38 +434,7 @@ - - - cashmove tree - lunch.cashmove - - - - - - - - - - - - cashmove form - lunch.cashmove - -
- - - - - - - -
-
-
- + alert tree