From e639524564c88bebf9aa8170034e69db8a233204 Mon Sep 17 00:00:00 2001 From: "atp (Open ERP)" Date: Thu, 5 Aug 2010 21:09:03 +0530 Subject: [PATCH] [IMP]: usability Improvement in Auction Dashboard bzr revid: atp@tinyerp.co.in-20100805153903-8mgav7xlsprovv7s --- addons/auction/__openerp__.py | 6 +- addons/auction/auction.py | 7 +- addons/auction/board_auction_view.xml | 116 +++-- addons/auction/report/report_auction.py | 195 +------- addons/auction/report/report_auction_view.xml | 421 +----------------- addons/auction/security/ir.model.access.csv | 5 - addons/auction/test/auction.yml | 155 ++++++- 7 files changed, 243 insertions(+), 662 deletions(-) diff --git a/addons/auction/__openerp__.py b/addons/auction/__openerp__.py index 7ad16bfeb03..6cc6139b39e 100644 --- a/addons/auction/__openerp__.py +++ b/addons/auction/__openerp__.py @@ -59,11 +59,11 @@ 'report/report_auction_view.xml', 'auction_wizard.xml', 'board_auction_view.xml', - 'board_auction_manager_view.xml', + # 'board_auction_manager_view.xml', ], - 'demo_xml': ['auction_demo.xml','board_auction_demo.xml'], - 'test': ['test/auction.yml', 'test/auction_wizard.yml'], + 'demo_xml': ['auction_demo.xml','board_auction_demo.xml', 'test/auction.yml'], + #'test': ['test/auction_wizard.yml'], 'installable': True, 'active': False, diff --git a/addons/auction/auction.py b/addons/auction/auction.py index 7a84147d5f6..f67a92afe94 100644 --- a/addons/auction/auction.py +++ b/addons/auction/auction.py @@ -314,6 +314,7 @@ class auction_lots(osv.osv): elif name == "costs": # costs: Total credit of analytic account # objects sold during this auction (excluding analytic lines that are in the analytic journal of the auction date) + #TOCHECK: Calculation OF Indirect Cost som = 0.0 if lot.auction_id: auct_id = lot.auction_id.id @@ -379,8 +380,8 @@ class auction_lots(osv.osv): 'ach_login': fields.char('Buyer Username', size=64), 'ach_uid': fields.many2one('res.partner', 'Buyer'), 'seller_id': fields.related('bord_vnd_id','partner_id', type='many2one', relation='res.partner', string='Seller', readonly=True), - 'ach_emp': fields.boolean('Taken Away', readonly=True, help="When This Field is True means, Objects is taken away by Buyer"), - 'is_ok': fields.boolean('Buyer\'s payment', help="When Buyer Pay For Bank statement', This field is selected as True."), + 'ach_emp': fields.boolean('Taken Away', readonly=True, help="When This Field is marked, Object is taken away by Buyer"), + 'is_ok': fields.boolean('Buyer\'s payment', help="When Buyer Pay For Bank statement', This field is Marked"), 'ach_inv_id': fields.many2one('account.invoice', 'Buyer Invoice', readonly=True, states={'draft':[('readonly', False)]}), 'sel_inv_id': fields.many2one('account.invoice', 'Seller Invoice', readonly=True, states={'draft':[('readonly', False)]}), 'vnd_lim': fields.float('Seller limit'), @@ -402,7 +403,7 @@ class auction_lots(osv.osv): 'seller_price': fields.function(_getprice, method=True, string='Seller price', store=True, multi="seller_price", help="Seller Price"), 'gross_revenue':fields.function(_getprice, method=True, string='Gross revenue', store=True, multi="gross_revenue", help="Buyer Price - Seller Price"), 'gross_margin':fields.function(_getprice, method=True, string='Gross Margin (%)', store=True, multi="gross_margin", help="(Gross Revenue*100.0)/ Object Price"), - 'costs':fields.function(_getprice, method=True, string='Indirect costs', store=True, multi="costs", help="Total Credit of analytic account"), + 'costs':fields.function(_getprice, method=True, string='Indirect costs', store=True, multi="costs", help="Deposit cost"), 'statement_id': fields.many2many('account.bank.statement.line', 'auction_statement_line_rel', 'auction_id', 'statement', 'Payment', help="Bank statement Line For Given Buyer"), 'net_revenue':fields.function(_getprice, method=True, string='Net revenue', store=True, multi="net_revenue", help="Buyer Price - Seller Price - Indirect Cost"), 'net_margin':fields.function(_getprice, method=True, string='Net Margin (%)', store=True, multi="net_margin", help="(Net Revenue * 100)/ Object Price"), diff --git a/addons/auction/board_auction_view.xml b/addons/auction/board_auction_view.xml index e1d92d5e753..7a233282f2c 100644 --- a/addons/auction/board_auction_view.xml +++ b/addons/auction/board_auction_view.xml @@ -1,12 +1,62 @@ - - - Auction + + + Auction DashBoard - - - board.auction.manager.form + + + auction.lots + form + tree,form + + + + auction.deposit + form + tree,form + + + + report.auction.estimation.adj.category.tree + auction.lots + tree + + + + + + + + + + + + + + report.auction.lots.estimation.adj.category.graph + auction.lots + graph + + + + + + + + + + + + + Min est/Adj/Max est + auction.lots + form + graph,tree + + + + board.auction.form board.board form @@ -14,36 +64,31 @@ - + width="510" /> + - + -