[FIX] l10n_be_invoice_bba: we don't want to generate BBA communication for anything other than out_invoice
bzr revid: pl@agaplan.eu-20130731154838-pjygijihw5otkk4e
This commit is contained in:
parent
489c5df814
commit
58bdae20d5
|
@ -202,6 +202,7 @@ class account_invoice(osv.osv):
|
|||
def copy(self, cr, uid, ids, default=None, context=None):
|
||||
default = default or {}
|
||||
invoice = self.browse(cr, uid, ids, context=context)
|
||||
if invoice.type in ['out_invoice']:
|
||||
reference_type = invoice.reference_type or 'none'
|
||||
default['reference_type'] = reference_type
|
||||
if reference_type == 'bba':
|
||||
|
|
Loading…
Reference in New Issue