Skip to content

Commit 8fcffe5

Browse files
authored
Merge pull request #818 from Som-Energia/fix_abonament_mail
Fix invoice copy_data to dont copy mail info
2 parents 4952e78 + 982026f commit 8fcffe5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

giscedata_facturacio_comer_som/giscedata_facturacio_factura.py

+14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ class GiscedataFacturacioFactura(osv.osv):
1515
_name = 'giscedata.facturacio.factura'
1616
_inherit = 'giscedata.facturacio.factura'
1717

18+
def copy_data(self, cr, uid, id, default=None, context=None):
19+
if default is None:
20+
default = {}
21+
res, x = super(GiscedataFacturacioFactura, self).copy_data(
22+
cr, uid, id, default, context
23+
)
24+
res.update({
25+
'enviat_mail_id': False,
26+
'enviat': False,
27+
'enviat_data': False,
28+
'enviat_carpeta': False,
29+
})
30+
return res, x
31+
1832
# Poweremails hooks
1933
def poweremail_write_callback(self, cursor, uid, ids, vals, context=None):
2034
res = True

0 commit comments

Comments
 (0)