[IMP]account_analytic_analysis: set ids intes of id for write bcoz in project there is ids so fix the runbt traceback
bzr revid: dbr@tinyerp.com-20130304103055-qm3qr1nzuul3pd1b
This commit is contained in:
@@ -859,7 +859,7 @@ class account_analytic_account(osv.osv):
|
||||
new_date = next_date+relativedelta(days=+interval)
|
||||
elif contract.rrule_type == 'weekly':
|
||||
new_date = next_date+relativedelta(weeks=+interval)
|
||||
self.write(cr, uid, contract.id, {'next_date': new_date}, context=context)
|
||||
self.write(cr, uid, [contract.id], {'next_date': new_date}, context=context)
|
||||
return True
|
||||
|
||||
class account_analytic_account_summary_user(osv.osv):
|
||||
|
||||
@@ -5,11 +5,8 @@
|
||||
name: Loan EMI Agrement
|
||||
company_id: base.main_company
|
||||
partner_id: base.main_partner
|
||||
date_start: !eval time.strftime('%Y-%m-%d')
|
||||
recurring_invoices : 1
|
||||
interval : 1
|
||||
rrule_type : monthly
|
||||
next_date : !eval time.strftime('%Y-%m-%d')
|
||||
invoice_line_ids:
|
||||
- product_id: product.product_product_consultant
|
||||
quantity: 1.0
|
||||
@@ -38,7 +35,7 @@
|
||||
self._amount_all(cr, uid, [contract_id], '', {}, {})
|
||||
template = self.browse(cr, uid, ref('account_analytic_account_0'))
|
||||
res = self.on_change_template(cr, uid, contract_id, template.id, {})
|
||||
self.write(cr, uid, contract_id, res['value'])
|
||||
self.write(cr, uid, [contract_id], res['value'])
|
||||
line_obj = self.pool.get('account.analytic.invoice.line')
|
||||
contract = self.browse(cr, uid, contract_id)
|
||||
assert template.partner_id.id == contract.partner_id.id or res['value']['partner_id'], "Customer of contract is not match with Contract Template"
|
||||
|
||||
Reference in New Issue
Block a user