fix merge
This commit is contained in:
parent
f79b186870
commit
430732d3ec
3 changed files with 5 additions and 41 deletions
|
@ -17,15 +17,10 @@ from trytond.exceptions import UserError
|
|||
def set_invoice_sequences(fiscalyear):
|
||||
pool = Pool()
|
||||
Sequence = pool.get('ir.sequence.strict')
|
||||
SequenceType = pool.get('ir.sequence.type')
|
||||
InvoiceSequence = pool.get('account.fiscalyear.invoice_sequence')
|
||||
ModelData = pool.get('ir.model.data')
|
||||
|
||||
sequence = Sequence(
|
||||
name=fiscalyear.name,
|
||||
sequence_type=SequenceType(ModelData.get_id(
|
||||
'account_invoice', 'sequence_type_account_invoice')),
|
||||
company=fiscalyear.company)
|
||||
sequence = Sequence(name=fiscalyear.name, code='account.invoice')
|
||||
sequence.company = fiscalyear.company
|
||||
sequence.save()
|
||||
fiscalyear.invoice_sequences = []
|
||||
invoice_sequence = InvoiceSequence()
|
||||
|
@ -105,7 +100,7 @@ class EdocTestCase(ModuleTestCase):
|
|||
'addresses': [('create', [{
|
||||
'invoice': True,
|
||||
'street': 'Customer Street 1',
|
||||
'postal_code': '12345',
|
||||
'zip': '12345',
|
||||
'city': 'Usertown',
|
||||
'country': country_de.id,
|
||||
}])],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue