From f4927a835d95f1f943594612c3a3d45c629ef50b Mon Sep 17 00:00:00 2001 From: "Anup (OpenERP)" Date: Mon, 4 Oct 2010 19:21:01 +0530 Subject: [PATCH 01/12] [REF] stock : Product typo changed. lp bug: https://launchpad.net/bugs/648607 fixed bzr revid: ach@tinyerp.com-20101004135101-2orb2lzrhpg1nigg --- addons/stock/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/product.py b/addons/stock/product.py index 790b50c45b3..19b6570a31a 100644 --- a/addons/stock/product.py +++ b/addons/stock/product.py @@ -318,7 +318,7 @@ class product_product(osv.osv): 'track_outgoing': fields.boolean('Track Outgoing Lots', help="Forces to specify a Production Lot for all moves containing this product and going to a Customer Location"), 'location_id': fields.dummy(string='Stock Location', relation='stock.location', type='many2one'), 'valuation':fields.selection([('manual_periodic', 'Periodic (manual)'), - ('real_time','Real Time (automatized)'),], 'Stock Valuation', help="Decide if the system must automatically creates account moves based on stock moves", required=True), + ('real_time','Real Time (automatized)'),], 'Stock Valuation', help="Decide if the system must automatically create account moves based on stock moves", required=True), } _defaults = { From ae562e1b6a29c9bf617e37e14ae365e7e4259d79 Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Mon, 4 Oct 2010 17:13:03 +0200 Subject: [PATCH 02/12] [FIX] point_of_sale: 'account_statement' report: method 'get_data' was missing [IMP] point_of_sale: 'account_statement' report now uses decimal.precision bzr revid: olt@tinyerp.com-20101004151303-k32qnknzuczn3t95 --- addons/point_of_sale/report/account_statement.py | 11 +++++++++++ addons/point_of_sale/report/account_statement.rml | 13 +++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/addons/point_of_sale/report/account_statement.py b/addons/point_of_sale/report/account_statement.py index 391adb7569f..dc492651bb2 100644 --- a/addons/point_of_sale/report/account_statement.py +++ b/addons/point_of_sale/report/account_statement.py @@ -31,10 +31,21 @@ class account_statement(report_sxw.rml_parse): self.localcontext.update({ 'time': time, 'get_total':self._get_total, + 'get_data':self._get_data, }) + + def _get_data(self, statement): + lines = [] + for line in statement.line_ids: + lines.append(line) + + return lines + def _get_total(self, statement_line_ids): total = 0.0 for line in statement_line_ids: total += line.amount return total + report_sxw.report_sxw('report.account.statement', 'account.bank.statement', 'addons/statement/report/account_statement.rml', parser=account_statement,header='internal') + diff --git a/addons/point_of_sale/report/account_statement.rml b/addons/point_of_sale/report/account_statement.rml index e4c3b99b6ee..ed26143aa4e 100644 --- a/addons/point_of_sale/report/account_statement.rml +++ b/addons/point_of_sale/report/account_statement.rml @@ -216,10 +216,10 @@ [[ formatLang(statement.closing_date,date=True) ]] - [[ formatLang(statement.balance_start) ]][[ company.currency_id.symbol ]] + [[ formatLang(statement.balance_start, digits=get_digits(dp='Account')) ]][[ company.currency_id.symbol ]] - [[ formatLang(statement.balance_end_real) ]][[ company.currency_id.symbol ]] + [[ formatLang(statement.balance_end_real, digits=get_digits(dp='Account')) ]][[ company.currency_id.symbol ]] @@ -247,13 +247,14 @@ [[ repeatIn(statement.line_ids,'line_ids') and ' ' or removeParentNode('blockTable') ]] [[ repeatIn(get_data(statement), 'line_ids')]] - [[ line_ids.name ]] + + [[ line_ids['name'] ]] [[ line_ids.partner_id.name ]] - [[ formatLang(line_ids.amount) ]][[ company.currency_id.symbol ]] + [[ formatLang(line_ids.amount, digits=get_digits(dp='Account')) ]][[ company.currency_id.symbol ]] @@ -268,7 +269,7 @@ Total : - [[ formatLang(get_total(statement.line_ids)) ]][[ company.currency_id.symbol ]] + [[ formatLang(get_total(statement.line_ids), digits=get_digits(dp='Account')) ]][[ company.currency_id.symbol ]] @@ -282,4 +283,4 @@ - \ No newline at end of file + From 2ab8afb1258b20efab9d413f766ef7fe402abe60 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 4 Oct 2010 17:32:17 +0200 Subject: [PATCH 03/12] [IMP] removed id field bzr revid: fp@tinyerp.com-20101004153217-711n4au7d85wy01h --- addons/project/project_view.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 6efc64dd494..69833383efe 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -303,7 +303,6 @@ - From 3fe4d84627ff12758dfbb7ea1c10fe71f1cd1041 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 4 Oct 2010 20:47:57 +0200 Subject: [PATCH 04/12] [IMP] project and gtd bzr revid: fp@tinyerp.com-20101004184757-bb33et0o5cav8fuk --- addons/project/project.py | 5 +++++ addons/project/project_view.xml | 21 ++++++++++----------- addons/project_gtd/project_gtd.py | 10 +++++----- addons/project_gtd/project_gtd_view.xml | 3 ++- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/addons/project/project.py b/addons/project/project.py index 996e79a1f8b..94828395cbf 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -373,6 +373,11 @@ class task(osv.osv): return res + def onchange_remaining(self, cr, uid, ids, remaining=0.0, planned = 0.0): + if remaining and not planned: + return {'value':{'planned_hours': remaining}} + return {} + def onchange_planned(self, cr, uid, ids, planned = 0.0, effective = 0.0): return {'value':{'remaining_hours': planned - effective}} diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 69833383efe..b0332a7ca27 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -207,7 +207,7 @@
- + @@ -305,12 +305,11 @@ - - + + - - - + +