Skip to content

Commit

Permalink
changed create single instance method in template
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuret committed Apr 13, 2023
1 parent a516d73 commit f26c354
Show file tree
Hide file tree
Showing 357 changed files with 356 additions and 356 deletions.
2 changes: 1 addition & 1 deletion account_abstract_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (aap *AccountAbstractPayment) Many2One() *Many2One {

// CreateAccountAbstractPayment creates a new account.abstract.payment model and returns its id.
func (c *Client) CreateAccountAbstractPayment(aap *AccountAbstractPayment) (int64, error) {
ids, err := c.Create(AccountAbstractPaymentModel, []interface{}{aap})
ids, err := c.CreateAccountAbstractPayments([]*AccountAbstractPayment{aap})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (aa *AccountAccount) Many2One() *Many2One {

// CreateAccountAccount creates a new account.account model and returns its id.
func (c *Client) CreateAccountAccount(aa *AccountAccount) (int64, error) {
ids, err := c.Create(AccountAccountModel, []interface{}{aa})
ids, err := c.CreateAccountAccounts([]*AccountAccount{aa})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_account_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (aat *AccountAccountTag) Many2One() *Many2One {

// CreateAccountAccountTag creates a new account.account.tag model and returns its id.
func (c *Client) CreateAccountAccountTag(aat *AccountAccountTag) (int64, error) {
ids, err := c.Create(AccountAccountTagModel, []interface{}{aat})
ids, err := c.CreateAccountAccountTags([]*AccountAccountTag{aat})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_account_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (aat *AccountAccountTemplate) Many2One() *Many2One {

// CreateAccountAccountTemplate creates a new account.account.template model and returns its id.
func (c *Client) CreateAccountAccountTemplate(aat *AccountAccountTemplate) (int64, error) {
ids, err := c.Create(AccountAccountTemplateModel, []interface{}{aat})
ids, err := c.CreateAccountAccountTemplates([]*AccountAccountTemplate{aat})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_account_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (aat *AccountAccountType) Many2One() *Many2One {

// CreateAccountAccountType creates a new account.account.type model and returns its id.
func (c *Client) CreateAccountAccountType(aat *AccountAccountType) (int64, error) {
ids, err := c.Create(AccountAccountTypeModel, []interface{}{aat})
ids, err := c.CreateAccountAccountTypes([]*AccountAccountType{aat})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_aged_trial_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (aatb *AccountAgedTrialBalance) Many2One() *Many2One {

// CreateAccountAgedTrialBalance creates a new account.aged.trial.balance model and returns its id.
func (c *Client) CreateAccountAgedTrialBalance(aatb *AccountAgedTrialBalance) (int64, error) {
ids, err := c.Create(AccountAgedTrialBalanceModel, []interface{}{aatb})
ids, err := c.CreateAccountAgedTrialBalances([]*AccountAgedTrialBalance{aatb})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_analytic_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (aaa *AccountAnalyticAccount) Many2One() *Many2One {

// CreateAccountAnalyticAccount creates a new account.analytic.account model and returns its id.
func (c *Client) CreateAccountAnalyticAccount(aaa *AccountAnalyticAccount) (int64, error) {
ids, err := c.Create(AccountAnalyticAccountModel, []interface{}{aaa})
ids, err := c.CreateAccountAnalyticAccounts([]*AccountAnalyticAccount{aaa})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_analytic_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (aal *AccountAnalyticLine) Many2One() *Many2One {

// CreateAccountAnalyticLine creates a new account.analytic.line model and returns its id.
func (c *Client) CreateAccountAnalyticLine(aal *AccountAnalyticLine) (int64, error) {
ids, err := c.Create(AccountAnalyticLineModel, []interface{}{aal})
ids, err := c.CreateAccountAnalyticLines([]*AccountAnalyticLine{aal})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_analytic_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (aat *AccountAnalyticTag) Many2One() *Many2One {

// CreateAccountAnalyticTag creates a new account.analytic.tag model and returns its id.
func (c *Client) CreateAccountAnalyticTag(aat *AccountAnalyticTag) (int64, error) {
ids, err := c.Create(AccountAnalyticTagModel, []interface{}{aat})
ids, err := c.CreateAccountAnalyticTags([]*AccountAnalyticTag{aat})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_balance_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (abr *AccountBalanceReport) Many2One() *Many2One {

// CreateAccountBalanceReport creates a new account.balance.report model and returns its id.
func (c *Client) CreateAccountBalanceReport(abr *AccountBalanceReport) (int64, error) {
ids, err := c.Create(AccountBalanceReportModel, []interface{}{abr})
ids, err := c.CreateAccountBalanceReports([]*AccountBalanceReport{abr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_accounts_wizard.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (abaw *AccountBankAccountsWizard) Many2One() *Many2One {

// CreateAccountBankAccountsWizard creates a new account.bank.accounts.wizard model and returns its id.
func (c *Client) CreateAccountBankAccountsWizard(abaw *AccountBankAccountsWizard) (int64, error) {
ids, err := c.Create(AccountBankAccountsWizardModel, []interface{}{abaw})
ids, err := c.CreateAccountBankAccountsWizards([]*AccountBankAccountsWizard{abaw})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (abs *AccountBankStatement) Many2One() *Many2One {

// CreateAccountBankStatement creates a new account.bank.statement model and returns its id.
func (c *Client) CreateAccountBankStatement(abs *AccountBankStatement) (int64, error) {
ids, err := c.Create(AccountBankStatementModel, []interface{}{abs})
ids, err := c.CreateAccountBankStatements([]*AccountBankStatement{abs})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_statement_cashbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (absc *AccountBankStatementCashbox) Many2One() *Many2One {

// CreateAccountBankStatementCashbox creates a new account.bank.statement.cashbox model and returns its id.
func (c *Client) CreateAccountBankStatementCashbox(absc *AccountBankStatementCashbox) (int64, error) {
ids, err := c.Create(AccountBankStatementCashboxModel, []interface{}{absc})
ids, err := c.CreateAccountBankStatementCashboxs([]*AccountBankStatementCashbox{absc})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_statement_closebalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (absc *AccountBankStatementClosebalance) Many2One() *Many2One {

// CreateAccountBankStatementClosebalance creates a new account.bank.statement.closebalance model and returns its id.
func (c *Client) CreateAccountBankStatementClosebalance(absc *AccountBankStatementClosebalance) (int64, error) {
ids, err := c.Create(AccountBankStatementClosebalanceModel, []interface{}{absc})
ids, err := c.CreateAccountBankStatementClosebalances([]*AccountBankStatementClosebalance{absc})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_statement_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (absi *AccountBankStatementImport) Many2One() *Many2One {

// CreateAccountBankStatementImport creates a new account.bank.statement.import model and returns its id.
func (c *Client) CreateAccountBankStatementImport(absi *AccountBankStatementImport) (int64, error) {
ids, err := c.Create(AccountBankStatementImportModel, []interface{}{absi})
ids, err := c.CreateAccountBankStatementImports([]*AccountBankStatementImport{absi})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_statement_import_journal_creation.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (absijc *AccountBankStatementImportJournalCreation) Many2One() *Many2One {

// CreateAccountBankStatementImportJournalCreation creates a new account.bank.statement.import.journal.creation model and returns its id.
func (c *Client) CreateAccountBankStatementImportJournalCreation(absijc *AccountBankStatementImportJournalCreation) (int64, error) {
ids, err := c.Create(AccountBankStatementImportJournalCreationModel, []interface{}{absijc})
ids, err := c.CreateAccountBankStatementImportJournalCreations([]*AccountBankStatementImportJournalCreation{absijc})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_bank_statement_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (absl *AccountBankStatementLine) Many2One() *Many2One {

// CreateAccountBankStatementLine creates a new account.bank.statement.line model and returns its id.
func (c *Client) CreateAccountBankStatementLine(absl *AccountBankStatementLine) (int64, error) {
ids, err := c.Create(AccountBankStatementLineModel, []interface{}{absl})
ids, err := c.CreateAccountBankStatementLines([]*AccountBankStatementLine{absl})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_cash_rounding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (acr *AccountCashRounding) Many2One() *Many2One {

// CreateAccountCashRounding creates a new account.cash.rounding model and returns its id.
func (c *Client) CreateAccountCashRounding(acr *AccountCashRounding) (int64, error) {
ids, err := c.Create(AccountCashRoundingModel, []interface{}{acr})
ids, err := c.CreateAccountCashRoundings([]*AccountCashRounding{acr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_cashbox_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (acl *AccountCashboxLine) Many2One() *Many2One {

// CreateAccountCashboxLine creates a new account.cashbox.line model and returns its id.
func (c *Client) CreateAccountCashboxLine(acl *AccountCashboxLine) (int64, error) {
ids, err := c.Create(AccountCashboxLineModel, []interface{}{acl})
ids, err := c.CreateAccountCashboxLines([]*AccountCashboxLine{acl})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_chart_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (act *AccountChartTemplate) Many2One() *Many2One {

// CreateAccountChartTemplate creates a new account.chart.template model and returns its id.
func (c *Client) CreateAccountChartTemplate(act *AccountChartTemplate) (int64, error) {
ids, err := c.Create(AccountChartTemplateModel, []interface{}{act})
ids, err := c.CreateAccountChartTemplates([]*AccountChartTemplate{act})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_common_account_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (acar *AccountCommonAccountReport) Many2One() *Many2One {

// CreateAccountCommonAccountReport creates a new account.common.account.report model and returns its id.
func (c *Client) CreateAccountCommonAccountReport(acar *AccountCommonAccountReport) (int64, error) {
ids, err := c.Create(AccountCommonAccountReportModel, []interface{}{acar})
ids, err := c.CreateAccountCommonAccountReports([]*AccountCommonAccountReport{acar})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_common_journal_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (acjr *AccountCommonJournalReport) Many2One() *Many2One {

// CreateAccountCommonJournalReport creates a new account.common.journal.report model and returns its id.
func (c *Client) CreateAccountCommonJournalReport(acjr *AccountCommonJournalReport) (int64, error) {
ids, err := c.Create(AccountCommonJournalReportModel, []interface{}{acjr})
ids, err := c.CreateAccountCommonJournalReports([]*AccountCommonJournalReport{acjr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_common_partner_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (acpr *AccountCommonPartnerReport) Many2One() *Many2One {

// CreateAccountCommonPartnerReport creates a new account.common.partner.report model and returns its id.
func (c *Client) CreateAccountCommonPartnerReport(acpr *AccountCommonPartnerReport) (int64, error) {
ids, err := c.Create(AccountCommonPartnerReportModel, []interface{}{acpr})
ids, err := c.CreateAccountCommonPartnerReports([]*AccountCommonPartnerReport{acpr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_common_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (acr *AccountCommonReport) Many2One() *Many2One {

// CreateAccountCommonReport creates a new account.common.report model and returns its id.
func (c *Client) CreateAccountCommonReport(acr *AccountCommonReport) (int64, error) {
ids, err := c.Create(AccountCommonReportModel, []interface{}{acr})
ids, err := c.CreateAccountCommonReports([]*AccountCommonReport{acr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_financial_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (afr *AccountFinancialReport) Many2One() *Many2One {

// CreateAccountFinancialReport creates a new account.financial.report model and returns its id.
func (c *Client) CreateAccountFinancialReport(afr *AccountFinancialReport) (int64, error) {
ids, err := c.Create(AccountFinancialReportModel, []interface{}{afr})
ids, err := c.CreateAccountFinancialReports([]*AccountFinancialReport{afr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_financial_year_op.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (afyo *AccountFinancialYearOp) Many2One() *Many2One {

// CreateAccountFinancialYearOp creates a new account.financial.year.op model and returns its id.
func (c *Client) CreateAccountFinancialYearOp(afyo *AccountFinancialYearOp) (int64, error) {
ids, err := c.Create(AccountFinancialYearOpModel, []interface{}{afyo})
ids, err := c.CreateAccountFinancialYearOps([]*AccountFinancialYearOp{afyo})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fiscal_position.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (afp *AccountFiscalPosition) Many2One() *Many2One {

// CreateAccountFiscalPosition creates a new account.fiscal.position model and returns its id.
func (c *Client) CreateAccountFiscalPosition(afp *AccountFiscalPosition) (int64, error) {
ids, err := c.Create(AccountFiscalPositionModel, []interface{}{afp})
ids, err := c.CreateAccountFiscalPositions([]*AccountFiscalPosition{afp})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fiscal_position_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (afpa *AccountFiscalPositionAccount) Many2One() *Many2One {

// CreateAccountFiscalPositionAccount creates a new account.fiscal.position.account model and returns its id.
func (c *Client) CreateAccountFiscalPositionAccount(afpa *AccountFiscalPositionAccount) (int64, error) {
ids, err := c.Create(AccountFiscalPositionAccountModel, []interface{}{afpa})
ids, err := c.CreateAccountFiscalPositionAccounts([]*AccountFiscalPositionAccount{afpa})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fiscal_position_account_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (afpat *AccountFiscalPositionAccountTemplate) Many2One() *Many2One {

// CreateAccountFiscalPositionAccountTemplate creates a new account.fiscal.position.account.template model and returns its id.
func (c *Client) CreateAccountFiscalPositionAccountTemplate(afpat *AccountFiscalPositionAccountTemplate) (int64, error) {
ids, err := c.Create(AccountFiscalPositionAccountTemplateModel, []interface{}{afpat})
ids, err := c.CreateAccountFiscalPositionAccountTemplates([]*AccountFiscalPositionAccountTemplate{afpat})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fiscal_position_tax.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (afpt *AccountFiscalPositionTax) Many2One() *Many2One {

// CreateAccountFiscalPositionTax creates a new account.fiscal.position.tax model and returns its id.
func (c *Client) CreateAccountFiscalPositionTax(afpt *AccountFiscalPositionTax) (int64, error) {
ids, err := c.Create(AccountFiscalPositionTaxModel, []interface{}{afpt})
ids, err := c.CreateAccountFiscalPositionTaxs([]*AccountFiscalPositionTax{afpt})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fiscal_position_tax_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (afptt *AccountFiscalPositionTaxTemplate) Many2One() *Many2One {

// CreateAccountFiscalPositionTaxTemplate creates a new account.fiscal.position.tax.template model and returns its id.
func (c *Client) CreateAccountFiscalPositionTaxTemplate(afptt *AccountFiscalPositionTaxTemplate) (int64, error) {
ids, err := c.Create(AccountFiscalPositionTaxTemplateModel, []interface{}{afptt})
ids, err := c.CreateAccountFiscalPositionTaxTemplates([]*AccountFiscalPositionTaxTemplate{afptt})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fiscal_position_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (afpt *AccountFiscalPositionTemplate) Many2One() *Many2One {

// CreateAccountFiscalPositionTemplate creates a new account.fiscal.position.template model and returns its id.
func (c *Client) CreateAccountFiscalPositionTemplate(afpt *AccountFiscalPositionTemplate) (int64, error) {
ids, err := c.Create(AccountFiscalPositionTemplateModel, []interface{}{afpt})
ids, err := c.CreateAccountFiscalPositionTemplates([]*AccountFiscalPositionTemplate{afpt})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_fr_fec.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (aff *AccountFrFec) Many2One() *Many2One {

// CreateAccountFrFec creates a new account.fr.fec model and returns its id.
func (c *Client) CreateAccountFrFec(aff *AccountFrFec) (int64, error) {
ids, err := c.Create(AccountFrFecModel, []interface{}{aff})
ids, err := c.CreateAccountFrFecs([]*AccountFrFec{aff})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_full_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (afr *AccountFullReconcile) Many2One() *Many2One {

// CreateAccountFullReconcile creates a new account.full.reconcile model and returns its id.
func (c *Client) CreateAccountFullReconcile(afr *AccountFullReconcile) (int64, error) {
ids, err := c.Create(AccountFullReconcileModel, []interface{}{afr})
ids, err := c.CreateAccountFullReconciles([]*AccountFullReconcile{afr})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (ag *AccountGroup) Many2One() *Many2One {

// CreateAccountGroup creates a new account.group model and returns its id.
func (c *Client) CreateAccountGroup(ag *AccountGroup) (int64, error) {
ids, err := c.Create(AccountGroupModel, []interface{}{ag})
ids, err := c.CreateAccountGroups([]*AccountGroup{ag})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (ai *AccountInvoice) Many2One() *Many2One {

// CreateAccountInvoice creates a new account.invoice model and returns its id.
func (c *Client) CreateAccountInvoice(ai *AccountInvoice) (int64, error) {
ids, err := c.Create(AccountInvoiceModel, []interface{}{ai})
ids, err := c.CreateAccountInvoices([]*AccountInvoice{ai})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_confirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (aic *AccountInvoiceConfirm) Many2One() *Many2One {

// CreateAccountInvoiceConfirm creates a new account.invoice.confirm model and returns its id.
func (c *Client) CreateAccountInvoiceConfirm(aic *AccountInvoiceConfirm) (int64, error) {
ids, err := c.Create(AccountInvoiceConfirmModel, []interface{}{aic})
ids, err := c.CreateAccountInvoiceConfirms([]*AccountInvoiceConfirm{aic})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (ail *AccountInvoiceLine) Many2One() *Many2One {

// CreateAccountInvoiceLine creates a new account.invoice.line model and returns its id.
func (c *Client) CreateAccountInvoiceLine(ail *AccountInvoiceLine) (int64, error) {
ids, err := c.Create(AccountInvoiceLineModel, []interface{}{ail})
ids, err := c.CreateAccountInvoiceLines([]*AccountInvoiceLine{ail})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_refund.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (air *AccountInvoiceRefund) Many2One() *Many2One {

// CreateAccountInvoiceRefund creates a new account.invoice.refund model and returns its id.
func (c *Client) CreateAccountInvoiceRefund(air *AccountInvoiceRefund) (int64, error) {
ids, err := c.Create(AccountInvoiceRefundModel, []interface{}{air})
ids, err := c.CreateAccountInvoiceRefunds([]*AccountInvoiceRefund{air})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (air *AccountInvoiceReport) Many2One() *Many2One {

// CreateAccountInvoiceReport creates a new account.invoice.report model and returns its id.
func (c *Client) CreateAccountInvoiceReport(air *AccountInvoiceReport) (int64, error) {
ids, err := c.Create(AccountInvoiceReportModel, []interface{}{air})
ids, err := c.CreateAccountInvoiceReports([]*AccountInvoiceReport{air})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_invoice_tax.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (ait *AccountInvoiceTax) Many2One() *Many2One {

// CreateAccountInvoiceTax creates a new account.invoice.tax model and returns its id.
func (c *Client) CreateAccountInvoiceTax(ait *AccountInvoiceTax) (int64, error) {
ids, err := c.Create(AccountInvoiceTaxModel, []interface{}{ait})
ids, err := c.CreateAccountInvoiceTaxs([]*AccountInvoiceTax{ait})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (aj *AccountJournal) Many2One() *Many2One {

// CreateAccountJournal creates a new account.journal model and returns its id.
func (c *Client) CreateAccountJournal(aj *AccountJournal) (int64, error) {
ids, err := c.Create(AccountJournalModel, []interface{}{aj})
ids, err := c.CreateAccountJournals([]*AccountJournal{aj})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_move.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (am *AccountMove) Many2One() *Many2One {

// CreateAccountMove creates a new account.move model and returns its id.
func (c *Client) CreateAccountMove(am *AccountMove) (int64, error) {
ids, err := c.Create(AccountMoveModel, []interface{}{am})
ids, err := c.CreateAccountMoves([]*AccountMove{am})
if err != nil {
return -1, err
}
Expand Down
2 changes: 1 addition & 1 deletion account_move_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (aml *AccountMoveLine) Many2One() *Many2One {

// CreateAccountMoveLine creates a new account.move.line model and returns its id.
func (c *Client) CreateAccountMoveLine(aml *AccountMoveLine) (int64, error) {
ids, err := c.Create(AccountMoveLineModel, []interface{}{aml})
ids, err := c.CreateAccountMoveLines([]*AccountMoveLine{aml})
if err != nil {
return -1, err
}
Expand Down
Loading

0 comments on commit f26c354

Please sign in to comment.