level -= 1
return True
+class res_company(osv.osv):
+ _inherit = "res.company"
+ _columns = {
+ 'income_currency_exchange_account_id': fields.many2one(
+ 'account.account',
+ string="Gain Exchange Rate Account",
+ domain="[('type', '=', 'other')]",),
+ 'expense_currency_exchange_account_id': fields.many2one(
+ 'account.account',
+ string="Loss Exchange Rate Account",
+ domain="[('type', '=', 'other')]",),
+ }
+
class account_payment_term(osv.osv):
_name = "account.payment.term"
_description = "Payment Term"
if not total:
self.pool.get('account.move.line').write(cr, uid,
map(lambda x: x.id, rec.line_partial_ids),
- {'reconcile_id': rec.id }
+ {'reconcile_id': rec.id },
+ context=context
)
return True