From 63cd43dca41f1ca611317aab39950d0a140f3d79 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 3 Sep 2008 17:36:31 +0200 Subject: [PATCH] Modifs bzr revid: fp@tinyerp.com-20080903153631-62bibtlpb4hznwxi --- addons/purchase/purchase.py | 3 +- addons/purchase/purchase_view.xml | 53 ++++++++++++++++--------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 8b3fda87942..ac3179b1019 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -90,6 +90,7 @@ class purchase_order(osv.osv): res={} purchase_obj=self.browse(cr, uid, ids, context=context) for purchase in purchase_obj: + res[purchase.id] = False if purchase.order_line: min_date=purchase.order_line[0].date_planned for line in purchase.order_line: @@ -165,7 +166,7 @@ class purchase_order(osv.osv): 'invoiced':fields.boolean('Invoiced & Paid', readonly=True, select=True), 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'), 'invoice_method': fields.selection([('manual','Manual'),('order','From order'),('picking','From picking')], 'Invoicing Control', required=True), - 'minimum_planned_date':fields.function(_minimum_planned_date, method=True,store=True, string='Minimum Planned Date', type='date', help="Minimum schedule date of all products."), + 'minimum_planned_date':fields.function(_minimum_planned_date, method=True,store=True, string='Planned Date', type='date', help="Minimum schedule date of all products."), 'amount_untaxed': fields.function(_amount_untaxed, method=True, string='Untaxed Amount'), 'amount_tax': fields.function(_amount_tax, method=True, string='Taxes'), 'amount_total': fields.function(_amount_total, method=True, string='Total'), diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 4b2ca210767..e693b40351f 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -3,19 +3,19 @@ - - purchase.order.calendar - purchase.order - calendar - - - - - - - - - + + purchase.order.calendar + purchase.order + calendar + + + + + + + + + purchase.order.form @@ -23,16 +23,15 @@ form
- - - - - - - - - - + + + + + + + + + @@ -61,13 +60,14 @@ - - + + + - + @@ -134,6 +134,7 @@ +