Merge lp:~openerp-dev/openobject-addons/trunk-account-asset-usability-bde into lp:~openerp-dev/openobject-addons/trunk-account-asset

Proposed by Bharat Devnani (Open ERP)
Status: Rejected
Rejected by: Mustufa Rangwala (Open ERP)
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-account-asset-usability-bde
Merge into: lp:~openerp-dev/openobject-addons/trunk-account-asset
Diff against target: 125 lines (+33/-28)
3 files modified
account_asset/account_asset.py (+6/-4)
account_asset/account_asset_invoice.py (+9/-13)
account_asset/account_asset_view.xml (+18/-11)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-account-asset-usability-bde
Reviewer Review Type Date Requested Status
Mustufa Rangwala (Open ERP) Disapprove
Bharat Devnani (Open ERP) Needs Resubmitting
qdp (OpenERP) Needs Fixing
Review via email: mp+61218@code.launchpad.net

Description of the change

Hello,

Following usability issues are resolved :

    1) in all other view : the state bar is in the first tab, move it in the tab
    2) add icon on button

Thanks & Regards
Devnani Bharat

To post a comment you must log in.
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

string="Confirm asset" => "Confirm Asset"
and correct the indentation too

review: Needs Fixing
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello,

I have improved the usability as suggested.

Thanks & Regards,
Devnani Bharat R.

Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello,

I have also changed the label of Depr.. All.

Thanks & Regards,
Devnani Bharat R.

Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello,

I have added tooltips in account_asset:

During (interval)
Computation Method
Time Method

Thanks & Regards,
Devnani Bharat R.

review: Needs Resubmitting
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) :
review: Approve
Revision history for this message
qdp (OpenERP) (qdp) wrote :

replace tabs and solve conflicts

review: Needs Fixing
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Sir,

I have improved the usability in account_asset_view.xml

Thanks & Regards,
Devnani Bharat R.

review: Needs Resubmitting
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

remove print statement

review: Needs Fixing
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

still indentation problem.

used 4 space instead of tab

Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Sir,

I have made the changes as per your suggestion.

Thanks & Regards,
Devnani Bharat R.

review: Needs Resubmitting
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Sir,

Corrected indentation of button field.

Thanks & Regards,
Devnani Bharat R.

review: Needs Resubmitting
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) :
review: Needs Resubmitting
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) :
review: Needs Resubmitting
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

good work!

you have corrected all indentation problem in the xml file.

thanks,
mra

review: Approve
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

conflicts detected in the branch as new changes made on the main project branch.

thanks,
mra

review: Needs Fixing
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Sir,

Conflicts are resolved.

Thanks & Regards,
Devnani Bharat R.

review: Needs Resubmitting
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

it seems you have not merge properly your feature branch with main project branch.
Some usefull changes from project branch you have overrided in your feature branch.

review: Needs Fixing
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

branch seems weired.
for sake of clarity i reject this branch and please create new merge proposal for above feature.

thanks,
mra

