[REVERT]: Purchase: Reverted fixes of property field at revision:qdp-launchpad@openerp.com-20110707145832-xwdc0u3qhbaffehe, because it was referring to code of server that is not merged in server branch yet,
Need to wait to apply these changes UNTIL https://code.launchpad.net/~openerp-community/openobject-server/trunk-property-fields-using-get/+merge/67223 is getting merged in server bzr revid: rpa@tinyerp.com-20110708060411-c1w0s3rse0lebv2c
This commit is contained in:
parent
a505c35f8f
commit
2f28c34c70
|
@ -22,7 +22,6 @@
|
|||
import time
|
||||
from datetime import datetime
|
||||
from dateutil.relativedelta import relativedelta
|
||||
import tools
|
||||
|
||||
from osv import osv, fields
|
||||
import netsvc
|
||||
|
@ -346,17 +345,11 @@ class purchase_order(osv.osv):
|
|||
self.log(cr, uid, id, message)
|
||||
return True
|
||||
|
||||
def action_invoice_create(self, cr, uid, ids, context=None, *args):
|
||||
if context is None:
|
||||
context = {}
|
||||
def action_invoice_create(self, cr, uid, ids, *args):
|
||||
res = False
|
||||
|
||||
journal_obj = self.pool.get('account.journal')
|
||||
set_company = tools.get_and_sort_by_field(cr, uid, obj=self, ids=ids, field='company_id', context=context)
|
||||
for company_id, po_ids in set_company.items():
|
||||
ctx = context.copy()
|
||||
ctx.update({'force_company': company_id})
|
||||
for o in self.browse(cr, uid, po_ids, context=ctx):
|
||||
for o in self.browse(cr, uid, ids):
|
||||
il = []
|
||||
todo = []
|
||||
for ol in o.order_line:
|
||||
|
|
Loading…
Reference in New Issue