|
|
@ -76,7 +76,7 @@ class ReportAssembleXML(orm.Model): |
|
|
|
return res |
|
|
|
|
|
|
|
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) |
|
|
|
if vals.get('report_type', '') == 'assemblage': |
|
|
|
# I really look forward to virtual functions :S |
|
|
@ -86,7 +86,7 @@ class ReportAssembleXML(orm.Model): |
|
|
|
return res |
|
|
|
|
|
|
|
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)): |
|
|
|
ids = [ids] |
|
|
|
for rep in self.browse(cr, uid, ids, context=context): |
|
|
|