Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invoice copy_data to dont copy mail info #818

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions giscedata_facturacio_comer_som/giscedata_facturacio_factura.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ class GiscedataFacturacioFactura(osv.osv):
_name = 'giscedata.facturacio.factura'
_inherit = 'giscedata.facturacio.factura'

def copy_data(self, cr, uid, id, default=None, context=None):
if default is None:
default = {}
res, x = super(GiscedataFacturacioFactura, self).copy_data(
cr, uid, id, default, context
)
res.update({
'enviat_mail_id': False,
'enviat': False,
'enviat_data': False,
'enviat_carpeta': False,
})
return res, x

# Poweremails hooks
def poweremail_write_callback(self, cursor, uid, ids, vals, context=None):
res = True
Expand Down
Loading