Divyesh Makwana(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-908704-mdi into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #908704 in OpenERP Addons: "account_voucher - class res_company must be
defined first"
https://bugs.launchpad.net/openobject-addons/+bug/908704
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-908704-mdi/+merge/87069
Hello Sir,
I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/908704
"account_voucher - class res_company must be defined first".
Thanks and Regards,
Divyesh Makwana(MDI)
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-908704-mdi/+merge/87069
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-908704-mdi.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2011-12-21 13:10:28 +0000
+++ account_voucher/account_voucher.py 2011-12-29 10:51:25 +0000
@@ -27,6 +27,20 @@
import decimal_precision as dp
from tools.translate import _
+class res_company(osv.osv):
+ _inherit = "res.company"
+ _columns = {
+ 'income_currency_exchange_account_id': fields.many2one(
+ 'account.account',
+ string="Income Currency Rate",
+ domain="[('type', '=', 'other')]",),
+ 'expense_currency_exchange_account_id': fields.many2one(
+ 'account.account',
+ string="Expense Currency Rate",
+ domain="[('type', '=', 'other')]",),
+ }
+
+res_company()
class account_voucher(osv.osv):
def _check_paid(self, cr, uid, ids, name, args, context=None):
@@ -1482,19 +1496,6 @@
results.append(result)
return results
-class res_company(osv.osv):
- _inherit = "res.company"
- _columns = {
- 'income_currency_exchange_account_id': fields.many2one(
- 'account.account',
- string="Income Currency Rate",
- domain="[('type', '=', 'other')]",),
- 'expense_currency_exchange_account_id': fields.many2one(
- 'account.account',
- string="Expense Currency Rate",
- domain="[('type', '=', 'other')]",),
- }
-res_company()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
_______________________________________________
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