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
=== modified file 'account_asset/account_asset.py'
--- account_asset/account_asset.py 2011-05-27 14:50:49 +0000
+++ account_asset/account_asset.py 2011-05-30 11:03:48 +0000
@@ -58,6 +58,7 @@
5858
59account_asset_category()59account_asset_category()
6060
61
61#class one2many_mod_asset(fields.one2many):62#class one2many_mod_asset(fields.one2many):
62#63#
63# def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None):64# def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None):
@@ -174,13 +175,14 @@
174 'active': fields.boolean('Active', select=2),175 'active': fields.boolean('Active', select=2),
175 'partner_id': fields.many2one('res.partner', 'Partner'),176 'partner_id': fields.many2one('res.partner', 'Partner'),
176177
177 'method': fields.selection([('linear','Linear'),('progressif','Progressive')], 'Computation method', required=True, readonly=True, states={'draft':[('readonly',False)]}),178 '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) \
178 'method_delay': fields.integer('During (interval)', readonly=True, states={'draft':[('readonly',False)]}),179 \nProgressive: Calculated on basis of Gross Value * Progressif Factor"),
179 'method_period': fields.integer('Depre. all (period)', readonly=True, states={'draft':[('readonly',False)]}),180 'method_delay': fields.integer('During (interval)', readonly=True, states={'draft':[('readonly',False)]}, help="Calculates Depreciation within specified interval"),
181 'method_period': fields.integer('Depre. All (period)', readonly=True, states={'draft':[('readonly',False)]}),
180 'method_end': fields.date('Ending date'),182 'method_end': fields.date('Ending date'),
181 'method_progress_factor': fields.float('Progressif Factor', readonly=True, states={'draft':[('readonly',False)]}),183 'method_progress_factor': fields.float('Progressif Factor', readonly=True, states={'draft':[('readonly',False)]}),
182 'value_residual': fields.function(_amount_residual, method=True, digits_compute=dp.get_precision('Account'), string='Residual Value'),184 'value_residual': fields.function(_amount_residual, method=True, digits_compute=dp.get_precision('Account'), string='Residual Value'),
183 'method_time': fields.selection([('delay','Delay'),('end','Ending Period')], 'Time Method', required=True, readonly=True, states={'draft':[('readonly',False)]}),185 '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"),
184 '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'),186 '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'),
185 'history_ids': fields.one2many('account.asset.history', 'asset_id', 'History', readonly=True),187 'history_ids': fields.one2many('account.asset.history', 'asset_id', 'History', readonly=True),
186 'depreciation_line_ids': fields.one2many('account.asset.depreciation.line', 'asset_id', 'Depreciation Lines', readonly=True,),188 'depreciation_line_ids': fields.one2many('account.asset.depreciation.line', 'asset_id', 'Depreciation Lines', readonly=True,),
187189
=== modified file 'account_asset/account_asset_invoice.py'
--- account_asset/account_asset_invoice.py 2011-05-27 13:38:54 +0000
+++ account_asset/account_asset_invoice.py 2011-05-30 11:03:48 +0000
@@ -38,19 +38,15 @@
38 def move_line_get_item(self, cr, uid, line, context={}):38 def move_line_get_item(self, cr, uid, line, context={}):
39 asset_obj = self.pool.get('account.asset.asset')39 asset_obj = self.pool.get('account.asset.asset')
40 res = super(account_invoice_line, self).move_line_get_item(cr, uid, line, context)40 res = super(account_invoice_line, self).move_line_get_item(cr, uid, line, context)
41 if line.invoice_id and line.invoice_id.type not in ('out_invoice', 'out_refund') and line.asset_category_id:41 if line.asset_category_id:
42 vals = {42 vals = {
43 'name': line.product_id and (line.name + ": " + line.product_id.name) or line.name,43 'name': line.product_id and (line.name + ": " + line.product_id.name) or line.name,
44 'category_id': line.asset_category_id.id,44 'category_id': line.asset_category_id.id,
45 'purchase_value': line.price_subtotal,45 'purchase_value': line.price_subtotal
46 'period_id': line.invoice_id.period_id.id,46 }
47 'partner_id': line.invoice_id.partner_id.id,47 asset_id = asset_obj.create(cr, uid, vals, context=context)
48 'company_id': line.invoice_id.company_id.id,48 if line.asset_category_id.open_asset:
49 'currency_id': line.invoice_id.currency_id.id,49 asset_obj.validate(cr, uid, [asset_id], context=context)
50 }
51 asset_id = asset_obj.create(cr, uid, vals, context=context)
52 if line.asset_category_id.open_asset:
53 asset_obj.validate(cr, uid, [asset_id], context=context)
54 return res50 return res
55account_invoice_line()51account_invoice_line()
5652
5753
=== modified file 'account_asset/account_asset_view.xml'
--- account_asset/account_asset_view.xml 2011-05-27 13:49:30 +0000
+++ account_asset/account_asset_view.xml 2011-05-30 11:03:48 +0000
@@ -1,7 +1,6 @@
1<?xml version="1.0"?>1<?xml version="1.0"?>
2<openerp>2<openerp>
3<data>3<data>
4
5 <record model="ir.ui.view" id="view_account_asset_category_form">4 <record model="ir.ui.view" id="view_account_asset_category_form">
6 <field name="name">account.asset.category.form</field>5 <field name="name">account.asset.category.form</field>
7 <field name="model">account.asset.category</field>6 <field name="model">account.asset.category</field>
@@ -76,7 +75,8 @@
76 <separator string="Other Information" colspan="4"/>75 <separator string="Other Information" colspan="4"/>
77 <field name="partner_id"/>76 <field name="partner_id"/>
78 <field name="purchase_date"/>77 <field name="purchase_date"/>
79 <separator string="Depreciation duration" colspan="4"/>78 <separator string="Depreciation Dates" colspan="2" />
79 <separator string="Depreciation Method" colspan="2" />
80 <button 80 <button
81 name="%(wizard_asset_modify)d" 81 name="%(wizard_asset_modify)d"
82 states="open" 82 states="open"
@@ -84,13 +84,21 @@
84 type="action" 84 type="action"
85 colspan="2"/>85 colspan="2"/>
86 <newline/>86 <newline/>
87 <field name="method"/>87 <group colspan="2" col="2">
88 <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>88 <field name="method_time"/>
89 <newline/>89 <field name="method_delay"/>
90 <field name="method_time"/>90 <field name="method_period" attrs="{'invisible':[('method_time','=','end')]}"/>
91 <field name="method_period" attrs="{'invisible':[('method_time','=','end')]}"/>91 </group>
92 <field name="prorata" colspan="1"/>92 <group colspan="2" col="3">
93 <field name="method_delay"/>93 <field name="method"/>
94 <newline/>
95 <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
96 <newline/>
97 <field name="prorata" colspan="1"/>
98 </group>
99 <group colspan="4">
100 <field name="state" readonly="1"/>
101 </group>
94 <newline/>102 <newline/>
95 </page>103 </page>
96 <page string="Depreciation board">104 <page string="Depreciation board">
@@ -120,9 +128,8 @@
120 <field name="note" nolabel="1"/>128 <field name="note" nolabel="1"/>
121 </page> 129 </page>
122 </notebook>130 </notebook>
123 <field name="state" readonly="1"/>
124 <group colspan="2" col="2">131 <group colspan="2" col="2">
125 <button name="validate" states="draft" string="Confirm asset" type="object"/>132 <button name="validate" states="draft" string="Confirm Asset" type="object" icon="gtk-yes"/>
126 </group>133 </group>
127 </form>134 </form>
128 </field>135 </field>

Subscribers

People subscribed via source and target branches