Merge lp:~openerp-dev/openobject-addons/trunk-bug-1163261-chandni into lp:openobject-addons

Proposed by Chandni Machchhar(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1163261-chandni
Merge into: lp:openobject-addons
Diff against target: 14 lines (+2/-2)
1 file modified
account_asset/account_asset_invoice.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1163261-chandni
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+157850@code.launchpad.net

Description of the change

Hello,

 I made the function definition uniform.

Thanks,
Chandni

To post a comment you must log in.
8665. By Chandni Machchhar(OpenERP)

[FIX] action_number function definition in account_asset.

Unmerged revisions

8665. By Chandni Machchhar(OpenERP)

[FIX] action_number function definition in account_asset.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_asset/account_asset_invoice.py'
2--- account_asset/account_asset_invoice.py 2012-12-06 14:56:32 +0000
3+++ account_asset/account_asset_invoice.py 2013-04-09 12:10:27 +0000
4@@ -24,8 +24,8 @@
5 class account_invoice(osv.osv):
6
7 _inherit = 'account.invoice'
8- def action_number(self, cr, uid, ids, *args):
9- result = super(account_invoice, self).action_number(cr, uid, ids, *args)
10+ def action_number(self, cr, uid, ids, context=None):
11+ result = super(account_invoice, self).action_number(cr, uid, ids, context=context)
12 for inv in self.browse(cr, uid, ids):
13 self.pool.get('account.invoice.line').asset_create(cr, uid, inv.invoice_line)
14 return result

Subscribers

People subscribed via source and target branches

to all changes: