59
59
:view_id => AccountJournalView.find(:first).id,
60
60
# Take the first sequence with 'Account Journal' code
61
61
:sequence_id => IrSequence.find(:first, :domain =>[['code','=','Account Journal']]).id,
63
:default_debit_account_id => AccountAccount.find(:first, :domain => [['type','=',type]]).id,
64
:default_credit_account_id => AccountAccount.find(:first, :domain => [['type','=',type]]).id,
63
:default_debit_account_id => AccountAccount.find(:first, :domain => [['type','=','other'],]).id,
64
:default_credit_account_id => AccountAccount.find(:first, :domain => [['type','=','other']]).id,
65
65
:currency => currency_id,
73
m=IrModuleModule.find(:first,:domain=>[['name','=','base']])