|
@ -76,7 +76,7 @@ class ReportAssembleXML(orm.Model): |
|
|
return res |
|
|
return res |
|
|
|
|
|
|
|
|
def create(self, cursor, user, vals, context=None): |
|
|
def create(self, cursor, user, vals, context=None): |
|
|
"Create report and register it" |
|
|
|
|
|
|
|
|
""" Create report and register it """ |
|
|
res = super(ReportAssembleXML, self).create(cursor, user, vals, context) |
|
|
res = super(ReportAssembleXML, self).create(cursor, user, vals, context) |
|
|
if vals.get('report_type', '') == 'assemblage': |
|
|
if vals.get('report_type', '') == 'assemblage': |
|
|
# I really look forward to virtual functions :S |
|
|
# I really look forward to virtual functions :S |
|
@ -86,7 +86,7 @@ class ReportAssembleXML(orm.Model): |
|
|
return res |
|
|
return res |
|
|
|
|
|
|
|
|
def write(self, cr, uid, ids, vals, context=None): |
|
|
def write(self, cr, uid, ids, vals, context=None): |
|
|
"Edit report and manage its registration" |
|
|
|
|
|
|
|
|
""" Edit report and manage its registration """ |
|
|
if isinstance(ids, (int, long)): |
|
|
if isinstance(ids, (int, long)): |
|
|
ids = [ids] |
|
|
ids = [ids] |
|
|
for rep in self.browse(cr, uid, ids, context=context): |
|
|
for rep in self.browse(cr, uid, ids, context=context): |
|
|