review: Disapprove

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_asset/account_asset.py'
2--- account_asset/account_asset.py 2011-05-27 14:50:49 +0000
3+++ account_asset/account_asset.py 2011-05-30 11:03:48 +0000
4@@ -58,6 +58,7 @@
5
6 account_asset_category()
7
8+
9 #class one2many_mod_asset(fields.one2many):
10 #
11 # def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None):
12@@ -174,13 +175,14 @@
13 'active': fields.boolean('Active', select=2),
14 'partner_id': fields.many2one('res.partner', 'Partner'),
15
16- 'method': fields.selection([('linear','Linear'),('progressif','Progressive')], 'Computation method', required=True, readonly=True, states={'draft':[('readonly',False)]}),
17- 'method_delay': fields.integer('During (interval)', readonly=True, states={'draft':[('readonly',False)]}),
18- 'method_period': fields.integer('Depre. all (period)', readonly=True, states={'draft':[('readonly',False)]}),
19+ 'method': fields.selection([('linear','Linear'),('progressif','Progressive')], 'Computation Method', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="Linear: Calculated on basis of Gross Value/During (interval) \
20+ \nProgressive: Calculated on basis of Gross Value * Progressif Factor"),
21+ 'method_delay': fields.integer('During (interval)', readonly=True, states={'draft':[('readonly',False)]}, help="Calculates Depreciation within specified interval"),
22+ 'method_period': fields.integer('Depre. All (period)', readonly=True, states={'draft':[('readonly',False)]}),
23 'method_end': fields.date('Ending date'),
24 'method_progress_factor': fields.float('Progressif Factor', readonly=True, states={'draft':[('readonly',False)]}),
25 'value_residual': fields.function(_amount_residual, method=True, digits_compute=dp.get_precision('Account'), string='Residual Value'),
26- 'method_time': fields.selection([('delay','Delay'),('end','Ending Period')], 'Time Method', required=True, readonly=True, states={'draft':[('readonly',False)]}),
27+ 'method_time': fields.selection([('delay','Delay'),('end','Ending Period')], 'Time Method', required=True, readonly=True, states={'draft':[('readonly',False)]}, help="Delay: Allow users to enter number of periods to generate depreciation lines \n Ending Period: Calculates depreciation lines on the basis of every 12 months"),
28 'prorata':fields.boolean('Prorata Temporis', Readonly="True", help='Indicates that the accounting entries for this asset have to be done from the purchase date instead of the first January'),
29 'history_ids': fields.one2many('account.asset.history', 'asset_id', 'History', readonly=True),
30 'depreciation_line_ids': fields.one2many('account.asset.depreciation.line', 'asset_id', 'Depreciation Lines', readonly=True,),
31
32=== modified file 'account_asset/account_asset_invoice.py'
33--- account_asset/account_asset_invoice.py 2011-05-27 13:38:54 +0000
34+++ account_asset/account_asset_invoice.py 2011-05-30 11:03:48 +0000
35@@ -38,19 +38,15 @@
36 def move_line_get_item(self, cr, uid, line, context={}):
37 asset_obj = self.pool.get('account.asset.asset')
38 res = super(account_invoice_line, self).move_line_get_item(cr, uid, line, context)
39- if line.invoice_id and line.invoice_id.type not in ('out_invoice', 'out_refund') and line.asset_category_id:
40- vals = {
41- 'name': line.product_id and (line.name + ": " + line.product_id.name) or line.name,
42- 'category_id': line.asset_category_id.id,
43- 'purchase_value': line.price_subtotal,
44- 'period_id': line.invoice_id.period_id.id,
45- 'partner_id': line.invoice_id.partner_id.id,
46- 'company_id': line.invoice_id.company_id.id,
47- 'currency_id': line.invoice_id.currency_id.id,
48- }
49- asset_id = asset_obj.create(cr, uid, vals, context=context)
50- if line.asset_category_id.open_asset:
51- asset_obj.validate(cr, uid, [asset_id], context=context)
52+ if line.asset_category_id:
53+ vals = {
54+ 'name': line.product_id and (line.name + ": " + line.product_id.name) or line.name,
55+ 'category_id': line.asset_category_id.id,
56+ 'purchase_value': line.price_subtotal
57+ }
58+ asset_id = asset_obj.create(cr, uid, vals, context=context)
59+ if line.asset_category_id.open_asset:
60+ asset_obj.validate(cr, uid, [asset_id], context=context)
61 return res
62 account_invoice_line()
63
64
65=== modified file 'account_asset/account_asset_view.xml'
66--- account_asset/account_asset_view.xml 2011-05-27 13:49:30 +0000
67+++ account_asset/account_asset_view.xml 2011-05-30 11:03:48 +0000
68@@ -1,7 +1,6 @@
69 <?xml version="1.0"?>
70 <openerp>
71 <data>
72-
73 <record model="ir.ui.view" id="view_account_asset_category_form">
74 <field name="name">account.asset.category.form</field>
75 <field name="model">account.asset.category</field>
76@@ -76,7 +75,8 @@
77 <separator string="Other Information" colspan="4"/>
78 <field name="partner_id"/>
79 <field name="purchase_date"/>
80- <separator string="Depreciation duration" colspan="4"/>
81+ <separator string="Depreciation Dates" colspan="2" />
82+ <separator string="Depreciation Method" colspan="2" />
83 <button
84 name="%(wizard_asset_modify)d"
85 states="open"
86@@ -84,13 +84,21 @@
87 type="action"
88 colspan="2"/>
89 <newline/>
90- <field name="method"/>
91- <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
92- <newline/>
93- <field name="method_time"/>
94- <field name="method_period" attrs="{'invisible':[('method_time','=','end')]}"/>
95- <field name="prorata" colspan="1"/>
96- <field name="method_delay"/>
97+ <group colspan="2" col="2">
98+ <field name="method_time"/>
99+ <field name="method_delay"/>
100+ <field name="method_period" attrs="{'invisible':[('method_time','=','end')]}"/>
101+ </group>
102+ <group colspan="2" col="3">
103+ <field name="method"/>
104+ <newline/>
105+ <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
106+ <newline/>
107+ <field name="prorata" colspan="1"/>
108+ </group>
109+ <group colspan="4">
110+ <field name="state" readonly="1"/>
111+ </group>
112 <newline/>
113 </page>
114 <page string="Depreciation board">
115@@ -120,9 +128,8 @@
116 <field name="note" nolabel="1"/>
117 </page>
118 </notebook>
119- <field name="state" readonly="1"/>
120 <group colspan="2" col="2">
121- <button name="validate" states="draft" string="Confirm asset" type="object"/>
122+ <button name="validate" states="draft" string="Confirm Asset" type="object" icon="gtk-yes"/>
123 </group>
124 </form>
125 </field>

Subscribers

People subscribed via source and target branches