Amit Parik (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1018871-amp into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1018871 in OpenERP Addons: "account.addtmpl.wizard has no defined 
_rec_name"
  https://bugs.launchpad.net/openobject-addons/+bug/1018871

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1018871-amp/+merge/115023

Hello,

This branch improve some object with _rec_name.

Thanks!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1018871-amp/+merge/115023
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1018871-amp.
=== modified file 'account/account.py'
--- account/account.py	2012-07-11 09:07:53 +0000
+++ account/account.py	2012-07-15 09:27:21 +0000
@@ -2605,7 +2605,8 @@
 
     With the 'nocreate' option, some accounts may not be created. Use this to add them later."""
     _name = 'account.addtmpl.wizard'
-
+    _rec_name = 'cparent_id'
+    
     def _get_def_cparent(self, cr, uid, context=None):
         acc_obj = self.pool.get('account.account')
         tmpl_obj = self.pool.get('account.account.template')

=== modified file 'account/wizard/account_report_aged_partner_balance.py'
--- account/wizard/account_report_aged_partner_balance.py	2011-10-16 01:28:00 +0000
+++ account/wizard/account_report_aged_partner_balance.py	2012-07-15 09:27:21 +0000
@@ -28,6 +28,7 @@
 class account_aged_trial_balance(osv.osv_memory):
     _inherit = 'account.common.partner.report'
     _name = 'account.aged.trial.balance'
+    _rec_name = 'period_length'
     _description = 'Account Aged Trial balance Report'
 
     _columns = {

=== modified file 'account/wizard/account_report_partner_balance.py'
--- account/wizard/account_report_partner_balance.py	2011-10-16 01:28:00 +0000
+++ account/wizard/account_report_partner_balance.py	2012-07-15 09:27:21 +0000
@@ -27,6 +27,7 @@
     """
     _inherit = 'account.common.partner.report'
     _name = 'account.partner.balance'
+    _rec_name = 'display_partner'
     _description = 'Print Account Partner Balance'
     _columns = {
         'display_partner': fields.selection([('non-zero_balance', 'With balance is not equal to 0'), ('all', 'All Partners')]

=== modified file 'account/wizard/account_report_partner_ledger.py'
--- account/wizard/account_report_partner_ledger.py	2011-10-16 01:28:00 +0000
+++ account/wizard/account_report_partner_ledger.py	2012-07-15 09:27:21 +0000
@@ -27,6 +27,7 @@
     """
     _name = 'account.partner.ledger'
     _inherit = 'account.common.partner.report'
+    _rec_name = 'initial_balance'
     _description = 'Account Partner Ledger'
 
     _columns = {

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to