diff --git a/account_abstract_payment.go b/account_abstract_payment.go index 8a770010..37a1dea1 100644 --- a/account_abstract_payment.go +++ b/account_abstract_payment.go @@ -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 } diff --git a/account_account.go b/account_account.go index fb2354bc..fd8fd7e4 100644 --- a/account_account.go +++ b/account_account.go @@ -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 } diff --git a/account_account_tag.go b/account_account_tag.go index aea7c531..0b152f0c 100644 --- a/account_account_tag.go +++ b/account_account_tag.go @@ -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 } diff --git a/account_account_template.go b/account_account_template.go index 57db88ad..70bf34a8 100644 --- a/account_account_template.go +++ b/account_account_template.go @@ -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 } diff --git a/account_account_type.go b/account_account_type.go index 4ea1750a..4b6a2667 100644 --- a/account_account_type.go +++ b/account_account_type.go @@ -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 } diff --git a/account_aged_trial_balance.go b/account_aged_trial_balance.go index b9debec3..4257c1a1 100644 --- a/account_aged_trial_balance.go +++ b/account_aged_trial_balance.go @@ -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 } diff --git a/account_analytic_account.go b/account_analytic_account.go index 0285d54a..597e9c08 100644 --- a/account_analytic_account.go +++ b/account_analytic_account.go @@ -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 } diff --git a/account_analytic_line.go b/account_analytic_line.go index 088743fb..685e8f90 100644 --- a/account_analytic_line.go +++ b/account_analytic_line.go @@ -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 } diff --git a/account_analytic_tag.go b/account_analytic_tag.go index 21a6aba3..cb5b6e1d 100644 --- a/account_analytic_tag.go +++ b/account_analytic_tag.go @@ -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 } diff --git a/account_balance_report.go b/account_balance_report.go index 7362f285..5d595a66 100644 --- a/account_balance_report.go +++ b/account_balance_report.go @@ -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 } diff --git a/account_bank_accounts_wizard.go b/account_bank_accounts_wizard.go index d998b0c7..e5a81645 100644 --- a/account_bank_accounts_wizard.go +++ b/account_bank_accounts_wizard.go @@ -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 } diff --git a/account_bank_statement.go b/account_bank_statement.go index a8725713..7fa4c0f7 100644 --- a/account_bank_statement.go +++ b/account_bank_statement.go @@ -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 } diff --git a/account_bank_statement_cashbox.go b/account_bank_statement_cashbox.go index 239c51a6..9e0b9181 100644 --- a/account_bank_statement_cashbox.go +++ b/account_bank_statement_cashbox.go @@ -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 } diff --git a/account_bank_statement_closebalance.go b/account_bank_statement_closebalance.go index 93f8d7b2..bbb00ad3 100644 --- a/account_bank_statement_closebalance.go +++ b/account_bank_statement_closebalance.go @@ -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 } diff --git a/account_bank_statement_import.go b/account_bank_statement_import.go index 8b7770eb..bc686f86 100644 --- a/account_bank_statement_import.go +++ b/account_bank_statement_import.go @@ -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 } diff --git a/account_bank_statement_import_journal_creation.go b/account_bank_statement_import_journal_creation.go index b5c808ac..f96a0a03 100644 --- a/account_bank_statement_import_journal_creation.go +++ b/account_bank_statement_import_journal_creation.go @@ -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 } diff --git a/account_bank_statement_line.go b/account_bank_statement_line.go index 0ed66b35..700f8fe7 100644 --- a/account_bank_statement_line.go +++ b/account_bank_statement_line.go @@ -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 } diff --git a/account_cash_rounding.go b/account_cash_rounding.go index 5a0f96b3..1a5c5285 100644 --- a/account_cash_rounding.go +++ b/account_cash_rounding.go @@ -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 } diff --git a/account_cashbox_line.go b/account_cashbox_line.go index 611d9366..6c9714cb 100644 --- a/account_cashbox_line.go +++ b/account_cashbox_line.go @@ -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 } diff --git a/account_chart_template.go b/account_chart_template.go index a142ee33..3f2aa31e 100644 --- a/account_chart_template.go +++ b/account_chart_template.go @@ -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 } diff --git a/account_common_account_report.go b/account_common_account_report.go index e63559b7..55c0465b 100644 --- a/account_common_account_report.go +++ b/account_common_account_report.go @@ -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 } diff --git a/account_common_journal_report.go b/account_common_journal_report.go index 2a52f1c9..a5ddcc72 100644 --- a/account_common_journal_report.go +++ b/account_common_journal_report.go @@ -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 } diff --git a/account_common_partner_report.go b/account_common_partner_report.go index fb5794c8..a2fd77a7 100644 --- a/account_common_partner_report.go +++ b/account_common_partner_report.go @@ -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 } diff --git a/account_common_report.go b/account_common_report.go index febd0e0c..690f2773 100644 --- a/account_common_report.go +++ b/account_common_report.go @@ -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 } diff --git a/account_financial_report.go b/account_financial_report.go index f4e7d4df..6a916d87 100644 --- a/account_financial_report.go +++ b/account_financial_report.go @@ -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 } diff --git a/account_financial_year_op.go b/account_financial_year_op.go index 6d87933f..463cd28b 100644 --- a/account_financial_year_op.go +++ b/account_financial_year_op.go @@ -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 } diff --git a/account_fiscal_position.go b/account_fiscal_position.go index 54cbf485..93e0ae33 100644 --- a/account_fiscal_position.go +++ b/account_fiscal_position.go @@ -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 } diff --git a/account_fiscal_position_account.go b/account_fiscal_position_account.go index 72bc3976..dd78d7db 100644 --- a/account_fiscal_position_account.go +++ b/account_fiscal_position_account.go @@ -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 } diff --git a/account_fiscal_position_account_template.go b/account_fiscal_position_account_template.go index 04caf0fb..3c1be850 100644 --- a/account_fiscal_position_account_template.go +++ b/account_fiscal_position_account_template.go @@ -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 } diff --git a/account_fiscal_position_tax.go b/account_fiscal_position_tax.go index 88bce168..cae8d541 100644 --- a/account_fiscal_position_tax.go +++ b/account_fiscal_position_tax.go @@ -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 } diff --git a/account_fiscal_position_tax_template.go b/account_fiscal_position_tax_template.go index 878e310c..eb67cdc4 100644 --- a/account_fiscal_position_tax_template.go +++ b/account_fiscal_position_tax_template.go @@ -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 } diff --git a/account_fiscal_position_template.go b/account_fiscal_position_template.go index a9ae37d2..cab6780c 100644 --- a/account_fiscal_position_template.go +++ b/account_fiscal_position_template.go @@ -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 } diff --git a/account_fr_fec.go b/account_fr_fec.go index 186ffb70..5fe198c3 100644 --- a/account_fr_fec.go +++ b/account_fr_fec.go @@ -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 } diff --git a/account_full_reconcile.go b/account_full_reconcile.go index 2ce1dc8f..9575518d 100644 --- a/account_full_reconcile.go +++ b/account_full_reconcile.go @@ -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 } diff --git a/account_group.go b/account_group.go index 8922170b..85b4615e 100644 --- a/account_group.go +++ b/account_group.go @@ -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 } diff --git a/account_invoice.go b/account_invoice.go index 9aa1e5d9..013a799e 100644 --- a/account_invoice.go +++ b/account_invoice.go @@ -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 } diff --git a/account_invoice_confirm.go b/account_invoice_confirm.go index d3de70aa..fbc09915 100644 --- a/account_invoice_confirm.go +++ b/account_invoice_confirm.go @@ -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 } diff --git a/account_invoice_line.go b/account_invoice_line.go index ec321cd1..72d95181 100644 --- a/account_invoice_line.go +++ b/account_invoice_line.go @@ -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 } diff --git a/account_invoice_refund.go b/account_invoice_refund.go index a9bd1a47..16ac8496 100644 --- a/account_invoice_refund.go +++ b/account_invoice_refund.go @@ -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 } diff --git a/account_invoice_report.go b/account_invoice_report.go index 91a9dc5d..b0f9cd39 100644 --- a/account_invoice_report.go +++ b/account_invoice_report.go @@ -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 } diff --git a/account_invoice_tax.go b/account_invoice_tax.go index a09a9b95..aeca95bd 100644 --- a/account_invoice_tax.go +++ b/account_invoice_tax.go @@ -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 } diff --git a/account_journal.go b/account_journal.go index bc67cb0d..0843f462 100644 --- a/account_journal.go +++ b/account_journal.go @@ -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 } diff --git a/account_move.go b/account_move.go index ac0d5f45..964cb3c1 100644 --- a/account_move.go +++ b/account_move.go @@ -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 } diff --git a/account_move_line.go b/account_move_line.go index 0aa05676..5ee18d53 100644 --- a/account_move_line.go +++ b/account_move_line.go @@ -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 } diff --git a/account_move_line_reconcile.go b/account_move_line_reconcile.go index ac4910fa..44379d3d 100644 --- a/account_move_line_reconcile.go +++ b/account_move_line_reconcile.go @@ -33,7 +33,7 @@ func (amlr *AccountMoveLineReconcile) Many2One() *Many2One { // CreateAccountMoveLineReconcile creates a new account.move.line.reconcile model and returns its id. func (c *Client) CreateAccountMoveLineReconcile(amlr *AccountMoveLineReconcile) (int64, error) { - ids, err := c.Create(AccountMoveLineReconcileModel, []interface{}{amlr}) + ids, err := c.CreateAccountMoveLineReconciles([]*AccountMoveLineReconcile{amlr}) if err != nil { return -1, err } diff --git a/account_move_line_reconcile_writeoff.go b/account_move_line_reconcile_writeoff.go index 669830d0..7817424e 100644 --- a/account_move_line_reconcile_writeoff.go +++ b/account_move_line_reconcile_writeoff.go @@ -33,7 +33,7 @@ func (amlrw *AccountMoveLineReconcileWriteoff) Many2One() *Many2One { // CreateAccountMoveLineReconcileWriteoff creates a new account.move.line.reconcile.writeoff model and returns its id. func (c *Client) CreateAccountMoveLineReconcileWriteoff(amlrw *AccountMoveLineReconcileWriteoff) (int64, error) { - ids, err := c.Create(AccountMoveLineReconcileWriteoffModel, []interface{}{amlrw}) + ids, err := c.CreateAccountMoveLineReconcileWriteoffs([]*AccountMoveLineReconcileWriteoff{amlrw}) if err != nil { return -1, err } diff --git a/account_move_reversal.go b/account_move_reversal.go index cd5abba2..245ad36d 100644 --- a/account_move_reversal.go +++ b/account_move_reversal.go @@ -30,7 +30,7 @@ func (amr *AccountMoveReversal) Many2One() *Many2One { // CreateAccountMoveReversal creates a new account.move.reversal model and returns its id. func (c *Client) CreateAccountMoveReversal(amr *AccountMoveReversal) (int64, error) { - ids, err := c.Create(AccountMoveReversalModel, []interface{}{amr}) + ids, err := c.CreateAccountMoveReversals([]*AccountMoveReversal{amr}) if err != nil { return -1, err } diff --git a/account_opening.go b/account_opening.go index 05fe5705..21c0ed13 100644 --- a/account_opening.go +++ b/account_opening.go @@ -34,7 +34,7 @@ func (ao *AccountOpening) Many2One() *Many2One { // CreateAccountOpening creates a new account.opening model and returns its id. func (c *Client) CreateAccountOpening(ao *AccountOpening) (int64, error) { - ids, err := c.Create(AccountOpeningModel, []interface{}{ao}) + ids, err := c.CreateAccountOpenings([]*AccountOpening{ao}) if err != nil { return -1, err } diff --git a/account_partial_reconcile.go b/account_partial_reconcile.go index 33a78a26..3d5aeb33 100644 --- a/account_partial_reconcile.go +++ b/account_partial_reconcile.go @@ -37,7 +37,7 @@ func (apr *AccountPartialReconcile) Many2One() *Many2One { // CreateAccountPartialReconcile creates a new account.partial.reconcile model and returns its id. func (c *Client) CreateAccountPartialReconcile(apr *AccountPartialReconcile) (int64, error) { - ids, err := c.Create(AccountPartialReconcileModel, []interface{}{apr}) + ids, err := c.CreateAccountPartialReconciles([]*AccountPartialReconcile{apr}) if err != nil { return -1, err } diff --git a/account_payment.go b/account_payment.go index 9f4da06a..ab25d52e 100644 --- a/account_payment.go +++ b/account_payment.go @@ -67,7 +67,7 @@ func (ap *AccountPayment) Many2One() *Many2One { // CreateAccountPayment creates a new account.payment model and returns its id. func (c *Client) CreateAccountPayment(ap *AccountPayment) (int64, error) { - ids, err := c.Create(AccountPaymentModel, []interface{}{ap}) + ids, err := c.CreateAccountPayments([]*AccountPayment{ap}) if err != nil { return -1, err } diff --git a/account_payment_method.go b/account_payment_method.go index 7467aa22..97bed6f6 100644 --- a/account_payment_method.go +++ b/account_payment_method.go @@ -31,7 +31,7 @@ func (apm *AccountPaymentMethod) Many2One() *Many2One { // CreateAccountPaymentMethod creates a new account.payment.method model and returns its id. func (c *Client) CreateAccountPaymentMethod(apm *AccountPaymentMethod) (int64, error) { - ids, err := c.Create(AccountPaymentMethodModel, []interface{}{apm}) + ids, err := c.CreateAccountPaymentMethods([]*AccountPaymentMethod{apm}) if err != nil { return -1, err } diff --git a/account_payment_term.go b/account_payment_term.go index 96605bea..5c26e39e 100644 --- a/account_payment_term.go +++ b/account_payment_term.go @@ -34,7 +34,7 @@ func (apt *AccountPaymentTerm) Many2One() *Many2One { // CreateAccountPaymentTerm creates a new account.payment.term model and returns its id. func (c *Client) CreateAccountPaymentTerm(apt *AccountPaymentTerm) (int64, error) { - ids, err := c.Create(AccountPaymentTermModel, []interface{}{apt}) + ids, err := c.CreateAccountPaymentTerms([]*AccountPaymentTerm{apt}) if err != nil { return -1, err } diff --git a/account_payment_term_line.go b/account_payment_term_line.go index 1c14d0a0..48612aa5 100644 --- a/account_payment_term_line.go +++ b/account_payment_term_line.go @@ -34,7 +34,7 @@ func (aptl *AccountPaymentTermLine) Many2One() *Many2One { // CreateAccountPaymentTermLine creates a new account.payment.term.line model and returns its id. func (c *Client) CreateAccountPaymentTermLine(aptl *AccountPaymentTermLine) (int64, error) { - ids, err := c.Create(AccountPaymentTermLineModel, []interface{}{aptl}) + ids, err := c.CreateAccountPaymentTermLines([]*AccountPaymentTermLine{aptl}) if err != nil { return -1, err } diff --git a/account_print_journal.go b/account_print_journal.go index 6d891e26..e7890b39 100644 --- a/account_print_journal.go +++ b/account_print_journal.go @@ -35,7 +35,7 @@ func (apj *AccountPrintJournal) Many2One() *Many2One { // CreateAccountPrintJournal creates a new account.print.journal model and returns its id. func (c *Client) CreateAccountPrintJournal(apj *AccountPrintJournal) (int64, error) { - ids, err := c.Create(AccountPrintJournalModel, []interface{}{apj}) + ids, err := c.CreateAccountPrintJournals([]*AccountPrintJournal{apj}) if err != nil { return -1, err } diff --git a/account_reconcile_model.go b/account_reconcile_model.go index d038a054..2f3e6360 100644 --- a/account_reconcile_model.go +++ b/account_reconcile_model.go @@ -46,7 +46,7 @@ func (arm *AccountReconcileModel) Many2One() *Many2One { // CreateAccountReconcileModel creates a new account.reconcile.model model and returns its id. func (c *Client) CreateAccountReconcileModel(arm *AccountReconcileModel) (int64, error) { - ids, err := c.Create(AccountReconcileModelModel, []interface{}{arm}) + ids, err := c.CreateAccountReconcileModels([]*AccountReconcileModel{arm}) if err != nil { return -1, err } diff --git a/account_reconcile_model_template.go b/account_reconcile_model_template.go index 93d2f1da..8640b4b9 100644 --- a/account_reconcile_model_template.go +++ b/account_reconcile_model_template.go @@ -42,7 +42,7 @@ func (armt *AccountReconcileModelTemplate) Many2One() *Many2One { // CreateAccountReconcileModelTemplate creates a new account.reconcile.model.template model and returns its id. func (c *Client) CreateAccountReconcileModelTemplate(armt *AccountReconcileModelTemplate) (int64, error) { - ids, err := c.Create(AccountReconcileModelTemplateModel, []interface{}{armt}) + ids, err := c.CreateAccountReconcileModelTemplates([]*AccountReconcileModelTemplate{armt}) if err != nil { return -1, err } diff --git a/account_register_payments.go b/account_register_payments.go index 38eb0263..422c7bb2 100644 --- a/account_register_payments.go +++ b/account_register_payments.go @@ -42,7 +42,7 @@ func (arp *AccountRegisterPayments) Many2One() *Many2One { // CreateAccountRegisterPayments creates a new account.register.payments model and returns its id. func (c *Client) CreateAccountRegisterPayments(arp *AccountRegisterPayments) (int64, error) { - ids, err := c.Create(AccountRegisterPaymentsModel, []interface{}{arp}) + ids, err := c.CreateAccountRegisterPaymentss([]*AccountRegisterPayments{arp}) if err != nil { return -1, err } diff --git a/account_report_general_ledger.go b/account_report_general_ledger.go index 389ec736..c4dcb42c 100644 --- a/account_report_general_ledger.go +++ b/account_report_general_ledger.go @@ -36,7 +36,7 @@ func (argl *AccountReportGeneralLedger) Many2One() *Many2One { // CreateAccountReportGeneralLedger creates a new account.report.general.ledger model and returns its id. func (c *Client) CreateAccountReportGeneralLedger(argl *AccountReportGeneralLedger) (int64, error) { - ids, err := c.Create(AccountReportGeneralLedgerModel, []interface{}{argl}) + ids, err := c.CreateAccountReportGeneralLedgers([]*AccountReportGeneralLedger{argl}) if err != nil { return -1, err } diff --git a/account_report_partner_ledger.go b/account_report_partner_ledger.go index fd734280..d8e70b41 100644 --- a/account_report_partner_ledger.go +++ b/account_report_partner_ledger.go @@ -36,7 +36,7 @@ func (arpl *AccountReportPartnerLedger) Many2One() *Many2One { // CreateAccountReportPartnerLedger creates a new account.report.partner.ledger model and returns its id. func (c *Client) CreateAccountReportPartnerLedger(arpl *AccountReportPartnerLedger) (int64, error) { - ids, err := c.Create(AccountReportPartnerLedgerModel, []interface{}{arpl}) + ids, err := c.CreateAccountReportPartnerLedgers([]*AccountReportPartnerLedger{arpl}) if err != nil { return -1, err } diff --git a/account_tax.go b/account_tax.go index 1469805a..171c0874 100644 --- a/account_tax.go +++ b/account_tax.go @@ -49,7 +49,7 @@ func (at *AccountTax) Many2One() *Many2One { // CreateAccountTax creates a new account.tax model and returns its id. func (c *Client) CreateAccountTax(at *AccountTax) (int64, error) { - ids, err := c.Create(AccountTaxModel, []interface{}{at}) + ids, err := c.CreateAccountTaxs([]*AccountTax{at}) if err != nil { return -1, err } diff --git a/account_tax_group.go b/account_tax_group.go index d318152a..4f171248 100644 --- a/account_tax_group.go +++ b/account_tax_group.go @@ -30,7 +30,7 @@ func (atg *AccountTaxGroup) Many2One() *Many2One { // CreateAccountTaxGroup creates a new account.tax.group model and returns its id. func (c *Client) CreateAccountTaxGroup(atg *AccountTaxGroup) (int64, error) { - ids, err := c.Create(AccountTaxGroupModel, []interface{}{atg}) + ids, err := c.CreateAccountTaxGroups([]*AccountTaxGroup{atg}) if err != nil { return -1, err } diff --git a/account_tax_report.go b/account_tax_report.go index 0a0f685e..89d7891a 100644 --- a/account_tax_report.go +++ b/account_tax_report.go @@ -33,7 +33,7 @@ func (atr *AccountTaxReport) Many2One() *Many2One { // CreateAccountTaxReport creates a new account.tax.report model and returns its id. func (c *Client) CreateAccountTaxReport(atr *AccountTaxReport) (int64, error) { - ids, err := c.Create(AccountTaxReportModel, []interface{}{atr}) + ids, err := c.CreateAccountTaxReports([]*AccountTaxReport{atr}) if err != nil { return -1, err } diff --git a/account_tax_template.go b/account_tax_template.go index e2cb8b22..a4e60732 100644 --- a/account_tax_template.go +++ b/account_tax_template.go @@ -48,7 +48,7 @@ func (att *AccountTaxTemplate) Many2One() *Many2One { // CreateAccountTaxTemplate creates a new account.tax.template model and returns its id. func (c *Client) CreateAccountTaxTemplate(att *AccountTaxTemplate) (int64, error) { - ids, err := c.Create(AccountTaxTemplateModel, []interface{}{att}) + ids, err := c.CreateAccountTaxTemplates([]*AccountTaxTemplate{att}) if err != nil { return -1, err } diff --git a/account_unreconcile.go b/account_unreconcile.go index 52c8cf5e..80b95561 100644 --- a/account_unreconcile.go +++ b/account_unreconcile.go @@ -28,7 +28,7 @@ func (au *AccountUnreconcile) Many2One() *Many2One { // CreateAccountUnreconcile creates a new account.unreconcile model and returns its id. func (c *Client) CreateAccountUnreconcile(au *AccountUnreconcile) (int64, error) { - ids, err := c.Create(AccountUnreconcileModel, []interface{}{au}) + ids, err := c.CreateAccountUnreconciles([]*AccountUnreconcile{au}) if err != nil { return -1, err } diff --git a/accounting_report.go b/accounting_report.go index 48ce54f4..994d9879 100644 --- a/accounting_report.go +++ b/accounting_report.go @@ -40,7 +40,7 @@ func (ar *AccountingReport) Many2One() *Many2One { // CreateAccountingReport creates a new accounting.report model and returns its id. func (c *Client) CreateAccountingReport(ar *AccountingReport) (int64, error) { - ids, err := c.Create(AccountingReportModel, []interface{}{ar}) + ids, err := c.CreateAccountingReports([]*AccountingReport{ar}) if err != nil { return -1, err } diff --git a/autosales_config.go b/autosales_config.go index eae8dd07..ef2f83c4 100644 --- a/autosales_config.go +++ b/autosales_config.go @@ -31,7 +31,7 @@ func (ac *AutosalesConfig) Many2One() *Many2One { // CreateAutosalesConfig creates a new autosales.config model and returns its id. func (c *Client) CreateAutosalesConfig(ac *AutosalesConfig) (int64, error) { - ids, err := c.Create(AutosalesConfigModel, []interface{}{ac}) + ids, err := c.CreateAutosalesConfigs([]*AutosalesConfig{ac}) if err != nil { return -1, err } diff --git a/autosales_config_line.go b/autosales_config_line.go index 400cd4bc..6f037df2 100644 --- a/autosales_config_line.go +++ b/autosales_config_line.go @@ -33,7 +33,7 @@ func (acl *AutosalesConfigLine) Many2One() *Many2One { // CreateAutosalesConfigLine creates a new autosales.config.line model and returns its id. func (c *Client) CreateAutosalesConfigLine(acl *AutosalesConfigLine) (int64, error) { - ids, err := c.Create(AutosalesConfigLineModel, []interface{}{acl}) + ids, err := c.CreateAutosalesConfigLines([]*AutosalesConfigLine{acl}) if err != nil { return -1, err } diff --git a/barcode_nomenclature.go b/barcode_nomenclature.go index 431da84d..52030baf 100644 --- a/barcode_nomenclature.go +++ b/barcode_nomenclature.go @@ -31,7 +31,7 @@ func (bn *BarcodeNomenclature) Many2One() *Many2One { // CreateBarcodeNomenclature creates a new barcode.nomenclature model and returns its id. func (c *Client) CreateBarcodeNomenclature(bn *BarcodeNomenclature) (int64, error) { - ids, err := c.Create(BarcodeNomenclatureModel, []interface{}{bn}) + ids, err := c.CreateBarcodeNomenclatures([]*BarcodeNomenclature{bn}) if err != nil { return -1, err } diff --git a/barcode_rule.go b/barcode_rule.go index 32bb1b32..d3b6b79c 100644 --- a/barcode_rule.go +++ b/barcode_rule.go @@ -35,7 +35,7 @@ func (br *BarcodeRule) Many2One() *Many2One { // CreateBarcodeRule creates a new barcode.rule model and returns its id. func (c *Client) CreateBarcodeRule(br *BarcodeRule) (int64, error) { - ids, err := c.Create(BarcodeRuleModel, []interface{}{br}) + ids, err := c.CreateBarcodeRules([]*BarcodeRule{br}) if err != nil { return -1, err } diff --git a/barcodes_barcode_events_mixin.go b/barcodes_barcode_events_mixin.go index dc65ae3f..4f4d4d97 100644 --- a/barcodes_barcode_events_mixin.go +++ b/barcodes_barcode_events_mixin.go @@ -25,7 +25,7 @@ func (bb *BarcodesBarcodeEventsMixin) Many2One() *Many2One { // CreateBarcodesBarcodeEventsMixin creates a new barcodes.barcode_events_mixin model and returns its id. func (c *Client) CreateBarcodesBarcodeEventsMixin(bb *BarcodesBarcodeEventsMixin) (int64, error) { - ids, err := c.Create(BarcodesBarcodeEventsMixinModel, []interface{}{bb}) + ids, err := c.CreateBarcodesBarcodeEventsMixins([]*BarcodesBarcodeEventsMixin{bb}) if err != nil { return -1, err } diff --git a/base.go b/base.go index b1b8f38a..d1c7fcb3 100644 --- a/base.go +++ b/base.go @@ -24,7 +24,7 @@ func (b *Base) Many2One() *Many2One { // CreateBase creates a new base model and returns its id. func (c *Client) CreateBase(b *Base) (int64, error) { - ids, err := c.Create(BaseModel, []interface{}{b}) + ids, err := c.CreateBases([]*Base{b}) if err != nil { return -1, err } diff --git a/base_import_import.go b/base_import_import.go index 34b0e58d..40654ff2 100644 --- a/base_import_import.go +++ b/base_import_import.go @@ -32,7 +32,7 @@ func (bi *BaseImportImport) Many2One() *Many2One { // CreateBaseImportImport creates a new base_import.import model and returns its id. func (c *Client) CreateBaseImportImport(bi *BaseImportImport) (int64, error) { - ids, err := c.Create(BaseImportImportModel, []interface{}{bi}) + ids, err := c.CreateBaseImportImports([]*BaseImportImport{bi}) if err != nil { return -1, err } diff --git a/base_import_tests_models_char.go b/base_import_tests_models_char.go index 8626b11d..3ea7a478 100644 --- a/base_import_tests_models_char.go +++ b/base_import_tests_models_char.go @@ -29,7 +29,7 @@ func (btmc *BaseImportTestsModelsChar) Many2One() *Many2One { // CreateBaseImportTestsModelsChar creates a new base_import.tests.models.char model and returns its id. func (c *Client) CreateBaseImportTestsModelsChar(btmc *BaseImportTestsModelsChar) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsCharModel, []interface{}{btmc}) + ids, err := c.CreateBaseImportTestsModelsChars([]*BaseImportTestsModelsChar{btmc}) if err != nil { return -1, err } diff --git a/base_import_tests_models_char_noreadonly.go b/base_import_tests_models_char_noreadonly.go index cccbcf25..e28c04bb 100644 --- a/base_import_tests_models_char_noreadonly.go +++ b/base_import_tests_models_char_noreadonly.go @@ -29,7 +29,7 @@ func (btmcn *BaseImportTestsModelsCharNoreadonly) Many2One() *Many2One { // CreateBaseImportTestsModelsCharNoreadonly creates a new base_import.tests.models.char.noreadonly model and returns its id. func (c *Client) CreateBaseImportTestsModelsCharNoreadonly(btmcn *BaseImportTestsModelsCharNoreadonly) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsCharNoreadonlyModel, []interface{}{btmcn}) + ids, err := c.CreateBaseImportTestsModelsCharNoreadonlys([]*BaseImportTestsModelsCharNoreadonly{btmcn}) if err != nil { return -1, err } diff --git a/base_import_tests_models_char_readonly.go b/base_import_tests_models_char_readonly.go index f5ffef4e..1e20ee38 100644 --- a/base_import_tests_models_char_readonly.go +++ b/base_import_tests_models_char_readonly.go @@ -29,7 +29,7 @@ func (btmcr *BaseImportTestsModelsCharReadonly) Many2One() *Many2One { // CreateBaseImportTestsModelsCharReadonly creates a new base_import.tests.models.char.readonly model and returns its id. func (c *Client) CreateBaseImportTestsModelsCharReadonly(btmcr *BaseImportTestsModelsCharReadonly) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsCharReadonlyModel, []interface{}{btmcr}) + ids, err := c.CreateBaseImportTestsModelsCharReadonlys([]*BaseImportTestsModelsCharReadonly{btmcr}) if err != nil { return -1, err } diff --git a/base_import_tests_models_char_required.go b/base_import_tests_models_char_required.go index 63f56b6a..a42a1d9e 100644 --- a/base_import_tests_models_char_required.go +++ b/base_import_tests_models_char_required.go @@ -29,7 +29,7 @@ func (btmcr *BaseImportTestsModelsCharRequired) Many2One() *Many2One { // CreateBaseImportTestsModelsCharRequired creates a new base_import.tests.models.char.required model and returns its id. func (c *Client) CreateBaseImportTestsModelsCharRequired(btmcr *BaseImportTestsModelsCharRequired) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsCharRequiredModel, []interface{}{btmcr}) + ids, err := c.CreateBaseImportTestsModelsCharRequireds([]*BaseImportTestsModelsCharRequired{btmcr}) if err != nil { return -1, err } diff --git a/base_import_tests_models_char_states.go b/base_import_tests_models_char_states.go index ad7931e4..f6c47ff8 100644 --- a/base_import_tests_models_char_states.go +++ b/base_import_tests_models_char_states.go @@ -29,7 +29,7 @@ func (btmcs *BaseImportTestsModelsCharStates) Many2One() *Many2One { // CreateBaseImportTestsModelsCharStates creates a new base_import.tests.models.char.states model and returns its id. func (c *Client) CreateBaseImportTestsModelsCharStates(btmcs *BaseImportTestsModelsCharStates) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsCharStatesModel, []interface{}{btmcs}) + ids, err := c.CreateBaseImportTestsModelsCharStatess([]*BaseImportTestsModelsCharStates{btmcs}) if err != nil { return -1, err } diff --git a/base_import_tests_models_char_stillreadonly.go b/base_import_tests_models_char_stillreadonly.go index 0537ed31..9b40931b 100644 --- a/base_import_tests_models_char_stillreadonly.go +++ b/base_import_tests_models_char_stillreadonly.go @@ -29,7 +29,7 @@ func (btmcs *BaseImportTestsModelsCharStillreadonly) Many2One() *Many2One { // CreateBaseImportTestsModelsCharStillreadonly creates a new base_import.tests.models.char.stillreadonly model and returns its id. func (c *Client) CreateBaseImportTestsModelsCharStillreadonly(btmcs *BaseImportTestsModelsCharStillreadonly) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsCharStillreadonlyModel, []interface{}{btmcs}) + ids, err := c.CreateBaseImportTestsModelsCharStillreadonlys([]*BaseImportTestsModelsCharStillreadonly{btmcs}) if err != nil { return -1, err } diff --git a/base_import_tests_models_m2o.go b/base_import_tests_models_m2o.go index dc229b46..5487b46d 100644 --- a/base_import_tests_models_m2o.go +++ b/base_import_tests_models_m2o.go @@ -29,7 +29,7 @@ func (btmm *BaseImportTestsModelsM2O) Many2One() *Many2One { // CreateBaseImportTestsModelsM2O creates a new base_import.tests.models.m2o model and returns its id. func (c *Client) CreateBaseImportTestsModelsM2O(btmm *BaseImportTestsModelsM2O) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsM2OModel, []interface{}{btmm}) + ids, err := c.CreateBaseImportTestsModelsM2Os([]*BaseImportTestsModelsM2O{btmm}) if err != nil { return -1, err } diff --git a/base_import_tests_models_m2o_related.go b/base_import_tests_models_m2o_related.go index 6e1d33bb..d97b1fb2 100644 --- a/base_import_tests_models_m2o_related.go +++ b/base_import_tests_models_m2o_related.go @@ -29,7 +29,7 @@ func (btmmr *BaseImportTestsModelsM2ORelated) Many2One() *Many2One { // CreateBaseImportTestsModelsM2ORelated creates a new base_import.tests.models.m2o.related model and returns its id. func (c *Client) CreateBaseImportTestsModelsM2ORelated(btmmr *BaseImportTestsModelsM2ORelated) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsM2ORelatedModel, []interface{}{btmmr}) + ids, err := c.CreateBaseImportTestsModelsM2ORelateds([]*BaseImportTestsModelsM2ORelated{btmmr}) if err != nil { return -1, err } diff --git a/base_import_tests_models_m2o_required.go b/base_import_tests_models_m2o_required.go index c85ff26c..9854c788 100644 --- a/base_import_tests_models_m2o_required.go +++ b/base_import_tests_models_m2o_required.go @@ -29,7 +29,7 @@ func (btmmr *BaseImportTestsModelsM2ORequired) Many2One() *Many2One { // CreateBaseImportTestsModelsM2ORequired creates a new base_import.tests.models.m2o.required model and returns its id. func (c *Client) CreateBaseImportTestsModelsM2ORequired(btmmr *BaseImportTestsModelsM2ORequired) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsM2ORequiredModel, []interface{}{btmmr}) + ids, err := c.CreateBaseImportTestsModelsM2ORequireds([]*BaseImportTestsModelsM2ORequired{btmmr}) if err != nil { return -1, err } diff --git a/base_import_tests_models_m2o_required_related.go b/base_import_tests_models_m2o_required_related.go index 55515584..2be21bbe 100644 --- a/base_import_tests_models_m2o_required_related.go +++ b/base_import_tests_models_m2o_required_related.go @@ -29,7 +29,7 @@ func (btmmrr *BaseImportTestsModelsM2ORequiredRelated) Many2One() *Many2One { // CreateBaseImportTestsModelsM2ORequiredRelated creates a new base_import.tests.models.m2o.required.related model and returns its id. func (c *Client) CreateBaseImportTestsModelsM2ORequiredRelated(btmmrr *BaseImportTestsModelsM2ORequiredRelated) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsM2ORequiredRelatedModel, []interface{}{btmmrr}) + ids, err := c.CreateBaseImportTestsModelsM2ORequiredRelateds([]*BaseImportTestsModelsM2ORequiredRelated{btmmrr}) if err != nil { return -1, err } diff --git a/base_import_tests_models_o2m.go b/base_import_tests_models_o2m.go index 0439cf1d..a68c24d8 100644 --- a/base_import_tests_models_o2m.go +++ b/base_import_tests_models_o2m.go @@ -29,7 +29,7 @@ func (btmo *BaseImportTestsModelsO2M) Many2One() *Many2One { // CreateBaseImportTestsModelsO2M creates a new base_import.tests.models.o2m model and returns its id. func (c *Client) CreateBaseImportTestsModelsO2M(btmo *BaseImportTestsModelsO2M) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsO2MModel, []interface{}{btmo}) + ids, err := c.CreateBaseImportTestsModelsO2Ms([]*BaseImportTestsModelsO2M{btmo}) if err != nil { return -1, err } diff --git a/base_import_tests_models_o2m_child.go b/base_import_tests_models_o2m_child.go index 1f0046df..15641623 100644 --- a/base_import_tests_models_o2m_child.go +++ b/base_import_tests_models_o2m_child.go @@ -30,7 +30,7 @@ func (btmoc *BaseImportTestsModelsO2MChild) Many2One() *Many2One { // CreateBaseImportTestsModelsO2MChild creates a new base_import.tests.models.o2m.child model and returns its id. func (c *Client) CreateBaseImportTestsModelsO2MChild(btmoc *BaseImportTestsModelsO2MChild) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsO2MChildModel, []interface{}{btmoc}) + ids, err := c.CreateBaseImportTestsModelsO2MChilds([]*BaseImportTestsModelsO2MChild{btmoc}) if err != nil { return -1, err } diff --git a/base_import_tests_models_preview.go b/base_import_tests_models_preview.go index 9a4e03ba..8faf7de3 100644 --- a/base_import_tests_models_preview.go +++ b/base_import_tests_models_preview.go @@ -31,7 +31,7 @@ func (btmp *BaseImportTestsModelsPreview) Many2One() *Many2One { // CreateBaseImportTestsModelsPreview creates a new base_import.tests.models.preview model and returns its id. func (c *Client) CreateBaseImportTestsModelsPreview(btmp *BaseImportTestsModelsPreview) (int64, error) { - ids, err := c.Create(BaseImportTestsModelsPreviewModel, []interface{}{btmp}) + ids, err := c.CreateBaseImportTestsModelsPreviews([]*BaseImportTestsModelsPreview{btmp}) if err != nil { return -1, err } diff --git a/base_language_export.go b/base_language_export.go index 85863308..bbdc0563 100644 --- a/base_language_export.go +++ b/base_language_export.go @@ -34,7 +34,7 @@ func (ble *BaseLanguageExport) Many2One() *Many2One { // CreateBaseLanguageExport creates a new base.language.export model and returns its id. func (c *Client) CreateBaseLanguageExport(ble *BaseLanguageExport) (int64, error) { - ids, err := c.Create(BaseLanguageExportModel, []interface{}{ble}) + ids, err := c.CreateBaseLanguageExports([]*BaseLanguageExport{ble}) if err != nil { return -1, err } diff --git a/base_language_import.go b/base_language_import.go index 2894d0b5..103ae8ce 100644 --- a/base_language_import.go +++ b/base_language_import.go @@ -33,7 +33,7 @@ func (bli *BaseLanguageImport) Many2One() *Many2One { // CreateBaseLanguageImport creates a new base.language.import model and returns its id. func (c *Client) CreateBaseLanguageImport(bli *BaseLanguageImport) (int64, error) { - ids, err := c.Create(BaseLanguageImportModel, []interface{}{bli}) + ids, err := c.CreateBaseLanguageImports([]*BaseLanguageImport{bli}) if err != nil { return -1, err } diff --git a/base_language_install.go b/base_language_install.go index 8069e491..6499c78d 100644 --- a/base_language_install.go +++ b/base_language_install.go @@ -31,7 +31,7 @@ func (bli *BaseLanguageInstall) Many2One() *Many2One { // CreateBaseLanguageInstall creates a new base.language.install model and returns its id. func (c *Client) CreateBaseLanguageInstall(bli *BaseLanguageInstall) (int64, error) { - ids, err := c.Create(BaseLanguageInstallModel, []interface{}{bli}) + ids, err := c.CreateBaseLanguageInstalls([]*BaseLanguageInstall{bli}) if err != nil { return -1, err } diff --git a/base_module_uninstall.go b/base_module_uninstall.go index ac33915a..708f1268 100644 --- a/base_module_uninstall.go +++ b/base_module_uninstall.go @@ -32,7 +32,7 @@ func (bmu *BaseModuleUninstall) Many2One() *Many2One { // CreateBaseModuleUninstall creates a new base.module.uninstall model and returns its id. func (c *Client) CreateBaseModuleUninstall(bmu *BaseModuleUninstall) (int64, error) { - ids, err := c.Create(BaseModuleUninstallModel, []interface{}{bmu}) + ids, err := c.CreateBaseModuleUninstalls([]*BaseModuleUninstall{bmu}) if err != nil { return -1, err } diff --git a/base_module_update.go b/base_module_update.go index ae143373..637d9544 100644 --- a/base_module_update.go +++ b/base_module_update.go @@ -31,7 +31,7 @@ func (bmu *BaseModuleUpdate) Many2One() *Many2One { // CreateBaseModuleUpdate creates a new base.module.update model and returns its id. func (c *Client) CreateBaseModuleUpdate(bmu *BaseModuleUpdate) (int64, error) { - ids, err := c.Create(BaseModuleUpdateModel, []interface{}{bmu}) + ids, err := c.CreateBaseModuleUpdates([]*BaseModuleUpdate{bmu}) if err != nil { return -1, err } diff --git a/base_module_upgrade.go b/base_module_upgrade.go index d28e3766..588a6cce 100644 --- a/base_module_upgrade.go +++ b/base_module_upgrade.go @@ -29,7 +29,7 @@ func (bmu *BaseModuleUpgrade) Many2One() *Many2One { // CreateBaseModuleUpgrade creates a new base.module.upgrade model and returns its id. func (c *Client) CreateBaseModuleUpgrade(bmu *BaseModuleUpgrade) (int64, error) { - ids, err := c.Create(BaseModuleUpgradeModel, []interface{}{bmu}) + ids, err := c.CreateBaseModuleUpgrades([]*BaseModuleUpgrade{bmu}) if err != nil { return -1, err } diff --git a/base_partner_merge_automatic_wizard.go b/base_partner_merge_automatic_wizard.go index d70ea23c..867665a9 100644 --- a/base_partner_merge_automatic_wizard.go +++ b/base_partner_merge_automatic_wizard.go @@ -42,7 +42,7 @@ func (bpmaw *BasePartnerMergeAutomaticWizard) Many2One() *Many2One { // CreateBasePartnerMergeAutomaticWizard creates a new base.partner.merge.automatic.wizard model and returns its id. func (c *Client) CreateBasePartnerMergeAutomaticWizard(bpmaw *BasePartnerMergeAutomaticWizard) (int64, error) { - ids, err := c.Create(BasePartnerMergeAutomaticWizardModel, []interface{}{bpmaw}) + ids, err := c.CreateBasePartnerMergeAutomaticWizards([]*BasePartnerMergeAutomaticWizard{bpmaw}) if err != nil { return -1, err } diff --git a/base_partner_merge_line.go b/base_partner_merge_line.go index 8e8387b8..fa5cb19a 100644 --- a/base_partner_merge_line.go +++ b/base_partner_merge_line.go @@ -31,7 +31,7 @@ func (bpml *BasePartnerMergeLine) Many2One() *Many2One { // CreateBasePartnerMergeLine creates a new base.partner.merge.line model and returns its id. func (c *Client) CreateBasePartnerMergeLine(bpml *BasePartnerMergeLine) (int64, error) { - ids, err := c.Create(BasePartnerMergeLineModel, []interface{}{bpml}) + ids, err := c.CreateBasePartnerMergeLines([]*BasePartnerMergeLine{bpml}) if err != nil { return -1, err } diff --git a/base_update_translations.go b/base_update_translations.go index 278413fd..717b1d53 100644 --- a/base_update_translations.go +++ b/base_update_translations.go @@ -29,7 +29,7 @@ func (but *BaseUpdateTranslations) Many2One() *Many2One { // CreateBaseUpdateTranslations creates a new base.update.translations model and returns its id. func (c *Client) CreateBaseUpdateTranslations(but *BaseUpdateTranslations) (int64, error) { - ids, err := c.Create(BaseUpdateTranslationsModel, []interface{}{but}) + ids, err := c.CreateBaseUpdateTranslationss([]*BaseUpdateTranslations{but}) if err != nil { return -1, err } diff --git a/board_board.go b/board_board.go index 8fdb1d3d..6b94e9ba 100644 --- a/board_board.go +++ b/board_board.go @@ -24,7 +24,7 @@ func (bb *BoardBoard) Many2One() *Many2One { // CreateBoardBoard creates a new board.board model and returns its id. func (c *Client) CreateBoardBoard(bb *BoardBoard) (int64, error) { - ids, err := c.Create(BoardBoardModel, []interface{}{bb}) + ids, err := c.CreateBoardBoards([]*BoardBoard{bb}) if err != nil { return -1, err } diff --git a/bus_bus.go b/bus_bus.go index 5e7ded97..808a7727 100644 --- a/bus_bus.go +++ b/bus_bus.go @@ -30,7 +30,7 @@ func (bb *BusBus) Many2One() *Many2One { // CreateBusBus creates a new bus.bus model and returns its id. func (c *Client) CreateBusBus(bb *BusBus) (int64, error) { - ids, err := c.Create(BusBusModel, []interface{}{bb}) + ids, err := c.CreateBusBuss([]*BusBus{bb}) if err != nil { return -1, err } diff --git a/bus_presence.go b/bus_presence.go index bc7af376..6d15f244 100644 --- a/bus_presence.go +++ b/bus_presence.go @@ -28,7 +28,7 @@ func (bp *BusPresence) Many2One() *Many2One { // CreateBusPresence creates a new bus.presence model and returns its id. func (c *Client) CreateBusPresence(bp *BusPresence) (int64, error) { - ids, err := c.Create(BusPresenceModel, []interface{}{bp}) + ids, err := c.CreateBusPresences([]*BusPresence{bp}) if err != nil { return -1, err } diff --git a/calendar_alarm.go b/calendar_alarm.go index b552db11..76315798 100644 --- a/calendar_alarm.go +++ b/calendar_alarm.go @@ -33,7 +33,7 @@ func (ca *CalendarAlarm) Many2One() *Many2One { // CreateCalendarAlarm creates a new calendar.alarm model and returns its id. func (c *Client) CreateCalendarAlarm(ca *CalendarAlarm) (int64, error) { - ids, err := c.Create(CalendarAlarmModel, []interface{}{ca}) + ids, err := c.CreateCalendarAlarms([]*CalendarAlarm{ca}) if err != nil { return -1, err } diff --git a/calendar_alarm_manager.go b/calendar_alarm_manager.go index 53937633..1fd3baf2 100644 --- a/calendar_alarm_manager.go +++ b/calendar_alarm_manager.go @@ -24,7 +24,7 @@ func (ca *CalendarAlarmManager) Many2One() *Many2One { // CreateCalendarAlarmManager creates a new calendar.alarm_manager model and returns its id. func (c *Client) CreateCalendarAlarmManager(ca *CalendarAlarmManager) (int64, error) { - ids, err := c.Create(CalendarAlarmManagerModel, []interface{}{ca}) + ids, err := c.CreateCalendarAlarmManagers([]*CalendarAlarmManager{ca}) if err != nil { return -1, err } diff --git a/calendar_attendee.go b/calendar_attendee.go index c12aa77f..fbc0c56d 100644 --- a/calendar_attendee.go +++ b/calendar_attendee.go @@ -35,7 +35,7 @@ func (ca *CalendarAttendee) Many2One() *Many2One { // CreateCalendarAttendee creates a new calendar.attendee model and returns its id. func (c *Client) CreateCalendarAttendee(ca *CalendarAttendee) (int64, error) { - ids, err := c.Create(CalendarAttendeeModel, []interface{}{ca}) + ids, err := c.CreateCalendarAttendees([]*CalendarAttendee{ca}) if err != nil { return -1, err } diff --git a/calendar_contacts.go b/calendar_contacts.go index 56edd20a..6d8a3a8e 100644 --- a/calendar_contacts.go +++ b/calendar_contacts.go @@ -31,7 +31,7 @@ func (cc *CalendarContacts) Many2One() *Many2One { // CreateCalendarContacts creates a new calendar.contacts model and returns its id. func (c *Client) CreateCalendarContacts(cc *CalendarContacts) (int64, error) { - ids, err := c.Create(CalendarContactsModel, []interface{}{cc}) + ids, err := c.CreateCalendarContactss([]*CalendarContacts{cc}) if err != nil { return -1, err } diff --git a/calendar_event.go b/calendar_event.go index baea6b1b..31591396 100644 --- a/calendar_event.go +++ b/calendar_event.go @@ -90,7 +90,7 @@ func (ce *CalendarEvent) Many2One() *Many2One { // CreateCalendarEvent creates a new calendar.event model and returns its id. func (c *Client) CreateCalendarEvent(ce *CalendarEvent) (int64, error) { - ids, err := c.Create(CalendarEventModel, []interface{}{ce}) + ids, err := c.CreateCalendarEvents([]*CalendarEvent{ce}) if err != nil { return -1, err } diff --git a/calendar_event_type.go b/calendar_event_type.go index 4dc397fe..83154d05 100644 --- a/calendar_event_type.go +++ b/calendar_event_type.go @@ -29,7 +29,7 @@ func (cet *CalendarEventType) Many2One() *Many2One { // CreateCalendarEventType creates a new calendar.event.type model and returns its id. func (c *Client) CreateCalendarEventType(cet *CalendarEventType) (int64, error) { - ids, err := c.Create(CalendarEventTypeModel, []interface{}{cet}) + ids, err := c.CreateCalendarEventTypes([]*CalendarEventType{cet}) if err != nil { return -1, err } diff --git a/cash_box_in.go b/cash_box_in.go index ec4e5469..d94b4aac 100644 --- a/cash_box_in.go +++ b/cash_box_in.go @@ -31,7 +31,7 @@ func (cbi *CashBoxIn) Many2One() *Many2One { // CreateCashBoxIn creates a new cash.box.in model and returns its id. func (c *Client) CreateCashBoxIn(cbi *CashBoxIn) (int64, error) { - ids, err := c.Create(CashBoxInModel, []interface{}{cbi}) + ids, err := c.CreateCashBoxIns([]*CashBoxIn{cbi}) if err != nil { return -1, err } diff --git a/cash_box_out.go b/cash_box_out.go index 1a34f214..49e1888b 100644 --- a/cash_box_out.go +++ b/cash_box_out.go @@ -30,7 +30,7 @@ func (cbo *CashBoxOut) Many2One() *Many2One { // CreateCashBoxOut creates a new cash.box.out model and returns its id. func (c *Client) CreateCashBoxOut(cbo *CashBoxOut) (int64, error) { - ids, err := c.Create(CashBoxOutModel, []interface{}{cbo}) + ids, err := c.CreateCashBoxOuts([]*CashBoxOut{cbo}) if err != nil { return -1, err } diff --git a/change_password_user.go b/change_password_user.go index eb88f256..837fc251 100644 --- a/change_password_user.go +++ b/change_password_user.go @@ -32,7 +32,7 @@ func (cpu *ChangePasswordUser) Many2One() *Many2One { // CreateChangePasswordUser creates a new change.password.user model and returns its id. func (c *Client) CreateChangePasswordUser(cpu *ChangePasswordUser) (int64, error) { - ids, err := c.Create(ChangePasswordUserModel, []interface{}{cpu}) + ids, err := c.CreateChangePasswordUsers([]*ChangePasswordUser{cpu}) if err != nil { return -1, err } diff --git a/change_password_wizard.go b/change_password_wizard.go index a72aafea..621437f4 100644 --- a/change_password_wizard.go +++ b/change_password_wizard.go @@ -29,7 +29,7 @@ func (cpw *ChangePasswordWizard) Many2One() *Many2One { // CreateChangePasswordWizard creates a new change.password.wizard model and returns its id. func (c *Client) CreateChangePasswordWizard(cpw *ChangePasswordWizard) (int64, error) { - ids, err := c.Create(ChangePasswordWizardModel, []interface{}{cpw}) + ids, err := c.CreateChangePasswordWizards([]*ChangePasswordWizard{cpw}) if err != nil { return -1, err } diff --git a/crm_activity_report.go b/crm_activity_report.go index cbf9183e..c4328227 100644 --- a/crm_activity_report.go +++ b/crm_activity_report.go @@ -39,7 +39,7 @@ func (car *CrmActivityReport) Many2One() *Many2One { // CreateCrmActivityReport creates a new crm.activity.report model and returns its id. func (c *Client) CreateCrmActivityReport(car *CrmActivityReport) (int64, error) { - ids, err := c.Create(CrmActivityReportModel, []interface{}{car}) + ids, err := c.CreateCrmActivityReports([]*CrmActivityReport{car}) if err != nil { return -1, err } diff --git a/crm_lead.go b/crm_lead.go index f850b5de..f4564d37 100644 --- a/crm_lead.go +++ b/crm_lead.go @@ -100,7 +100,7 @@ func (cl *CrmLead) Many2One() *Many2One { // CreateCrmLead creates a new crm.lead model and returns its id. func (c *Client) CreateCrmLead(cl *CrmLead) (int64, error) { - ids, err := c.Create(CrmLeadModel, []interface{}{cl}) + ids, err := c.CreateCrmLeads([]*CrmLead{cl}) if err != nil { return -1, err } diff --git a/crm_lead2opportunity_partner.go b/crm_lead2opportunity_partner.go index 31b309c1..be70f124 100644 --- a/crm_lead2opportunity_partner.go +++ b/crm_lead2opportunity_partner.go @@ -34,7 +34,7 @@ func (clp *CrmLead2OpportunityPartner) Many2One() *Many2One { // CreateCrmLead2OpportunityPartner creates a new crm.lead2opportunity.partner model and returns its id. func (c *Client) CreateCrmLead2OpportunityPartner(clp *CrmLead2OpportunityPartner) (int64, error) { - ids, err := c.Create(CrmLead2OpportunityPartnerModel, []interface{}{clp}) + ids, err := c.CreateCrmLead2OpportunityPartners([]*CrmLead2OpportunityPartner{clp}) if err != nil { return -1, err } diff --git a/crm_lead2opportunity_partner_mass.go b/crm_lead2opportunity_partner_mass.go index 2ed28560..80788cd9 100644 --- a/crm_lead2opportunity_partner_mass.go +++ b/crm_lead2opportunity_partner_mass.go @@ -37,7 +37,7 @@ func (clpm *CrmLead2OpportunityPartnerMass) Many2One() *Many2One { // CreateCrmLead2OpportunityPartnerMass creates a new crm.lead2opportunity.partner.mass model and returns its id. func (c *Client) CreateCrmLead2OpportunityPartnerMass(clpm *CrmLead2OpportunityPartnerMass) (int64, error) { - ids, err := c.Create(CrmLead2OpportunityPartnerMassModel, []interface{}{clpm}) + ids, err := c.CreateCrmLead2OpportunityPartnerMasss([]*CrmLead2OpportunityPartnerMass{clpm}) if err != nil { return -1, err } diff --git a/crm_lead_lost.go b/crm_lead_lost.go index 92bc3fbd..69d0393c 100644 --- a/crm_lead_lost.go +++ b/crm_lead_lost.go @@ -29,7 +29,7 @@ func (cll *CrmLeadLost) Many2One() *Many2One { // CreateCrmLeadLost creates a new crm.lead.lost model and returns its id. func (c *Client) CreateCrmLeadLost(cll *CrmLeadLost) (int64, error) { - ids, err := c.Create(CrmLeadLostModel, []interface{}{cll}) + ids, err := c.CreateCrmLeadLosts([]*CrmLeadLost{cll}) if err != nil { return -1, err } diff --git a/crm_lead_tag.go b/crm_lead_tag.go index 4c791d26..957d6b4e 100644 --- a/crm_lead_tag.go +++ b/crm_lead_tag.go @@ -30,7 +30,7 @@ func (clt *CrmLeadTag) Many2One() *Many2One { // CreateCrmLeadTag creates a new crm.lead.tag model and returns its id. func (c *Client) CreateCrmLeadTag(clt *CrmLeadTag) (int64, error) { - ids, err := c.Create(CrmLeadTagModel, []interface{}{clt}) + ids, err := c.CreateCrmLeadTags([]*CrmLeadTag{clt}) if err != nil { return -1, err } diff --git a/crm_lost_reason.go b/crm_lost_reason.go index fd5c0b4e..d5df99f2 100644 --- a/crm_lost_reason.go +++ b/crm_lost_reason.go @@ -30,7 +30,7 @@ func (clr *CrmLostReason) Many2One() *Many2One { // CreateCrmLostReason creates a new crm.lost.reason model and returns its id. func (c *Client) CreateCrmLostReason(clr *CrmLostReason) (int64, error) { - ids, err := c.Create(CrmLostReasonModel, []interface{}{clr}) + ids, err := c.CreateCrmLostReasons([]*CrmLostReason{clr}) if err != nil { return -1, err } diff --git a/crm_merge_opportunity.go b/crm_merge_opportunity.go index 474a4564..e7f617aa 100644 --- a/crm_merge_opportunity.go +++ b/crm_merge_opportunity.go @@ -31,7 +31,7 @@ func (cmo *CrmMergeOpportunity) Many2One() *Many2One { // CreateCrmMergeOpportunity creates a new crm.merge.opportunity model and returns its id. func (c *Client) CreateCrmMergeOpportunity(cmo *CrmMergeOpportunity) (int64, error) { - ids, err := c.Create(CrmMergeOpportunityModel, []interface{}{cmo}) + ids, err := c.CreateCrmMergeOpportunitys([]*CrmMergeOpportunity{cmo}) if err != nil { return -1, err } diff --git a/crm_opportunity_report.go b/crm_opportunity_report.go index b34eb787..22fb32b4 100644 --- a/crm_opportunity_report.go +++ b/crm_opportunity_report.go @@ -52,7 +52,7 @@ func (cor *CrmOpportunityReport) Many2One() *Many2One { // CreateCrmOpportunityReport creates a new crm.opportunity.report model and returns its id. func (c *Client) CreateCrmOpportunityReport(cor *CrmOpportunityReport) (int64, error) { - ids, err := c.Create(CrmOpportunityReportModel, []interface{}{cor}) + ids, err := c.CreateCrmOpportunityReports([]*CrmOpportunityReport{cor}) if err != nil { return -1, err } diff --git a/crm_partner_binding.go b/crm_partner_binding.go index b2d49201..b6ac1805 100644 --- a/crm_partner_binding.go +++ b/crm_partner_binding.go @@ -30,7 +30,7 @@ func (cpb *CrmPartnerBinding) Many2One() *Many2One { // CreateCrmPartnerBinding creates a new crm.partner.binding model and returns its id. func (c *Client) CreateCrmPartnerBinding(cpb *CrmPartnerBinding) (int64, error) { - ids, err := c.Create(CrmPartnerBindingModel, []interface{}{cpb}) + ids, err := c.CreateCrmPartnerBindings([]*CrmPartnerBinding{cpb}) if err != nil { return -1, err } diff --git a/crm_stage.go b/crm_stage.go index 23b1001d..189eb446 100644 --- a/crm_stage.go +++ b/crm_stage.go @@ -36,7 +36,7 @@ func (cs *CrmStage) Many2One() *Many2One { // CreateCrmStage creates a new crm.stage model and returns its id. func (c *Client) CreateCrmStage(cs *CrmStage) (int64, error) { - ids, err := c.Create(CrmStageModel, []interface{}{cs}) + ids, err := c.CreateCrmStages([]*CrmStage{cs}) if err != nil { return -1, err } diff --git a/crm_team.go b/crm_team.go index def92b52..51168afd 100644 --- a/crm_team.go +++ b/crm_team.go @@ -80,7 +80,7 @@ func (ct *CrmTeam) Many2One() *Many2One { // CreateCrmTeam creates a new crm.team model and returns its id. func (c *Client) CreateCrmTeam(ct *CrmTeam) (int64, error) { - ids, err := c.Create(CrmTeamModel, []interface{}{ct}) + ids, err := c.CreateCrmTeams([]*CrmTeam{ct}) if err != nil { return -1, err } diff --git a/decimal_precision.go b/decimal_precision.go index dfc24ee0..6eee3b6d 100644 --- a/decimal_precision.go +++ b/decimal_precision.go @@ -30,7 +30,7 @@ func (dp *DecimalPrecision) Many2One() *Many2One { // CreateDecimalPrecision creates a new decimal.precision model and returns its id. func (c *Client) CreateDecimalPrecision(dp *DecimalPrecision) (int64, error) { - ids, err := c.Create(DecimalPrecisionModel, []interface{}{dp}) + ids, err := c.CreateDecimalPrecisions([]*DecimalPrecision{dp}) if err != nil { return -1, err } diff --git a/decimal_precision_test.go b/decimal_precision_test.go index 866a0a3c..59a9fb57 100644 --- a/decimal_precision_test.go +++ b/decimal_precision_test.go @@ -31,7 +31,7 @@ func (dpt *DecimalPrecisionTest) Many2One() *Many2One { // CreateDecimalPrecisionTest creates a new decimal.precision.test model and returns its id. func (c *Client) CreateDecimalPrecisionTest(dpt *DecimalPrecisionTest) (int64, error) { - ids, err := c.Create(DecimalPrecisionTestModel, []interface{}{dpt}) + ids, err := c.CreateDecimalPrecisionTests([]*DecimalPrecisionTest{dpt}) if err != nil { return -1, err } diff --git a/email_template_preview.go b/email_template_preview.go index d15e3091..39cd3797 100644 --- a/email_template_preview.go +++ b/email_template_preview.go @@ -55,7 +55,7 @@ func (ep *EmailTemplatePreview) Many2One() *Many2One { // CreateEmailTemplatePreview creates a new email_template.preview model and returns its id. func (c *Client) CreateEmailTemplatePreview(ep *EmailTemplatePreview) (int64, error) { - ids, err := c.Create(EmailTemplatePreviewModel, []interface{}{ep}) + ids, err := c.CreateEmailTemplatePreviews([]*EmailTemplatePreview{ep}) if err != nil { return -1, err } diff --git a/fetchmail_server.go b/fetchmail_server.go index 8b48566b..83283236 100644 --- a/fetchmail_server.go +++ b/fetchmail_server.go @@ -46,7 +46,7 @@ func (fs *FetchmailServer) Many2One() *Many2One { // CreateFetchmailServer creates a new fetchmail.server model and returns its id. func (c *Client) CreateFetchmailServer(fs *FetchmailServer) (int64, error) { - ids, err := c.Create(FetchmailServerModel, []interface{}{fs}) + ids, err := c.CreateFetchmailServers([]*FetchmailServer{fs}) if err != nil { return -1, err } diff --git a/format_address_mixin.go b/format_address_mixin.go index 9aafd6fd..d39d4e4b 100644 --- a/format_address_mixin.go +++ b/format_address_mixin.go @@ -24,7 +24,7 @@ func (fam *FormatAddressMixin) Many2One() *Many2One { // CreateFormatAddressMixin creates a new format.address.mixin model and returns its id. func (c *Client) CreateFormatAddressMixin(fam *FormatAddressMixin) (int64, error) { - ids, err := c.Create(FormatAddressMixinModel, []interface{}{fam}) + ids, err := c.CreateFormatAddressMixins([]*FormatAddressMixin{fam}) if err != nil { return -1, err } diff --git a/generator/cmd/tmpl/model.tmpl b/generator/cmd/tmpl/model.tmpl index a1719f43..c0e0b40d 100644 --- a/generator/cmd/tmpl/model.tmpl +++ b/generator/cmd/tmpl/model.tmpl @@ -22,7 +22,7 @@ func ({{.VarName}} *{{.StructName}}) Many2One() *Many2One { // Create{{.StructName}} creates a new {{ .Name }} model and returns its id. func (c *Client) Create{{.StructName}}({{.VarName}} *{{.StructName}}) (int64, error) { - ids, err := c.Create({{.StructName}}Model, []interface{}{ {{.VarName}} }) + ids, err := c.Create{{.StructName}}s([]*{{.StructName}}{ {{.VarName}} }) if err != nil { return -1, err } diff --git a/generator/generator b/generator/generator index cf496fa9..02b65362 100755 Binary files a/generator/generator and b/generator/generator differ diff --git a/hr_department.go b/hr_department.go index d51d398c..2bb421f2 100644 --- a/hr_department.go +++ b/hr_department.go @@ -54,7 +54,7 @@ func (hd *HrDepartment) Many2One() *Many2One { // CreateHrDepartment creates a new hr.department model and returns its id. func (c *Client) CreateHrDepartment(hd *HrDepartment) (int64, error) { - ids, err := c.Create(HrDepartmentModel, []interface{}{hd}) + ids, err := c.CreateHrDepartments([]*HrDepartment{hd}) if err != nil { return -1, err } diff --git a/hr_employee.go b/hr_employee.go index ebf8eca2..25a72de5 100644 --- a/hr_employee.go +++ b/hr_employee.go @@ -86,7 +86,7 @@ func (he *HrEmployee) Many2One() *Many2One { // CreateHrEmployee creates a new hr.employee model and returns its id. func (c *Client) CreateHrEmployee(he *HrEmployee) (int64, error) { - ids, err := c.Create(HrEmployeeModel, []interface{}{he}) + ids, err := c.CreateHrEmployees([]*HrEmployee{he}) if err != nil { return -1, err } diff --git a/hr_employee_category.go b/hr_employee_category.go index 831ba108..facf7e59 100644 --- a/hr_employee_category.go +++ b/hr_employee_category.go @@ -31,7 +31,7 @@ func (hec *HrEmployeeCategory) Many2One() *Many2One { // CreateHrEmployeeCategory creates a new hr.employee.category model and returns its id. func (c *Client) CreateHrEmployeeCategory(hec *HrEmployeeCategory) (int64, error) { - ids, err := c.Create(HrEmployeeCategoryModel, []interface{}{hec}) + ids, err := c.CreateHrEmployeeCategorys([]*HrEmployeeCategory{hec}) if err != nil { return -1, err } diff --git a/hr_holidays.go b/hr_holidays.go index 507a51f0..85502e30 100644 --- a/hr_holidays.go +++ b/hr_holidays.go @@ -64,7 +64,7 @@ func (hh *HrHolidays) Many2One() *Many2One { // CreateHrHolidays creates a new hr.holidays model and returns its id. func (c *Client) CreateHrHolidays(hh *HrHolidays) (int64, error) { - ids, err := c.Create(HrHolidaysModel, []interface{}{hh}) + ids, err := c.CreateHrHolidayss([]*HrHolidays{hh}) if err != nil { return -1, err } diff --git a/hr_holidays_remaining_leaves_user.go b/hr_holidays_remaining_leaves_user.go index 68b47cf5..e9871a1d 100644 --- a/hr_holidays_remaining_leaves_user.go +++ b/hr_holidays_remaining_leaves_user.go @@ -28,7 +28,7 @@ func (hhrlu *HrHolidaysRemainingLeavesUser) Many2One() *Many2One { // CreateHrHolidaysRemainingLeavesUser creates a new hr.holidays.remaining.leaves.user model and returns its id. func (c *Client) CreateHrHolidaysRemainingLeavesUser(hhrlu *HrHolidaysRemainingLeavesUser) (int64, error) { - ids, err := c.Create(HrHolidaysRemainingLeavesUserModel, []interface{}{hhrlu}) + ids, err := c.CreateHrHolidaysRemainingLeavesUsers([]*HrHolidaysRemainingLeavesUser{hhrlu}) if err != nil { return -1, err } diff --git a/hr_holidays_status.go b/hr_holidays_status.go index b02cba55..630ddfe1 100644 --- a/hr_holidays_status.go +++ b/hr_holidays_status.go @@ -42,7 +42,7 @@ func (hhs *HrHolidaysStatus) Many2One() *Many2One { // CreateHrHolidaysStatus creates a new hr.holidays.status model and returns its id. func (c *Client) CreateHrHolidaysStatus(hhs *HrHolidaysStatus) (int64, error) { - ids, err := c.Create(HrHolidaysStatusModel, []interface{}{hhs}) + ids, err := c.CreateHrHolidaysStatuss([]*HrHolidaysStatus{hhs}) if err != nil { return -1, err } diff --git a/hr_holidays_summary_dept.go b/hr_holidays_summary_dept.go index 6a2ba96a..35661b28 100644 --- a/hr_holidays_summary_dept.go +++ b/hr_holidays_summary_dept.go @@ -31,7 +31,7 @@ func (hhsd *HrHolidaysSummaryDept) Many2One() *Many2One { // CreateHrHolidaysSummaryDept creates a new hr.holidays.summary.dept model and returns its id. func (c *Client) CreateHrHolidaysSummaryDept(hhsd *HrHolidaysSummaryDept) (int64, error) { - ids, err := c.Create(HrHolidaysSummaryDeptModel, []interface{}{hhsd}) + ids, err := c.CreateHrHolidaysSummaryDepts([]*HrHolidaysSummaryDept{hhsd}) if err != nil { return -1, err } diff --git a/hr_holidays_summary_employee.go b/hr_holidays_summary_employee.go index 62613af0..55d60a01 100644 --- a/hr_holidays_summary_employee.go +++ b/hr_holidays_summary_employee.go @@ -31,7 +31,7 @@ func (hhse *HrHolidaysSummaryEmployee) Many2One() *Many2One { // CreateHrHolidaysSummaryEmployee creates a new hr.holidays.summary.employee model and returns its id. func (c *Client) CreateHrHolidaysSummaryEmployee(hhse *HrHolidaysSummaryEmployee) (int64, error) { - ids, err := c.Create(HrHolidaysSummaryEmployeeModel, []interface{}{hhse}) + ids, err := c.CreateHrHolidaysSummaryEmployees([]*HrHolidaysSummaryEmployee{hhse}) if err != nil { return -1, err } diff --git a/hr_job.go b/hr_job.go index a9b79eff..9d6dfcb8 100644 --- a/hr_job.go +++ b/hr_job.go @@ -50,7 +50,7 @@ func (hj *HrJob) Many2One() *Many2One { // CreateHrJob creates a new hr.job model and returns its id. func (c *Client) CreateHrJob(hj *HrJob) (int64, error) { - ids, err := c.Create(HrJobModel, []interface{}{hj}) + ids, err := c.CreateHrJobs([]*HrJob{hj}) if err != nil { return -1, err } diff --git a/iap_account.go b/iap_account.go index a2b7dc5d..e0205b9a 100644 --- a/iap_account.go +++ b/iap_account.go @@ -31,7 +31,7 @@ func (ia *IapAccount) Many2One() *Many2One { // CreateIapAccount creates a new iap.account model and returns its id. func (c *Client) CreateIapAccount(ia *IapAccount) (int64, error) { - ids, err := c.Create(IapAccountModel, []interface{}{ia}) + ids, err := c.CreateIapAccounts([]*IapAccount{ia}) if err != nil { return -1, err } diff --git a/im_livechat_channel.go b/im_livechat_channel.go index edcb1dd7..a85c669c 100644 --- a/im_livechat_channel.go +++ b/im_livechat_channel.go @@ -43,7 +43,7 @@ func (ic *ImLivechatChannel) Many2One() *Many2One { // CreateImLivechatChannel creates a new im_livechat.channel model and returns its id. func (c *Client) CreateImLivechatChannel(ic *ImLivechatChannel) (int64, error) { - ids, err := c.Create(ImLivechatChannelModel, []interface{}{ic}) + ids, err := c.CreateImLivechatChannels([]*ImLivechatChannel{ic}) if err != nil { return -1, err } diff --git a/im_livechat_channel_rule.go b/im_livechat_channel_rule.go index 1b3afffa..0afed85f 100644 --- a/im_livechat_channel_rule.go +++ b/im_livechat_channel_rule.go @@ -34,7 +34,7 @@ func (icr *ImLivechatChannelRule) Many2One() *Many2One { // CreateImLivechatChannelRule creates a new im_livechat.channel.rule model and returns its id. func (c *Client) CreateImLivechatChannelRule(icr *ImLivechatChannelRule) (int64, error) { - ids, err := c.Create(ImLivechatChannelRuleModel, []interface{}{icr}) + ids, err := c.CreateImLivechatChannelRules([]*ImLivechatChannelRule{icr}) if err != nil { return -1, err } diff --git a/im_livechat_report_channel.go b/im_livechat_report_channel.go index 03237852..e17c50f9 100644 --- a/im_livechat_report_channel.go +++ b/im_livechat_report_channel.go @@ -35,7 +35,7 @@ func (irc *ImLivechatReportChannel) Many2One() *Many2One { // CreateImLivechatReportChannel creates a new im_livechat.report.channel model and returns its id. func (c *Client) CreateImLivechatReportChannel(irc *ImLivechatReportChannel) (int64, error) { - ids, err := c.Create(ImLivechatReportChannelModel, []interface{}{irc}) + ids, err := c.CreateImLivechatReportChannels([]*ImLivechatReportChannel{irc}) if err != nil { return -1, err } diff --git a/im_livechat_report_operator.go b/im_livechat_report_operator.go index c036d2b6..d79f0182 100644 --- a/im_livechat_report_operator.go +++ b/im_livechat_report_operator.go @@ -31,7 +31,7 @@ func (iro *ImLivechatReportOperator) Many2One() *Many2One { // CreateImLivechatReportOperator creates a new im_livechat.report.operator model and returns its id. func (c *Client) CreateImLivechatReportOperator(iro *ImLivechatReportOperator) (int64, error) { - ids, err := c.Create(ImLivechatReportOperatorModel, []interface{}{iro}) + ids, err := c.CreateImLivechatReportOperators([]*ImLivechatReportOperator{iro}) if err != nil { return -1, err } diff --git a/ir_actions_act_url.go b/ir_actions_act_url.go index 015ba10f..3d550bf3 100644 --- a/ir_actions_act_url.go +++ b/ir_actions_act_url.go @@ -36,7 +36,7 @@ func (iaa *IrActionsActUrl) Many2One() *Many2One { // CreateIrActionsActUrl creates a new ir.actions.act_url model and returns its id. func (c *Client) CreateIrActionsActUrl(iaa *IrActionsActUrl) (int64, error) { - ids, err := c.Create(IrActionsActUrlModel, []interface{}{iaa}) + ids, err := c.CreateIrActionsActUrls([]*IrActionsActUrl{iaa}) if err != nil { return -1, err } diff --git a/ir_actions_act_window.go b/ir_actions_act_window.go index a76b859f..c789e313 100644 --- a/ir_actions_act_window.go +++ b/ir_actions_act_window.go @@ -53,7 +53,7 @@ func (iaa *IrActionsActWindow) Many2One() *Many2One { // CreateIrActionsActWindow creates a new ir.actions.act_window model and returns its id. func (c *Client) CreateIrActionsActWindow(iaa *IrActionsActWindow) (int64, error) { - ids, err := c.Create(IrActionsActWindowModel, []interface{}{iaa}) + ids, err := c.CreateIrActionsActWindows([]*IrActionsActWindow{iaa}) if err != nil { return -1, err } diff --git a/ir_actions_act_window_close.go b/ir_actions_act_window_close.go index d6a53fe3..6bdd63b8 100644 --- a/ir_actions_act_window_close.go +++ b/ir_actions_act_window_close.go @@ -34,7 +34,7 @@ func (iaa *IrActionsActWindowClose) Many2One() *Many2One { // CreateIrActionsActWindowClose creates a new ir.actions.act_window_close model and returns its id. func (c *Client) CreateIrActionsActWindowClose(iaa *IrActionsActWindowClose) (int64, error) { - ids, err := c.Create(IrActionsActWindowCloseModel, []interface{}{iaa}) + ids, err := c.CreateIrActionsActWindowCloses([]*IrActionsActWindowClose{iaa}) if err != nil { return -1, err } diff --git a/ir_actions_act_window_view.go b/ir_actions_act_window_view.go index dea08bca..e40be269 100644 --- a/ir_actions_act_window_view.go +++ b/ir_actions_act_window_view.go @@ -33,7 +33,7 @@ func (iaav *IrActionsActWindowView) Many2One() *Many2One { // CreateIrActionsActWindowView creates a new ir.actions.act_window.view model and returns its id. func (c *Client) CreateIrActionsActWindowView(iaav *IrActionsActWindowView) (int64, error) { - ids, err := c.Create(IrActionsActWindowViewModel, []interface{}{iaav}) + ids, err := c.CreateIrActionsActWindowViews([]*IrActionsActWindowView{iaav}) if err != nil { return -1, err } diff --git a/ir_actions_actions.go b/ir_actions_actions.go index c4dbcb2a..67a48fcf 100644 --- a/ir_actions_actions.go +++ b/ir_actions_actions.go @@ -34,7 +34,7 @@ func (iaa *IrActionsActions) Many2One() *Many2One { // CreateIrActionsActions creates a new ir.actions.actions model and returns its id. func (c *Client) CreateIrActionsActions(iaa *IrActionsActions) (int64, error) { - ids, err := c.Create(IrActionsActionsModel, []interface{}{iaa}) + ids, err := c.CreateIrActionsActionss([]*IrActionsActions{iaa}) if err != nil { return -1, err } diff --git a/ir_actions_client.go b/ir_actions_client.go index 329bd24b..a69448e5 100644 --- a/ir_actions_client.go +++ b/ir_actions_client.go @@ -40,7 +40,7 @@ func (iac *IrActionsClient) Many2One() *Many2One { // CreateIrActionsClient creates a new ir.actions.client model and returns its id. func (c *Client) CreateIrActionsClient(iac *IrActionsClient) (int64, error) { - ids, err := c.Create(IrActionsClientModel, []interface{}{iac}) + ids, err := c.CreateIrActionsClients([]*IrActionsClient{iac}) if err != nil { return -1, err } diff --git a/ir_actions_report.go b/ir_actions_report.go index 5e4d5d9e..cddf8736 100644 --- a/ir_actions_report.go +++ b/ir_actions_report.go @@ -44,7 +44,7 @@ func (iar *IrActionsReport) Many2One() *Many2One { // CreateIrActionsReport creates a new ir.actions.report model and returns its id. func (c *Client) CreateIrActionsReport(iar *IrActionsReport) (int64, error) { - ids, err := c.Create(IrActionsReportModel, []interface{}{iar}) + ids, err := c.CreateIrActionsReports([]*IrActionsReport{iar}) if err != nil { return -1, err } diff --git a/ir_actions_server.go b/ir_actions_server.go index 68ec167b..4103a19f 100644 --- a/ir_actions_server.go +++ b/ir_actions_server.go @@ -48,7 +48,7 @@ func (ias *IrActionsServer) Many2One() *Many2One { // CreateIrActionsServer creates a new ir.actions.server model and returns its id. func (c *Client) CreateIrActionsServer(ias *IrActionsServer) (int64, error) { - ids, err := c.Create(IrActionsServerModel, []interface{}{ias}) + ids, err := c.CreateIrActionsServers([]*IrActionsServer{ias}) if err != nil { return -1, err } diff --git a/ir_actions_todo.go b/ir_actions_todo.go index f5489aa2..5cffb47a 100644 --- a/ir_actions_todo.go +++ b/ir_actions_todo.go @@ -32,7 +32,7 @@ func (iat *IrActionsTodo) Many2One() *Many2One { // CreateIrActionsTodo creates a new ir.actions.todo model and returns its id. func (c *Client) CreateIrActionsTodo(iat *IrActionsTodo) (int64, error) { - ids, err := c.Create(IrActionsTodoModel, []interface{}{iat}) + ids, err := c.CreateIrActionsTodos([]*IrActionsTodo{iat}) if err != nil { return -1, err } diff --git a/ir_attachment.go b/ir_attachment.go index cb150149..d86eacd6 100644 --- a/ir_attachment.go +++ b/ir_attachment.go @@ -48,7 +48,7 @@ func (ia *IrAttachment) Many2One() *Many2One { // CreateIrAttachment creates a new ir.attachment model and returns its id. func (c *Client) CreateIrAttachment(ia *IrAttachment) (int64, error) { - ids, err := c.Create(IrAttachmentModel, []interface{}{ia}) + ids, err := c.CreateIrAttachments([]*IrAttachment{ia}) if err != nil { return -1, err } diff --git a/ir_autovacuum.go b/ir_autovacuum.go index e52ef43a..2561c90a 100644 --- a/ir_autovacuum.go +++ b/ir_autovacuum.go @@ -24,7 +24,7 @@ func (ia *IrAutovacuum) Many2One() *Many2One { // CreateIrAutovacuum creates a new ir.autovacuum model and returns its id. func (c *Client) CreateIrAutovacuum(ia *IrAutovacuum) (int64, error) { - ids, err := c.Create(IrAutovacuumModel, []interface{}{ia}) + ids, err := c.CreateIrAutovacuums([]*IrAutovacuum{ia}) if err != nil { return -1, err } diff --git a/ir_config_parameter.go b/ir_config_parameter.go index 5a2c906a..7076b3fb 100644 --- a/ir_config_parameter.go +++ b/ir_config_parameter.go @@ -30,7 +30,7 @@ func (ic *IrConfigParameter) Many2One() *Many2One { // CreateIrConfigParameter creates a new ir.config_parameter model and returns its id. func (c *Client) CreateIrConfigParameter(ic *IrConfigParameter) (int64, error) { - ids, err := c.Create(IrConfigParameterModel, []interface{}{ic}) + ids, err := c.CreateIrConfigParameters([]*IrConfigParameter{ic}) if err != nil { return -1, err } diff --git a/ir_cron.go b/ir_cron.go index 2cd44fa2..b71468e1 100644 --- a/ir_cron.go +++ b/ir_cron.go @@ -55,7 +55,7 @@ func (ic *IrCron) Many2One() *Many2One { // CreateIrCron creates a new ir.cron model and returns its id. func (c *Client) CreateIrCron(ic *IrCron) (int64, error) { - ids, err := c.Create(IrCronModel, []interface{}{ic}) + ids, err := c.CreateIrCrons([]*IrCron{ic}) if err != nil { return -1, err } diff --git a/ir_default.go b/ir_default.go index 252d3319..0486616a 100644 --- a/ir_default.go +++ b/ir_default.go @@ -33,7 +33,7 @@ func (ID *IrDefault) Many2One() *Many2One { // CreateIrDefault creates a new ir.default model and returns its id. func (c *Client) CreateIrDefault(ID *IrDefault) (int64, error) { - ids, err := c.Create(IrDefaultModel, []interface{}{ID}) + ids, err := c.CreateIrDefaults([]*IrDefault{ID}) if err != nil { return -1, err } diff --git a/ir_exports.go b/ir_exports.go index b2169cc2..abd7b649 100644 --- a/ir_exports.go +++ b/ir_exports.go @@ -31,7 +31,7 @@ func (ie *IrExports) Many2One() *Many2One { // CreateIrExports creates a new ir.exports model and returns its id. func (c *Client) CreateIrExports(ie *IrExports) (int64, error) { - ids, err := c.Create(IrExportsModel, []interface{}{ie}) + ids, err := c.CreateIrExportss([]*IrExports{ie}) if err != nil { return -1, err } diff --git a/ir_exports_line.go b/ir_exports_line.go index b9aec4cf..c47a52d8 100644 --- a/ir_exports_line.go +++ b/ir_exports_line.go @@ -30,7 +30,7 @@ func (iel *IrExportsLine) Many2One() *Many2One { // CreateIrExportsLine creates a new ir.exports.line model and returns its id. func (c *Client) CreateIrExportsLine(iel *IrExportsLine) (int64, error) { - ids, err := c.Create(IrExportsLineModel, []interface{}{iel}) + ids, err := c.CreateIrExportsLines([]*IrExportsLine{iel}) if err != nil { return -1, err } diff --git a/ir_fields_converter.go b/ir_fields_converter.go index 840f7b10..5ea8f0c4 100644 --- a/ir_fields_converter.go +++ b/ir_fields_converter.go @@ -24,7 +24,7 @@ func (ifc *IrFieldsConverter) Many2One() *Many2One { // CreateIrFieldsConverter creates a new ir.fields.converter model and returns its id. func (c *Client) CreateIrFieldsConverter(ifc *IrFieldsConverter) (int64, error) { - ids, err := c.Create(IrFieldsConverterModel, []interface{}{ifc}) + ids, err := c.CreateIrFieldsConverters([]*IrFieldsConverter{ifc}) if err != nil { return -1, err } diff --git a/ir_filters.go b/ir_filters.go index f0e3f37b..852d19af 100644 --- a/ir_filters.go +++ b/ir_filters.go @@ -37,7 +37,7 @@ func (IF *IrFilters) Many2One() *Many2One { // CreateIrFilters creates a new ir.filters model and returns its id. func (c *Client) CreateIrFilters(IF *IrFilters) (int64, error) { - ids, err := c.Create(IrFiltersModel, []interface{}{IF}) + ids, err := c.CreateIrFilterss([]*IrFilters{IF}) if err != nil { return -1, err } diff --git a/ir_http.go b/ir_http.go index 2ef252b7..ebc6ac2c 100644 --- a/ir_http.go +++ b/ir_http.go @@ -24,7 +24,7 @@ func (ih *IrHttp) Many2One() *Many2One { // CreateIrHttp creates a new ir.http model and returns its id. func (c *Client) CreateIrHttp(ih *IrHttp) (int64, error) { - ids, err := c.Create(IrHttpModel, []interface{}{ih}) + ids, err := c.CreateIrHttps([]*IrHttp{ih}) if err != nil { return -1, err } diff --git a/ir_logging.go b/ir_logging.go index 4e42130e..d847075c 100644 --- a/ir_logging.go +++ b/ir_logging.go @@ -36,7 +36,7 @@ func (il *IrLogging) Many2One() *Many2One { // CreateIrLogging creates a new ir.logging model and returns its id. func (c *Client) CreateIrLogging(il *IrLogging) (int64, error) { - ids, err := c.Create(IrLoggingModel, []interface{}{il}) + ids, err := c.CreateIrLoggings([]*IrLogging{il}) if err != nil { return -1, err } diff --git a/ir_mail_server.go b/ir_mail_server.go index 2b3cf96c..5c8066f6 100644 --- a/ir_mail_server.go +++ b/ir_mail_server.go @@ -37,7 +37,7 @@ func (im *IrMailServer) Many2One() *Many2One { // CreateIrMailServer creates a new ir.mail_server model and returns its id. func (c *Client) CreateIrMailServer(im *IrMailServer) (int64, error) { - ids, err := c.Create(IrMailServerModel, []interface{}{im}) + ids, err := c.CreateIrMailServers([]*IrMailServer{im}) if err != nil { return -1, err } diff --git a/ir_model.go b/ir_model.go index b3b65d92..5f0ac1e8 100644 --- a/ir_model.go +++ b/ir_model.go @@ -40,7 +40,7 @@ func (im *IrModel) Many2One() *Many2One { // CreateIrModel creates a new ir.model model and returns its id. func (c *Client) CreateIrModel(im *IrModel) (int64, error) { - ids, err := c.Create(IrModelModel, []interface{}{im}) + ids, err := c.CreateIrModels([]*IrModel{im}) if err != nil { return -1, err } diff --git a/ir_model_access.go b/ir_model_access.go index b9752a94..3b1f3a95 100644 --- a/ir_model_access.go +++ b/ir_model_access.go @@ -36,7 +36,7 @@ func (ima *IrModelAccess) Many2One() *Many2One { // CreateIrModelAccess creates a new ir.model.access model and returns its id. func (c *Client) CreateIrModelAccess(ima *IrModelAccess) (int64, error) { - ids, err := c.Create(IrModelAccessModel, []interface{}{ima}) + ids, err := c.CreateIrModelAccesss([]*IrModelAccess{ima}) if err != nil { return -1, err } diff --git a/ir_model_constraint.go b/ir_model_constraint.go index e8684777..f249761b 100644 --- a/ir_model_constraint.go +++ b/ir_model_constraint.go @@ -35,7 +35,7 @@ func (imc *IrModelConstraint) Many2One() *Many2One { // CreateIrModelConstraint creates a new ir.model.constraint model and returns its id. func (c *Client) CreateIrModelConstraint(imc *IrModelConstraint) (int64, error) { - ids, err := c.Create(IrModelConstraintModel, []interface{}{imc}) + ids, err := c.CreateIrModelConstraints([]*IrModelConstraint{imc}) if err != nil { return -1, err } diff --git a/ir_model_data.go b/ir_model_data.go index 3d6ba054..2995c929 100644 --- a/ir_model_data.go +++ b/ir_model_data.go @@ -37,7 +37,7 @@ func (imd *IrModelData) Many2One() *Many2One { // CreateIrModelData creates a new ir.model.data model and returns its id. func (c *Client) CreateIrModelData(imd *IrModelData) (int64, error) { - ids, err := c.Create(IrModelDataModel, []interface{}{imd}) + ids, err := c.CreateIrModelDatas([]*IrModelData{imd}) if err != nil { return -1, err } diff --git a/ir_model_fields.go b/ir_model_fields.go index e04f0d62..32d12eaf 100644 --- a/ir_model_fields.go +++ b/ir_model_fields.go @@ -58,7 +58,7 @@ func (imf *IrModelFields) Many2One() *Many2One { // CreateIrModelFields creates a new ir.model.fields model and returns its id. func (c *Client) CreateIrModelFields(imf *IrModelFields) (int64, error) { - ids, err := c.Create(IrModelFieldsModel, []interface{}{imf}) + ids, err := c.CreateIrModelFieldss([]*IrModelFields{imf}) if err != nil { return -1, err } diff --git a/ir_model_relation.go b/ir_model_relation.go index 5c9b5507..327bc8bf 100644 --- a/ir_model_relation.go +++ b/ir_model_relation.go @@ -33,7 +33,7 @@ func (imr *IrModelRelation) Many2One() *Many2One { // CreateIrModelRelation creates a new ir.model.relation model and returns its id. func (c *Client) CreateIrModelRelation(imr *IrModelRelation) (int64, error) { - ids, err := c.Create(IrModelRelationModel, []interface{}{imr}) + ids, err := c.CreateIrModelRelations([]*IrModelRelation{imr}) if err != nil { return -1, err } diff --git a/ir_module_category.go b/ir_module_category.go index 9660b94c..cab152f6 100644 --- a/ir_module_category.go +++ b/ir_module_category.go @@ -38,7 +38,7 @@ func (imc *IrModuleCategory) Many2One() *Many2One { // CreateIrModuleCategory creates a new ir.module.category model and returns its id. func (c *Client) CreateIrModuleCategory(imc *IrModuleCategory) (int64, error) { - ids, err := c.Create(IrModuleCategoryModel, []interface{}{imc}) + ids, err := c.CreateIrModuleCategorys([]*IrModuleCategory{imc}) if err != nil { return -1, err } diff --git a/ir_module_module.go b/ir_module_module.go index 8bfb542c..a8771f23 100644 --- a/ir_module_module.go +++ b/ir_module_module.go @@ -55,7 +55,7 @@ func (imm *IrModuleModule) Many2One() *Many2One { // CreateIrModuleModule creates a new ir.module.module model and returns its id. func (c *Client) CreateIrModuleModule(imm *IrModuleModule) (int64, error) { - ids, err := c.Create(IrModuleModuleModel, []interface{}{imm}) + ids, err := c.CreateIrModuleModules([]*IrModuleModule{imm}) if err != nil { return -1, err } diff --git a/ir_module_module_dependency.go b/ir_module_module_dependency.go index a5036a83..20884698 100644 --- a/ir_module_module_dependency.go +++ b/ir_module_module_dependency.go @@ -32,7 +32,7 @@ func (immd *IrModuleModuleDependency) Many2One() *Many2One { // CreateIrModuleModuleDependency creates a new ir.module.module.dependency model and returns its id. func (c *Client) CreateIrModuleModuleDependency(immd *IrModuleModuleDependency) (int64, error) { - ids, err := c.Create(IrModuleModuleDependencyModel, []interface{}{immd}) + ids, err := c.CreateIrModuleModuleDependencys([]*IrModuleModuleDependency{immd}) if err != nil { return -1, err } diff --git a/ir_module_module_exclusion.go b/ir_module_module_exclusion.go index f3e908fa..e0bb2b15 100644 --- a/ir_module_module_exclusion.go +++ b/ir_module_module_exclusion.go @@ -32,7 +32,7 @@ func (imme *IrModuleModuleExclusion) Many2One() *Many2One { // CreateIrModuleModuleExclusion creates a new ir.module.module.exclusion model and returns its id. func (c *Client) CreateIrModuleModuleExclusion(imme *IrModuleModuleExclusion) (int64, error) { - ids, err := c.Create(IrModuleModuleExclusionModel, []interface{}{imme}) + ids, err := c.CreateIrModuleModuleExclusions([]*IrModuleModuleExclusion{imme}) if err != nil { return -1, err } diff --git a/ir_property.go b/ir_property.go index 4f134141..1d76deb2 100644 --- a/ir_property.go +++ b/ir_property.go @@ -39,7 +39,7 @@ func (ip *IrProperty) Many2One() *Many2One { // CreateIrProperty creates a new ir.property model and returns its id. func (c *Client) CreateIrProperty(ip *IrProperty) (int64, error) { - ids, err := c.Create(IrPropertyModel, []interface{}{ip}) + ids, err := c.CreateIrPropertys([]*IrProperty{ip}) if err != nil { return -1, err } diff --git a/ir_qweb.go b/ir_qweb.go index 82581cf4..c6fe4b50 100644 --- a/ir_qweb.go +++ b/ir_qweb.go @@ -24,7 +24,7 @@ func (iq *IrQweb) Many2One() *Many2One { // CreateIrQweb creates a new ir.qweb model and returns its id. func (c *Client) CreateIrQweb(iq *IrQweb) (int64, error) { - ids, err := c.Create(IrQwebModel, []interface{}{iq}) + ids, err := c.CreateIrQwebs([]*IrQweb{iq}) if err != nil { return -1, err } diff --git a/ir_qweb_field.go b/ir_qweb_field.go index 4b412d90..f554b603 100644 --- a/ir_qweb_field.go +++ b/ir_qweb_field.go @@ -24,7 +24,7 @@ func (iqf *IrQwebField) Many2One() *Many2One { // CreateIrQwebField creates a new ir.qweb.field model and returns its id. func (c *Client) CreateIrQwebField(iqf *IrQwebField) (int64, error) { - ids, err := c.Create(IrQwebFieldModel, []interface{}{iqf}) + ids, err := c.CreateIrQwebFields([]*IrQwebField{iqf}) if err != nil { return -1, err } diff --git a/ir_qweb_field_barcode.go b/ir_qweb_field_barcode.go index 428186ec..96655380 100644 --- a/ir_qweb_field_barcode.go +++ b/ir_qweb_field_barcode.go @@ -24,7 +24,7 @@ func (iqfb *IrQwebFieldBarcode) Many2One() *Many2One { // CreateIrQwebFieldBarcode creates a new ir.qweb.field.barcode model and returns its id. func (c *Client) CreateIrQwebFieldBarcode(iqfb *IrQwebFieldBarcode) (int64, error) { - ids, err := c.Create(IrQwebFieldBarcodeModel, []interface{}{iqfb}) + ids, err := c.CreateIrQwebFieldBarcodes([]*IrQwebFieldBarcode{iqfb}) if err != nil { return -1, err } diff --git a/ir_qweb_field_contact.go b/ir_qweb_field_contact.go index bbb8b9e7..136c227e 100644 --- a/ir_qweb_field_contact.go +++ b/ir_qweb_field_contact.go @@ -24,7 +24,7 @@ func (iqfc *IrQwebFieldContact) Many2One() *Many2One { // CreateIrQwebFieldContact creates a new ir.qweb.field.contact model and returns its id. func (c *Client) CreateIrQwebFieldContact(iqfc *IrQwebFieldContact) (int64, error) { - ids, err := c.Create(IrQwebFieldContactModel, []interface{}{iqfc}) + ids, err := c.CreateIrQwebFieldContacts([]*IrQwebFieldContact{iqfc}) if err != nil { return -1, err } diff --git a/ir_qweb_field_date.go b/ir_qweb_field_date.go index dd2826e8..fb5f97ed 100644 --- a/ir_qweb_field_date.go +++ b/ir_qweb_field_date.go @@ -24,7 +24,7 @@ func (iqfd *IrQwebFieldDate) Many2One() *Many2One { // CreateIrQwebFieldDate creates a new ir.qweb.field.date model and returns its id. func (c *Client) CreateIrQwebFieldDate(iqfd *IrQwebFieldDate) (int64, error) { - ids, err := c.Create(IrQwebFieldDateModel, []interface{}{iqfd}) + ids, err := c.CreateIrQwebFieldDates([]*IrQwebFieldDate{iqfd}) if err != nil { return -1, err } diff --git a/ir_qweb_field_datetime.go b/ir_qweb_field_datetime.go index c43615bb..d33c0fd3 100644 --- a/ir_qweb_field_datetime.go +++ b/ir_qweb_field_datetime.go @@ -24,7 +24,7 @@ func (iqfd *IrQwebFieldDatetime) Many2One() *Many2One { // CreateIrQwebFieldDatetime creates a new ir.qweb.field.datetime model and returns its id. func (c *Client) CreateIrQwebFieldDatetime(iqfd *IrQwebFieldDatetime) (int64, error) { - ids, err := c.Create(IrQwebFieldDatetimeModel, []interface{}{iqfd}) + ids, err := c.CreateIrQwebFieldDatetimes([]*IrQwebFieldDatetime{iqfd}) if err != nil { return -1, err } diff --git a/ir_qweb_field_duration.go b/ir_qweb_field_duration.go index c0feb393..ed1b0d7a 100644 --- a/ir_qweb_field_duration.go +++ b/ir_qweb_field_duration.go @@ -24,7 +24,7 @@ func (iqfd *IrQwebFieldDuration) Many2One() *Many2One { // CreateIrQwebFieldDuration creates a new ir.qweb.field.duration model and returns its id. func (c *Client) CreateIrQwebFieldDuration(iqfd *IrQwebFieldDuration) (int64, error) { - ids, err := c.Create(IrQwebFieldDurationModel, []interface{}{iqfd}) + ids, err := c.CreateIrQwebFieldDurations([]*IrQwebFieldDuration{iqfd}) if err != nil { return -1, err } diff --git a/ir_qweb_field_float.go b/ir_qweb_field_float.go index b8f2c453..b6f9972b 100644 --- a/ir_qweb_field_float.go +++ b/ir_qweb_field_float.go @@ -24,7 +24,7 @@ func (iqff *IrQwebFieldFloat) Many2One() *Many2One { // CreateIrQwebFieldFloat creates a new ir.qweb.field.float model and returns its id. func (c *Client) CreateIrQwebFieldFloat(iqff *IrQwebFieldFloat) (int64, error) { - ids, err := c.Create(IrQwebFieldFloatModel, []interface{}{iqff}) + ids, err := c.CreateIrQwebFieldFloats([]*IrQwebFieldFloat{iqff}) if err != nil { return -1, err } diff --git a/ir_qweb_field_float_time.go b/ir_qweb_field_float_time.go index ae75edb6..2d8ab93c 100644 --- a/ir_qweb_field_float_time.go +++ b/ir_qweb_field_float_time.go @@ -24,7 +24,7 @@ func (iqff *IrQwebFieldFloatTime) Many2One() *Many2One { // CreateIrQwebFieldFloatTime creates a new ir.qweb.field.float_time model and returns its id. func (c *Client) CreateIrQwebFieldFloatTime(iqff *IrQwebFieldFloatTime) (int64, error) { - ids, err := c.Create(IrQwebFieldFloatTimeModel, []interface{}{iqff}) + ids, err := c.CreateIrQwebFieldFloatTimes([]*IrQwebFieldFloatTime{iqff}) if err != nil { return -1, err } diff --git a/ir_qweb_field_html.go b/ir_qweb_field_html.go index 9d1b08bf..afda7150 100644 --- a/ir_qweb_field_html.go +++ b/ir_qweb_field_html.go @@ -24,7 +24,7 @@ func (iqfh *IrQwebFieldHtml) Many2One() *Many2One { // CreateIrQwebFieldHtml creates a new ir.qweb.field.html model and returns its id. func (c *Client) CreateIrQwebFieldHtml(iqfh *IrQwebFieldHtml) (int64, error) { - ids, err := c.Create(IrQwebFieldHtmlModel, []interface{}{iqfh}) + ids, err := c.CreateIrQwebFieldHtmls([]*IrQwebFieldHtml{iqfh}) if err != nil { return -1, err } diff --git a/ir_qweb_field_image.go b/ir_qweb_field_image.go index 04ffb6e7..5344be52 100644 --- a/ir_qweb_field_image.go +++ b/ir_qweb_field_image.go @@ -24,7 +24,7 @@ func (iqfi *IrQwebFieldImage) Many2One() *Many2One { // CreateIrQwebFieldImage creates a new ir.qweb.field.image model and returns its id. func (c *Client) CreateIrQwebFieldImage(iqfi *IrQwebFieldImage) (int64, error) { - ids, err := c.Create(IrQwebFieldImageModel, []interface{}{iqfi}) + ids, err := c.CreateIrQwebFieldImages([]*IrQwebFieldImage{iqfi}) if err != nil { return -1, err } diff --git a/ir_qweb_field_integer.go b/ir_qweb_field_integer.go index 2c1633f9..9303ffb9 100644 --- a/ir_qweb_field_integer.go +++ b/ir_qweb_field_integer.go @@ -24,7 +24,7 @@ func (iqfi *IrQwebFieldInteger) Many2One() *Many2One { // CreateIrQwebFieldInteger creates a new ir.qweb.field.integer model and returns its id. func (c *Client) CreateIrQwebFieldInteger(iqfi *IrQwebFieldInteger) (int64, error) { - ids, err := c.Create(IrQwebFieldIntegerModel, []interface{}{iqfi}) + ids, err := c.CreateIrQwebFieldIntegers([]*IrQwebFieldInteger{iqfi}) if err != nil { return -1, err } diff --git a/ir_qweb_field_many2one.go b/ir_qweb_field_many2one.go index 37b5dac8..e34602a7 100644 --- a/ir_qweb_field_many2one.go +++ b/ir_qweb_field_many2one.go @@ -24,7 +24,7 @@ func (iqfm *IrQwebFieldMany2One) Many2One() *Many2One { // CreateIrQwebFieldMany2One creates a new ir.qweb.field.many2one model and returns its id. func (c *Client) CreateIrQwebFieldMany2One(iqfm *IrQwebFieldMany2One) (int64, error) { - ids, err := c.Create(IrQwebFieldMany2OneModel, []interface{}{iqfm}) + ids, err := c.CreateIrQwebFieldMany2Ones([]*IrQwebFieldMany2One{iqfm}) if err != nil { return -1, err } diff --git a/ir_qweb_field_monetary.go b/ir_qweb_field_monetary.go index 83fbf20e..bc23430f 100644 --- a/ir_qweb_field_monetary.go +++ b/ir_qweb_field_monetary.go @@ -24,7 +24,7 @@ func (iqfm *IrQwebFieldMonetary) Many2One() *Many2One { // CreateIrQwebFieldMonetary creates a new ir.qweb.field.monetary model and returns its id. func (c *Client) CreateIrQwebFieldMonetary(iqfm *IrQwebFieldMonetary) (int64, error) { - ids, err := c.Create(IrQwebFieldMonetaryModel, []interface{}{iqfm}) + ids, err := c.CreateIrQwebFieldMonetarys([]*IrQwebFieldMonetary{iqfm}) if err != nil { return -1, err } diff --git a/ir_qweb_field_qweb.go b/ir_qweb_field_qweb.go index f96e261c..34e55c71 100644 --- a/ir_qweb_field_qweb.go +++ b/ir_qweb_field_qweb.go @@ -24,7 +24,7 @@ func (iqfq *IrQwebFieldQweb) Many2One() *Many2One { // CreateIrQwebFieldQweb creates a new ir.qweb.field.qweb model and returns its id. func (c *Client) CreateIrQwebFieldQweb(iqfq *IrQwebFieldQweb) (int64, error) { - ids, err := c.Create(IrQwebFieldQwebModel, []interface{}{iqfq}) + ids, err := c.CreateIrQwebFieldQwebs([]*IrQwebFieldQweb{iqfq}) if err != nil { return -1, err } diff --git a/ir_qweb_field_relative.go b/ir_qweb_field_relative.go index 753f98e3..b3dea994 100644 --- a/ir_qweb_field_relative.go +++ b/ir_qweb_field_relative.go @@ -24,7 +24,7 @@ func (iqfr *IrQwebFieldRelative) Many2One() *Many2One { // CreateIrQwebFieldRelative creates a new ir.qweb.field.relative model and returns its id. func (c *Client) CreateIrQwebFieldRelative(iqfr *IrQwebFieldRelative) (int64, error) { - ids, err := c.Create(IrQwebFieldRelativeModel, []interface{}{iqfr}) + ids, err := c.CreateIrQwebFieldRelatives([]*IrQwebFieldRelative{iqfr}) if err != nil { return -1, err } diff --git a/ir_qweb_field_selection.go b/ir_qweb_field_selection.go index a6f6e259..2b789d82 100644 --- a/ir_qweb_field_selection.go +++ b/ir_qweb_field_selection.go @@ -24,7 +24,7 @@ func (iqfs *IrQwebFieldSelection) Many2One() *Many2One { // CreateIrQwebFieldSelection creates a new ir.qweb.field.selection model and returns its id. func (c *Client) CreateIrQwebFieldSelection(iqfs *IrQwebFieldSelection) (int64, error) { - ids, err := c.Create(IrQwebFieldSelectionModel, []interface{}{iqfs}) + ids, err := c.CreateIrQwebFieldSelections([]*IrQwebFieldSelection{iqfs}) if err != nil { return -1, err } diff --git a/ir_qweb_field_text.go b/ir_qweb_field_text.go index 5a7b1c9a..2c6bd296 100644 --- a/ir_qweb_field_text.go +++ b/ir_qweb_field_text.go @@ -24,7 +24,7 @@ func (iqft *IrQwebFieldText) Many2One() *Many2One { // CreateIrQwebFieldText creates a new ir.qweb.field.text model and returns its id. func (c *Client) CreateIrQwebFieldText(iqft *IrQwebFieldText) (int64, error) { - ids, err := c.Create(IrQwebFieldTextModel, []interface{}{iqft}) + ids, err := c.CreateIrQwebFieldTexts([]*IrQwebFieldText{iqft}) if err != nil { return -1, err } diff --git a/ir_rule.go b/ir_rule.go index 7f48ca33..15060686 100644 --- a/ir_rule.go +++ b/ir_rule.go @@ -38,7 +38,7 @@ func (ir *IrRule) Many2One() *Many2One { // CreateIrRule creates a new ir.rule model and returns its id. func (c *Client) CreateIrRule(ir *IrRule) (int64, error) { - ids, err := c.Create(IrRuleModel, []interface{}{ir}) + ids, err := c.CreateIrRules([]*IrRule{ir}) if err != nil { return -1, err } diff --git a/ir_sequence.go b/ir_sequence.go index 5dcc95e0..86bcf852 100644 --- a/ir_sequence.go +++ b/ir_sequence.go @@ -41,7 +41,7 @@ func (is *IrSequence) Many2One() *Many2One { // CreateIrSequence creates a new ir.sequence model and returns its id. func (c *Client) CreateIrSequence(is *IrSequence) (int64, error) { - ids, err := c.Create(IrSequenceModel, []interface{}{is}) + ids, err := c.CreateIrSequences([]*IrSequence{is}) if err != nil { return -1, err } diff --git a/ir_sequence_date_range.go b/ir_sequence_date_range.go index 1ccbdd45..481d9c7d 100644 --- a/ir_sequence_date_range.go +++ b/ir_sequence_date_range.go @@ -33,7 +33,7 @@ func (isd *IrSequenceDateRange) Many2One() *Many2One { // CreateIrSequenceDateRange creates a new ir.sequence.date_range model and returns its id. func (c *Client) CreateIrSequenceDateRange(isd *IrSequenceDateRange) (int64, error) { - ids, err := c.Create(IrSequenceDateRangeModel, []interface{}{isd}) + ids, err := c.CreateIrSequenceDateRanges([]*IrSequenceDateRange{isd}) if err != nil { return -1, err } diff --git a/ir_server_object_lines.go b/ir_server_object_lines.go index f3ed3827..267d45d7 100644 --- a/ir_server_object_lines.go +++ b/ir_server_object_lines.go @@ -32,7 +32,7 @@ func (isol *IrServerObjectLines) Many2One() *Many2One { // CreateIrServerObjectLines creates a new ir.server.object.lines model and returns its id. func (c *Client) CreateIrServerObjectLines(isol *IrServerObjectLines) (int64, error) { - ids, err := c.Create(IrServerObjectLinesModel, []interface{}{isol}) + ids, err := c.CreateIrServerObjectLiness([]*IrServerObjectLines{isol}) if err != nil { return -1, err } diff --git a/ir_translation.go b/ir_translation.go index f7e14219..b2d486b3 100644 --- a/ir_translation.go +++ b/ir_translation.go @@ -34,7 +34,7 @@ func (it *IrTranslation) Many2One() *Many2One { // CreateIrTranslation creates a new ir.translation model and returns its id. func (c *Client) CreateIrTranslation(it *IrTranslation) (int64, error) { - ids, err := c.Create(IrTranslationModel, []interface{}{it}) + ids, err := c.CreateIrTranslations([]*IrTranslation{it}) if err != nil { return -1, err } diff --git a/ir_ui_menu.go b/ir_ui_menu.go index 72210c1d..6ecea619 100644 --- a/ir_ui_menu.go +++ b/ir_ui_menu.go @@ -40,7 +40,7 @@ func (ium *IrUiMenu) Many2One() *Many2One { // CreateIrUiMenu creates a new ir.ui.menu model and returns its id. func (c *Client) CreateIrUiMenu(ium *IrUiMenu) (int64, error) { - ids, err := c.Create(IrUiMenuModel, []interface{}{ium}) + ids, err := c.CreateIrUiMenus([]*IrUiMenu{ium}) if err != nil { return -1, err } diff --git a/ir_ui_view.go b/ir_ui_view.go index f0852a4a..a35ece92 100644 --- a/ir_ui_view.go +++ b/ir_ui_view.go @@ -46,7 +46,7 @@ func (iuv *IrUiView) Many2One() *Many2One { // CreateIrUiView creates a new ir.ui.view model and returns its id. func (c *Client) CreateIrUiView(iuv *IrUiView) (int64, error) { - ids, err := c.Create(IrUiViewModel, []interface{}{iuv}) + ids, err := c.CreateIrUiViews([]*IrUiView{iuv}) if err != nil { return -1, err } diff --git a/ir_ui_view_custom.go b/ir_ui_view_custom.go index 3db33df1..bb1a3953 100644 --- a/ir_ui_view_custom.go +++ b/ir_ui_view_custom.go @@ -31,7 +31,7 @@ func (iuvc *IrUiViewCustom) Many2One() *Many2One { // CreateIrUiViewCustom creates a new ir.ui.view.custom model and returns its id. func (c *Client) CreateIrUiViewCustom(iuvc *IrUiViewCustom) (int64, error) { - ids, err := c.Create(IrUiViewCustomModel, []interface{}{iuvc}) + ids, err := c.CreateIrUiViewCustoms([]*IrUiViewCustom{iuvc}) if err != nil { return -1, err } diff --git a/link_tracker.go b/link_tracker.go index 8504e781..cc246f78 100644 --- a/link_tracker.go +++ b/link_tracker.go @@ -44,7 +44,7 @@ func (lt *LinkTracker) Many2One() *Many2One { // CreateLinkTracker creates a new link.tracker model and returns its id. func (c *Client) CreateLinkTracker(lt *LinkTracker) (int64, error) { - ids, err := c.Create(LinkTrackerModel, []interface{}{lt}) + ids, err := c.CreateLinkTrackers([]*LinkTracker{lt}) if err != nil { return -1, err } diff --git a/link_tracker_click.go b/link_tracker_click.go index 6a5877cc..881a08ae 100644 --- a/link_tracker_click.go +++ b/link_tracker_click.go @@ -35,7 +35,7 @@ func (ltc *LinkTrackerClick) Many2One() *Many2One { // CreateLinkTrackerClick creates a new link.tracker.click model and returns its id. func (c *Client) CreateLinkTrackerClick(ltc *LinkTrackerClick) (int64, error) { - ids, err := c.Create(LinkTrackerClickModel, []interface{}{ltc}) + ids, err := c.CreateLinkTrackerClicks([]*LinkTrackerClick{ltc}) if err != nil { return -1, err } diff --git a/link_tracker_code.go b/link_tracker_code.go index 31c22a96..6d9e0268 100644 --- a/link_tracker_code.go +++ b/link_tracker_code.go @@ -30,7 +30,7 @@ func (ltc *LinkTrackerCode) Many2One() *Many2One { // CreateLinkTrackerCode creates a new link.tracker.code model and returns its id. func (c *Client) CreateLinkTrackerCode(ltc *LinkTrackerCode) (int64, error) { - ids, err := c.Create(LinkTrackerCodeModel, []interface{}{ltc}) + ids, err := c.CreateLinkTrackerCodes([]*LinkTrackerCode{ltc}) if err != nil { return -1, err } diff --git a/mail_activity.go b/mail_activity.go index 08f87f65..7c877954 100644 --- a/mail_activity.go +++ b/mail_activity.go @@ -45,7 +45,7 @@ func (ma *MailActivity) Many2One() *Many2One { // CreateMailActivity creates a new mail.activity model and returns its id. func (c *Client) CreateMailActivity(ma *MailActivity) (int64, error) { - ids, err := c.Create(MailActivityModel, []interface{}{ma}) + ids, err := c.CreateMailActivitys([]*MailActivity{ma}) if err != nil { return -1, err } diff --git a/mail_activity_mixin.go b/mail_activity_mixin.go index 6bb333e5..e8861b0b 100644 --- a/mail_activity_mixin.go +++ b/mail_activity_mixin.go @@ -30,7 +30,7 @@ func (mam *MailActivityMixin) Many2One() *Many2One { // CreateMailActivityMixin creates a new mail.activity.mixin model and returns its id. func (c *Client) CreateMailActivityMixin(mam *MailActivityMixin) (int64, error) { - ids, err := c.Create(MailActivityMixinModel, []interface{}{mam}) + ids, err := c.CreateMailActivityMixins([]*MailActivityMixin{mam}) if err != nil { return -1, err } diff --git a/mail_activity_type.go b/mail_activity_type.go index 50780d8e..0102ad6c 100644 --- a/mail_activity_type.go +++ b/mail_activity_type.go @@ -37,7 +37,7 @@ func (mat *MailActivityType) Many2One() *Many2One { // CreateMailActivityType creates a new mail.activity.type model and returns its id. func (c *Client) CreateMailActivityType(mat *MailActivityType) (int64, error) { - ids, err := c.Create(MailActivityTypeModel, []interface{}{mat}) + ids, err := c.CreateMailActivityTypes([]*MailActivityType{mat}) if err != nil { return -1, err } diff --git a/mail_alias.go b/mail_alias.go index 0ac2a9c0..73f14290 100644 --- a/mail_alias.go +++ b/mail_alias.go @@ -37,7 +37,7 @@ func (ma *MailAlias) Many2One() *Many2One { // CreateMailAlias creates a new mail.alias model and returns its id. func (c *Client) CreateMailAlias(ma *MailAlias) (int64, error) { - ids, err := c.Create(MailAliasModel, []interface{}{ma}) + ids, err := c.CreateMailAliass([]*MailAlias{ma}) if err != nil { return -1, err } diff --git a/mail_alias_mixin.go b/mail_alias_mixin.go index 044d879a..d6e056fa 100644 --- a/mail_alias_mixin.go +++ b/mail_alias_mixin.go @@ -38,7 +38,7 @@ func (mam *MailAliasMixin) Many2One() *Many2One { // CreateMailAliasMixin creates a new mail.alias.mixin model and returns its id. func (c *Client) CreateMailAliasMixin(mam *MailAliasMixin) (int64, error) { - ids, err := c.Create(MailAliasMixinModel, []interface{}{mam}) + ids, err := c.CreateMailAliasMixins([]*MailAliasMixin{mam}) if err != nil { return -1, err } diff --git a/mail_channel.go b/mail_channel.go index e6c69eb3..3c1a2f7f 100644 --- a/mail_channel.go +++ b/mail_channel.go @@ -72,7 +72,7 @@ func (mc *MailChannel) Many2One() *Many2One { // CreateMailChannel creates a new mail.channel model and returns its id. func (c *Client) CreateMailChannel(mc *MailChannel) (int64, error) { - ids, err := c.Create(MailChannelModel, []interface{}{mc}) + ids, err := c.CreateMailChannels([]*MailChannel{mc}) if err != nil { return -1, err } diff --git a/mail_channel_partner.go b/mail_channel_partner.go index 60444f24..798f72f4 100644 --- a/mail_channel_partner.go +++ b/mail_channel_partner.go @@ -35,7 +35,7 @@ func (mcp *MailChannelPartner) Many2One() *Many2One { // CreateMailChannelPartner creates a new mail.channel.partner model and returns its id. func (c *Client) CreateMailChannelPartner(mcp *MailChannelPartner) (int64, error) { - ids, err := c.Create(MailChannelPartnerModel, []interface{}{mcp}) + ids, err := c.CreateMailChannelPartners([]*MailChannelPartner{mcp}) if err != nil { return -1, err } diff --git a/mail_compose_message.go b/mail_compose_message.go index 8962763a..47eb51b9 100644 --- a/mail_compose_message.go +++ b/mail_compose_message.go @@ -69,7 +69,7 @@ func (mcm *MailComposeMessage) Many2One() *Many2One { // CreateMailComposeMessage creates a new mail.compose.message model and returns its id. func (c *Client) CreateMailComposeMessage(mcm *MailComposeMessage) (int64, error) { - ids, err := c.Create(MailComposeMessageModel, []interface{}{mcm}) + ids, err := c.CreateMailComposeMessages([]*MailComposeMessage{mcm}) if err != nil { return -1, err } diff --git a/mail_followers.go b/mail_followers.go index 763523d8..e21f54a5 100644 --- a/mail_followers.go +++ b/mail_followers.go @@ -29,7 +29,7 @@ func (mf *MailFollowers) Many2One() *Many2One { // CreateMailFollowers creates a new mail.followers model and returns its id. func (c *Client) CreateMailFollowers(mf *MailFollowers) (int64, error) { - ids, err := c.Create(MailFollowersModel, []interface{}{mf}) + ids, err := c.CreateMailFollowerss([]*MailFollowers{mf}) if err != nil { return -1, err } diff --git a/mail_mail.go b/mail_mail.go index 4410e363..37c1b817 100644 --- a/mail_mail.go +++ b/mail_mail.go @@ -72,7 +72,7 @@ func (mm *MailMail) Many2One() *Many2One { // CreateMailMail creates a new mail.mail model and returns its id. func (c *Client) CreateMailMail(mm *MailMail) (int64, error) { - ids, err := c.Create(MailMailModel, []interface{}{mm}) + ids, err := c.CreateMailMails([]*MailMail{mm}) if err != nil { return -1, err } diff --git a/mail_mail_statistics.go b/mail_mail_statistics.go index e8240ae2..dba4f371 100644 --- a/mail_mail_statistics.go +++ b/mail_mail_statistics.go @@ -46,7 +46,7 @@ func (mms *MailMailStatistics) Many2One() *Many2One { // CreateMailMailStatistics creates a new mail.mail.statistics model and returns its id. func (c *Client) CreateMailMailStatistics(mms *MailMailStatistics) (int64, error) { - ids, err := c.Create(MailMailStatisticsModel, []interface{}{mms}) + ids, err := c.CreateMailMailStatisticss([]*MailMailStatistics{mms}) if err != nil { return -1, err } diff --git a/mail_mass_mailing.go b/mail_mass_mailing.go index d44ba04f..9a86819b 100644 --- a/mail_mass_mailing.go +++ b/mail_mass_mailing.go @@ -65,7 +65,7 @@ func (mm *MailMassMailing) Many2One() *Many2One { // CreateMailMassMailing creates a new mail.mass_mailing model and returns its id. func (c *Client) CreateMailMassMailing(mm *MailMassMailing) (int64, error) { - ids, err := c.Create(MailMassMailingModel, []interface{}{mm}) + ids, err := c.CreateMailMassMailings([]*MailMassMailing{mm}) if err != nil { return -1, err } diff --git a/mail_mass_mailing_campaign.go b/mail_mass_mailing_campaign.go index f479a963..dad9224f 100644 --- a/mail_mass_mailing_campaign.go +++ b/mail_mass_mailing_campaign.go @@ -52,7 +52,7 @@ func (mmc *MailMassMailingCampaign) Many2One() *Many2One { // CreateMailMassMailingCampaign creates a new mail.mass_mailing.campaign model and returns its id. func (c *Client) CreateMailMassMailingCampaign(mmc *MailMassMailingCampaign) (int64, error) { - ids, err := c.Create(MailMassMailingCampaignModel, []interface{}{mmc}) + ids, err := c.CreateMailMassMailingCampaigns([]*MailMassMailingCampaign{mmc}) if err != nil { return -1, err } diff --git a/mail_mass_mailing_contact.go b/mail_mass_mailing_contact.go index 889add91..200a72fd 100644 --- a/mail_mass_mailing_contact.go +++ b/mail_mass_mailing_contact.go @@ -49,7 +49,7 @@ func (mmc *MailMassMailingContact) Many2One() *Many2One { // CreateMailMassMailingContact creates a new mail.mass_mailing.contact model and returns its id. func (c *Client) CreateMailMassMailingContact(mmc *MailMassMailingContact) (int64, error) { - ids, err := c.Create(MailMassMailingContactModel, []interface{}{mmc}) + ids, err := c.CreateMailMassMailingContacts([]*MailMassMailingContact{mmc}) if err != nil { return -1, err } diff --git a/mail_mass_mailing_list.go b/mail_mass_mailing_list.go index f4f93107..927d1894 100644 --- a/mail_mass_mailing_list.go +++ b/mail_mass_mailing_list.go @@ -31,7 +31,7 @@ func (mml *MailMassMailingList) Many2One() *Many2One { // CreateMailMassMailingList creates a new mail.mass_mailing.list model and returns its id. func (c *Client) CreateMailMassMailingList(mml *MailMassMailingList) (int64, error) { - ids, err := c.Create(MailMassMailingListModel, []interface{}{mml}) + ids, err := c.CreateMailMassMailingLists([]*MailMassMailingList{mml}) if err != nil { return -1, err } diff --git a/mail_mass_mailing_stage.go b/mail_mass_mailing_stage.go index 7d52a6dc..8475640c 100644 --- a/mail_mass_mailing_stage.go +++ b/mail_mass_mailing_stage.go @@ -30,7 +30,7 @@ func (mms *MailMassMailingStage) Many2One() *Many2One { // CreateMailMassMailingStage creates a new mail.mass_mailing.stage model and returns its id. func (c *Client) CreateMailMassMailingStage(mms *MailMassMailingStage) (int64, error) { - ids, err := c.Create(MailMassMailingStageModel, []interface{}{mms}) + ids, err := c.CreateMailMassMailingStages([]*MailMassMailingStage{mms}) if err != nil { return -1, err } diff --git a/mail_mass_mailing_tag.go b/mail_mass_mailing_tag.go index 64722430..752151ec 100644 --- a/mail_mass_mailing_tag.go +++ b/mail_mass_mailing_tag.go @@ -30,7 +30,7 @@ func (mmt *MailMassMailingTag) Many2One() *Many2One { // CreateMailMassMailingTag creates a new mail.mass_mailing.tag model and returns its id. func (c *Client) CreateMailMassMailingTag(mmt *MailMassMailingTag) (int64, error) { - ids, err := c.Create(MailMassMailingTagModel, []interface{}{mmt}) + ids, err := c.CreateMailMassMailingTags([]*MailMassMailingTag{mmt}) if err != nil { return -1, err } diff --git a/mail_mass_mailing_test.go b/mail_mass_mailing_test.go index b8e02d69..17904ce0 100644 --- a/mail_mass_mailing_test.go +++ b/mail_mass_mailing_test.go @@ -30,7 +30,7 @@ func (mmt *MailMassMailingTest) Many2One() *Many2One { // CreateMailMassMailingTest creates a new mail.mass_mailing.test model and returns its id. func (c *Client) CreateMailMassMailingTest(mmt *MailMassMailingTest) (int64, error) { - ids, err := c.Create(MailMassMailingTestModel, []interface{}{mmt}) + ids, err := c.CreateMailMassMailingTests([]*MailMassMailingTest{mmt}) if err != nil { return -1, err } diff --git a/mail_message.go b/mail_message.go index b98b49fd..1bd22029 100644 --- a/mail_message.go +++ b/mail_message.go @@ -57,7 +57,7 @@ func (mm *MailMessage) Many2One() *Many2One { // CreateMailMessage creates a new mail.message model and returns its id. func (c *Client) CreateMailMessage(mm *MailMessage) (int64, error) { - ids, err := c.Create(MailMessageModel, []interface{}{mm}) + ids, err := c.CreateMailMessages([]*MailMessage{mm}) if err != nil { return -1, err } diff --git a/mail_message_subtype.go b/mail_message_subtype.go index f17b93b5..e374d31a 100644 --- a/mail_message_subtype.go +++ b/mail_message_subtype.go @@ -37,7 +37,7 @@ func (mms *MailMessageSubtype) Many2One() *Many2One { // CreateMailMessageSubtype creates a new mail.message.subtype model and returns its id. func (c *Client) CreateMailMessageSubtype(mms *MailMessageSubtype) (int64, error) { - ids, err := c.Create(MailMessageSubtypeModel, []interface{}{mms}) + ids, err := c.CreateMailMessageSubtypes([]*MailMessageSubtype{mms}) if err != nil { return -1, err } diff --git a/mail_notification.go b/mail_notification.go index 38fe2211..999c3c2d 100644 --- a/mail_notification.go +++ b/mail_notification.go @@ -29,7 +29,7 @@ func (mn *MailNotification) Many2One() *Many2One { // CreateMailNotification creates a new mail.notification model and returns its id. func (c *Client) CreateMailNotification(mn *MailNotification) (int64, error) { - ids, err := c.Create(MailNotificationModel, []interface{}{mn}) + ids, err := c.CreateMailNotifications([]*MailNotification{mn}) if err != nil { return -1, err } diff --git a/mail_shortcode.go b/mail_shortcode.go index e8e4183b..17786c19 100644 --- a/mail_shortcode.go +++ b/mail_shortcode.go @@ -33,7 +33,7 @@ func (ms *MailShortcode) Many2One() *Many2One { // CreateMailShortcode creates a new mail.shortcode model and returns its id. func (c *Client) CreateMailShortcode(ms *MailShortcode) (int64, error) { - ids, err := c.Create(MailShortcodeModel, []interface{}{ms}) + ids, err := c.CreateMailShortcodes([]*MailShortcode{ms}) if err != nil { return -1, err } diff --git a/mail_statistics_report.go b/mail_statistics_report.go index 608af599..b49cb375 100644 --- a/mail_statistics_report.go +++ b/mail_statistics_report.go @@ -34,7 +34,7 @@ func (msr *MailStatisticsReport) Many2One() *Many2One { // CreateMailStatisticsReport creates a new mail.statistics.report model and returns its id. func (c *Client) CreateMailStatisticsReport(msr *MailStatisticsReport) (int64, error) { - ids, err := c.Create(MailStatisticsReportModel, []interface{}{msr}) + ids, err := c.CreateMailStatisticsReports([]*MailStatisticsReport{msr}) if err != nil { return -1, err } diff --git a/mail_template.go b/mail_template.go index a23de808..00d7d7a1 100644 --- a/mail_template.go +++ b/mail_template.go @@ -53,7 +53,7 @@ func (mt *MailTemplate) Many2One() *Many2One { // CreateMailTemplate creates a new mail.template model and returns its id. func (c *Client) CreateMailTemplate(mt *MailTemplate) (int64, error) { - ids, err := c.Create(MailTemplateModel, []interface{}{mt}) + ids, err := c.CreateMailTemplates([]*MailTemplate{mt}) if err != nil { return -1, err } diff --git a/mail_test.go b/mail_test.go index 5ba4d8dd..0362793c 100644 --- a/mail_test.go +++ b/mail_test.go @@ -51,7 +51,7 @@ func (mt *MailTest) Many2One() *Many2One { // CreateMailTest creates a new mail.test model and returns its id. func (c *Client) CreateMailTest(mt *MailTest) (int64, error) { - ids, err := c.Create(MailTestModel, []interface{}{mt}) + ids, err := c.CreateMailTests([]*MailTest{mt}) if err != nil { return -1, err } diff --git a/mail_test_simple.go b/mail_test_simple.go index aaffad01..e25db06d 100644 --- a/mail_test_simple.go +++ b/mail_test_simple.go @@ -42,7 +42,7 @@ func (mts *MailTestSimple) Many2One() *Many2One { // CreateMailTestSimple creates a new mail.test.simple model and returns its id. func (c *Client) CreateMailTestSimple(mts *MailTestSimple) (int64, error) { - ids, err := c.Create(MailTestSimpleModel, []interface{}{mts}) + ids, err := c.CreateMailTestSimples([]*MailTestSimple{mts}) if err != nil { return -1, err } diff --git a/mail_thread.go b/mail_thread.go index 9d3b0f00..e0b26b6b 100644 --- a/mail_thread.go +++ b/mail_thread.go @@ -35,7 +35,7 @@ func (mt *MailThread) Many2One() *Many2One { // CreateMailThread creates a new mail.thread model and returns its id. func (c *Client) CreateMailThread(mt *MailThread) (int64, error) { - ids, err := c.Create(MailThreadModel, []interface{}{mt}) + ids, err := c.CreateMailThreads([]*MailThread{mt}) if err != nil { return -1, err } diff --git a/mail_tracking_value.go b/mail_tracking_value.go index 5b6a6a2a..1b470b5c 100644 --- a/mail_tracking_value.go +++ b/mail_tracking_value.go @@ -44,7 +44,7 @@ func (mtv *MailTrackingValue) Many2One() *Many2One { // CreateMailTrackingValue creates a new mail.tracking.value model and returns its id. func (c *Client) CreateMailTrackingValue(mtv *MailTrackingValue) (int64, error) { - ids, err := c.Create(MailTrackingValueModel, []interface{}{mtv}) + ids, err := c.CreateMailTrackingValues([]*MailTrackingValue{mtv}) if err != nil { return -1, err } diff --git a/mail_wizard_invite.go b/mail_wizard_invite.go index 04cf2cc9..2ae48be7 100644 --- a/mail_wizard_invite.go +++ b/mail_wizard_invite.go @@ -34,7 +34,7 @@ func (mwi *MailWizardInvite) Many2One() *Many2One { // CreateMailWizardInvite creates a new mail.wizard.invite model and returns its id. func (c *Client) CreateMailWizardInvite(mwi *MailWizardInvite) (int64, error) { - ids, err := c.Create(MailWizardInviteModel, []interface{}{mwi}) + ids, err := c.CreateMailWizardInvites([]*MailWizardInvite{mwi}) if err != nil { return -1, err } diff --git a/payment_acquirer.go b/payment_acquirer.go index 40ae2586..73f490ec 100644 --- a/payment_acquirer.go +++ b/payment_acquirer.go @@ -63,7 +63,7 @@ func (pa *PaymentAcquirer) Many2One() *Many2One { // CreatePaymentAcquirer creates a new payment.acquirer model and returns its id. func (c *Client) CreatePaymentAcquirer(pa *PaymentAcquirer) (int64, error) { - ids, err := c.Create(PaymentAcquirerModel, []interface{}{pa}) + ids, err := c.CreatePaymentAcquirers([]*PaymentAcquirer{pa}) if err != nil { return -1, err } diff --git a/payment_icon.go b/payment_icon.go index e51133ad..cfbe9d18 100644 --- a/payment_icon.go +++ b/payment_icon.go @@ -32,7 +32,7 @@ func (pi *PaymentIcon) Many2One() *Many2One { // CreatePaymentIcon creates a new payment.icon model and returns its id. func (c *Client) CreatePaymentIcon(pi *PaymentIcon) (int64, error) { - ids, err := c.Create(PaymentIconModel, []interface{}{pi}) + ids, err := c.CreatePaymentIcons([]*PaymentIcon{pi}) if err != nil { return -1, err } diff --git a/payment_token.go b/payment_token.go index e5394159..b3ad7661 100644 --- a/payment_token.go +++ b/payment_token.go @@ -36,7 +36,7 @@ func (pt *PaymentToken) Many2One() *Many2One { // CreatePaymentToken creates a new payment.token model and returns its id. func (c *Client) CreatePaymentToken(pt *PaymentToken) (int64, error) { - ids, err := c.Create(PaymentTokenModel, []interface{}{pt}) + ids, err := c.CreatePaymentTokens([]*PaymentToken{pt}) if err != nil { return -1, err } diff --git a/payment_transaction.go b/payment_transaction.go index 0c3fb45b..decaa44c 100644 --- a/payment_transaction.go +++ b/payment_transaction.go @@ -54,7 +54,7 @@ func (pt *PaymentTransaction) Many2One() *Many2One { // CreatePaymentTransaction creates a new payment.transaction model and returns its id. func (c *Client) CreatePaymentTransaction(pt *PaymentTransaction) (int64, error) { - ids, err := c.Create(PaymentTransactionModel, []interface{}{pt}) + ids, err := c.CreatePaymentTransactions([]*PaymentTransaction{pt}) if err != nil { return -1, err } diff --git a/portal_mixin.go b/portal_mixin.go index 442efad3..5a562986 100644 --- a/portal_mixin.go +++ b/portal_mixin.go @@ -25,7 +25,7 @@ func (pm *PortalMixin) Many2One() *Many2One { // CreatePortalMixin creates a new portal.mixin model and returns its id. func (c *Client) CreatePortalMixin(pm *PortalMixin) (int64, error) { - ids, err := c.Create(PortalMixinModel, []interface{}{pm}) + ids, err := c.CreatePortalMixins([]*PortalMixin{pm}) if err != nil { return -1, err } diff --git a/portal_wizard.go b/portal_wizard.go index b94abf2e..5d5f5d0e 100644 --- a/portal_wizard.go +++ b/portal_wizard.go @@ -31,7 +31,7 @@ func (pw *PortalWizard) Many2One() *Many2One { // CreatePortalWizard creates a new portal.wizard model and returns its id. func (c *Client) CreatePortalWizard(pw *PortalWizard) (int64, error) { - ids, err := c.Create(PortalWizardModel, []interface{}{pw}) + ids, err := c.CreatePortalWizards([]*PortalWizard{pw}) if err != nil { return -1, err } diff --git a/portal_wizard_user.go b/portal_wizard_user.go index 44e78f39..035d35f4 100644 --- a/portal_wizard_user.go +++ b/portal_wizard_user.go @@ -33,7 +33,7 @@ func (pwu *PortalWizardUser) Many2One() *Many2One { // CreatePortalWizardUser creates a new portal.wizard.user model and returns its id. func (c *Client) CreatePortalWizardUser(pwu *PortalWizardUser) (int64, error) { - ids, err := c.Create(PortalWizardUserModel, []interface{}{pwu}) + ids, err := c.CreatePortalWizardUsers([]*PortalWizardUser{pwu}) if err != nil { return -1, err } diff --git a/procurement_group.go b/procurement_group.go index a12f8417..832b42a9 100644 --- a/procurement_group.go +++ b/procurement_group.go @@ -32,7 +32,7 @@ func (pg *ProcurementGroup) Many2One() *Many2One { // CreateProcurementGroup creates a new procurement.group model and returns its id. func (c *Client) CreateProcurementGroup(pg *ProcurementGroup) (int64, error) { - ids, err := c.Create(ProcurementGroupModel, []interface{}{pg}) + ids, err := c.CreateProcurementGroups([]*ProcurementGroup{pg}) if err != nil { return -1, err } diff --git a/procurement_rule.go b/procurement_rule.go index 1f02361b..28ccb720 100644 --- a/procurement_rule.go +++ b/procurement_rule.go @@ -46,7 +46,7 @@ func (pr *ProcurementRule) Many2One() *Many2One { // CreateProcurementRule creates a new procurement.rule model and returns its id. func (c *Client) CreateProcurementRule(pr *ProcurementRule) (int64, error) { - ids, err := c.Create(ProcurementRuleModel, []interface{}{pr}) + ids, err := c.CreateProcurementRules([]*ProcurementRule{pr}) if err != nil { return -1, err } diff --git a/product_attribute.go b/product_attribute.go index bfbb8b29..c74d56ef 100644 --- a/product_attribute.go +++ b/product_attribute.go @@ -33,7 +33,7 @@ func (pa *ProductAttribute) Many2One() *Many2One { // CreateProductAttribute creates a new product.attribute model and returns its id. func (c *Client) CreateProductAttribute(pa *ProductAttribute) (int64, error) { - ids, err := c.Create(ProductAttributeModel, []interface{}{pa}) + ids, err := c.CreateProductAttributes([]*ProductAttribute{pa}) if err != nil { return -1, err } diff --git a/product_attribute_line.go b/product_attribute_line.go index 43a9b79b..f3ddd3b0 100644 --- a/product_attribute_line.go +++ b/product_attribute_line.go @@ -31,7 +31,7 @@ func (pal *ProductAttributeLine) Many2One() *Many2One { // CreateProductAttributeLine creates a new product.attribute.line model and returns its id. func (c *Client) CreateProductAttributeLine(pal *ProductAttributeLine) (int64, error) { - ids, err := c.Create(ProductAttributeLineModel, []interface{}{pal}) + ids, err := c.CreateProductAttributeLines([]*ProductAttributeLine{pal}) if err != nil { return -1, err } diff --git a/product_attribute_price.go b/product_attribute_price.go index e74b4e2c..8e896b27 100644 --- a/product_attribute_price.go +++ b/product_attribute_price.go @@ -31,7 +31,7 @@ func (pap *ProductAttributePrice) Many2One() *Many2One { // CreateProductAttributePrice creates a new product.attribute.price model and returns its id. func (c *Client) CreateProductAttributePrice(pap *ProductAttributePrice) (int64, error) { - ids, err := c.Create(ProductAttributePriceModel, []interface{}{pap}) + ids, err := c.CreateProductAttributePrices([]*ProductAttributePrice{pap}) if err != nil { return -1, err } diff --git a/product_attribute_value.go b/product_attribute_value.go index d4696493..e5cb6e13 100644 --- a/product_attribute_value.go +++ b/product_attribute_value.go @@ -34,7 +34,7 @@ func (pav *ProductAttributeValue) Many2One() *Many2One { // CreateProductAttributeValue creates a new product.attribute.value model and returns its id. func (c *Client) CreateProductAttributeValue(pav *ProductAttributeValue) (int64, error) { - ids, err := c.Create(ProductAttributeValueModel, []interface{}{pav}) + ids, err := c.CreateProductAttributeValues([]*ProductAttributeValue{pav}) if err != nil { return -1, err } diff --git a/product_category.go b/product_category.go index cdd6c055..45f8775c 100644 --- a/product_category.go +++ b/product_category.go @@ -47,7 +47,7 @@ func (pc *ProductCategory) Many2One() *Many2One { // CreateProductCategory creates a new product.category model and returns its id. func (c *Client) CreateProductCategory(pc *ProductCategory) (int64, error) { - ids, err := c.Create(ProductCategoryModel, []interface{}{pc}) + ids, err := c.CreateProductCategorys([]*ProductCategory{pc}) if err != nil { return -1, err } diff --git a/product_packaging.go b/product_packaging.go index 31d4b2a6..72c34727 100644 --- a/product_packaging.go +++ b/product_packaging.go @@ -33,7 +33,7 @@ func (pp *ProductPackaging) Many2One() *Many2One { // CreateProductPackaging creates a new product.packaging model and returns its id. func (c *Client) CreateProductPackaging(pp *ProductPackaging) (int64, error) { - ids, err := c.Create(ProductPackagingModel, []interface{}{pp}) + ids, err := c.CreateProductPackagings([]*ProductPackaging{pp}) if err != nil { return -1, err } diff --git a/product_price_history.go b/product_price_history.go index 135bd626..ccb42921 100644 --- a/product_price_history.go +++ b/product_price_history.go @@ -32,7 +32,7 @@ func (pph *ProductPriceHistory) Many2One() *Many2One { // CreateProductPriceHistory creates a new product.price.history model and returns its id. func (c *Client) CreateProductPriceHistory(pph *ProductPriceHistory) (int64, error) { - ids, err := c.Create(ProductPriceHistoryModel, []interface{}{pph}) + ids, err := c.CreateProductPriceHistorys([]*ProductPriceHistory{pph}) if err != nil { return -1, err } diff --git a/product_price_list.go b/product_price_list.go index 653de553..be931336 100644 --- a/product_price_list.go +++ b/product_price_list.go @@ -34,7 +34,7 @@ func (pp *ProductPriceList) Many2One() *Many2One { // CreateProductPriceList creates a new product.price_list model and returns its id. func (c *Client) CreateProductPriceList(pp *ProductPriceList) (int64, error) { - ids, err := c.Create(ProductPriceListModel, []interface{}{pp}) + ids, err := c.CreateProductPriceLists([]*ProductPriceList{pp}) if err != nil { return -1, err } diff --git a/product_pricelist.go b/product_pricelist.go index 5b34f6f8..344d8781 100644 --- a/product_pricelist.go +++ b/product_pricelist.go @@ -36,7 +36,7 @@ func (pp *ProductPricelist) Many2One() *Many2One { // CreateProductPricelist creates a new product.pricelist model and returns its id. func (c *Client) CreateProductPricelist(pp *ProductPricelist) (int64, error) { - ids, err := c.Create(ProductPricelistModel, []interface{}{pp}) + ids, err := c.CreateProductPricelists([]*ProductPricelist{pp}) if err != nil { return -1, err } diff --git a/product_pricelist_item.go b/product_pricelist_item.go index ac9b9a2c..43f82801 100644 --- a/product_pricelist_item.go +++ b/product_pricelist_item.go @@ -50,7 +50,7 @@ func (ppi *ProductPricelistItem) Many2One() *Many2One { // CreateProductPricelistItem creates a new product.pricelist.item model and returns its id. func (c *Client) CreateProductPricelistItem(ppi *ProductPricelistItem) (int64, error) { - ids, err := c.Create(ProductPricelistItemModel, []interface{}{ppi}) + ids, err := c.CreateProductPricelistItems([]*ProductPricelistItem{ppi}) if err != nil { return -1, err } diff --git a/product_product.go b/product_product.go index aca6b1f0..71acd697 100644 --- a/product_product.go +++ b/product_product.go @@ -140,7 +140,7 @@ func (pp *ProductProduct) Many2One() *Many2One { // CreateProductProduct creates a new product.product model and returns its id. func (c *Client) CreateProductProduct(pp *ProductProduct) (int64, error) { - ids, err := c.Create(ProductProductModel, []interface{}{pp}) + ids, err := c.CreateProductProducts([]*ProductProduct{pp}) if err != nil { return -1, err } diff --git a/product_putaway.go b/product_putaway.go index 2c5fa643..903d8159 100644 --- a/product_putaway.go +++ b/product_putaway.go @@ -30,7 +30,7 @@ func (pp *ProductPutaway) Many2One() *Many2One { // CreateProductPutaway creates a new product.putaway model and returns its id. func (c *Client) CreateProductPutaway(pp *ProductPutaway) (int64, error) { - ids, err := c.Create(ProductPutawayModel, []interface{}{pp}) + ids, err := c.CreateProductPutaways([]*ProductPutaway{pp}) if err != nil { return -1, err } diff --git a/product_removal.go b/product_removal.go index aec14a4d..e5b94dd5 100644 --- a/product_removal.go +++ b/product_removal.go @@ -30,7 +30,7 @@ func (pr *ProductRemoval) Many2One() *Many2One { // CreateProductRemoval creates a new product.removal model and returns its id. func (c *Client) CreateProductRemoval(pr *ProductRemoval) (int64, error) { - ids, err := c.Create(ProductRemovalModel, []interface{}{pr}) + ids, err := c.CreateProductRemovals([]*ProductRemoval{pr}) if err != nil { return -1, err } diff --git a/product_supplierinfo.go b/product_supplierinfo.go index 7f9f3e28..892e3d8c 100644 --- a/product_supplierinfo.go +++ b/product_supplierinfo.go @@ -43,7 +43,7 @@ func (ps *ProductSupplierinfo) Many2One() *Many2One { // CreateProductSupplierinfo creates a new product.supplierinfo model and returns its id. func (c *Client) CreateProductSupplierinfo(ps *ProductSupplierinfo) (int64, error) { - ids, err := c.Create(ProductSupplierinfoModel, []interface{}{ps}) + ids, err := c.CreateProductSupplierinfos([]*ProductSupplierinfo{ps}) if err != nil { return -1, err } diff --git a/product_template.go b/product_template.go index 906532ea..38c4d526 100644 --- a/product_template.go +++ b/product_template.go @@ -126,7 +126,7 @@ func (pt *ProductTemplate) Many2One() *Many2One { // CreateProductTemplate creates a new product.template model and returns its id. func (c *Client) CreateProductTemplate(pt *ProductTemplate) (int64, error) { - ids, err := c.Create(ProductTemplateModel, []interface{}{pt}) + ids, err := c.CreateProductTemplates([]*ProductTemplate{pt}) if err != nil { return -1, err } diff --git a/product_uom.go b/product_uom.go index fb0dde9b..b5d5abfe 100644 --- a/product_uom.go +++ b/product_uom.go @@ -35,7 +35,7 @@ func (pu *ProductUom) Many2One() *Many2One { // CreateProductUom creates a new product.uom model and returns its id. func (c *Client) CreateProductUom(pu *ProductUom) (int64, error) { - ids, err := c.Create(ProductUomModel, []interface{}{pu}) + ids, err := c.CreateProductUoms([]*ProductUom{pu}) if err != nil { return -1, err } diff --git a/product_uom_categ.go b/product_uom_categ.go index ced4195a..711e8a35 100644 --- a/product_uom_categ.go +++ b/product_uom_categ.go @@ -29,7 +29,7 @@ func (puc *ProductUomCateg) Many2One() *Many2One { // CreateProductUomCateg creates a new product.uom.categ model and returns its id. func (c *Client) CreateProductUomCateg(puc *ProductUomCateg) (int64, error) { - ids, err := c.Create(ProductUomCategModel, []interface{}{puc}) + ids, err := c.CreateProductUomCategs([]*ProductUomCateg{puc}) if err != nil { return -1, err } diff --git a/project_project.go b/project_project.go index c567beb6..19c4d244 100644 --- a/project_project.go +++ b/project_project.go @@ -85,7 +85,7 @@ func (pp *ProjectProject) Many2One() *Many2One { // CreateProjectProject creates a new project.project model and returns its id. func (c *Client) CreateProjectProject(pp *ProjectProject) (int64, error) { - ids, err := c.Create(ProjectProjectModel, []interface{}{pp}) + ids, err := c.CreateProjectProjects([]*ProjectProject{pp}) if err != nil { return -1, err } diff --git a/project_tags.go b/project_tags.go index 357005e8..b5125bd7 100644 --- a/project_tags.go +++ b/project_tags.go @@ -30,7 +30,7 @@ func (pt *ProjectTags) Many2One() *Many2One { // CreateProjectTags creates a new project.tags model and returns its id. func (c *Client) CreateProjectTags(pt *ProjectTags) (int64, error) { - ids, err := c.Create(ProjectTagsModel, []interface{}{pt}) + ids, err := c.CreateProjectTagss([]*ProjectTags{pt}) if err != nil { return -1, err } diff --git a/project_task.go b/project_task.go index 6d8caf40..57d8f935 100644 --- a/project_task.go +++ b/project_task.go @@ -93,7 +93,7 @@ func (pt *ProjectTask) Many2One() *Many2One { // CreateProjectTask creates a new project.task model and returns its id. func (c *Client) CreateProjectTask(pt *ProjectTask) (int64, error) { - ids, err := c.Create(ProjectTaskModel, []interface{}{pt}) + ids, err := c.CreateProjectTasks([]*ProjectTask{pt}) if err != nil { return -1, err } diff --git a/project_task_merge_wizard.go b/project_task_merge_wizard.go index 12155685..8b85f394 100644 --- a/project_task_merge_wizard.go +++ b/project_task_merge_wizard.go @@ -34,7 +34,7 @@ func (ptmw *ProjectTaskMergeWizard) Many2One() *Many2One { // CreateProjectTaskMergeWizard creates a new project.task.merge.wizard model and returns its id. func (c *Client) CreateProjectTaskMergeWizard(ptmw *ProjectTaskMergeWizard) (int64, error) { - ids, err := c.Create(ProjectTaskMergeWizardModel, []interface{}{ptmw}) + ids, err := c.CreateProjectTaskMergeWizards([]*ProjectTaskMergeWizard{ptmw}) if err != nil { return -1, err } diff --git a/project_task_type.go b/project_task_type.go index 0ffb6adb..f9831ffc 100644 --- a/project_task_type.go +++ b/project_task_type.go @@ -38,7 +38,7 @@ func (ptt *ProjectTaskType) Many2One() *Many2One { // CreateProjectTaskType creates a new project.task.type model and returns its id. func (c *Client) CreateProjectTaskType(ptt *ProjectTaskType) (int64, error) { - ids, err := c.Create(ProjectTaskTypeModel, []interface{}{ptt}) + ids, err := c.CreateProjectTaskTypes([]*ProjectTaskType{ptt}) if err != nil { return -1, err } diff --git a/publisher_warranty_contract.go b/publisher_warranty_contract.go index 384804a0..4b36aa5e 100644 --- a/publisher_warranty_contract.go +++ b/publisher_warranty_contract.go @@ -24,7 +24,7 @@ func (pc *PublisherWarrantyContract) Many2One() *Many2One { // CreatePublisherWarrantyContract creates a new publisher_warranty.contract model and returns its id. func (c *Client) CreatePublisherWarrantyContract(pc *PublisherWarrantyContract) (int64, error) { - ids, err := c.Create(PublisherWarrantyContractModel, []interface{}{pc}) + ids, err := c.CreatePublisherWarrantyContracts([]*PublisherWarrantyContract{pc}) if err != nil { return -1, err } diff --git a/purchase_order.go b/purchase_order.go index de19b76a..8cde5abd 100644 --- a/purchase_order.go +++ b/purchase_order.go @@ -75,7 +75,7 @@ func (po *PurchaseOrder) Many2One() *Many2One { // CreatePurchaseOrder creates a new purchase.order model and returns its id. func (c *Client) CreatePurchaseOrder(po *PurchaseOrder) (int64, error) { - ids, err := c.Create(PurchaseOrderModel, []interface{}{po}) + ids, err := c.CreatePurchaseOrders([]*PurchaseOrder{po}) if err != nil { return -1, err } diff --git a/purchase_order_line.go b/purchase_order_line.go index daa1a1e3..7fc9ab1b 100644 --- a/purchase_order_line.go +++ b/purchase_order_line.go @@ -54,7 +54,7 @@ func (pol *PurchaseOrderLine) Many2One() *Many2One { // CreatePurchaseOrderLine creates a new purchase.order.line model and returns its id. func (c *Client) CreatePurchaseOrderLine(pol *PurchaseOrderLine) (int64, error) { - ids, err := c.Create(PurchaseOrderLineModel, []interface{}{pol}) + ids, err := c.CreatePurchaseOrderLines([]*PurchaseOrderLine{pol}) if err != nil { return -1, err } diff --git a/purchase_report.go b/purchase_report.go index f5b46625..88d6296f 100644 --- a/purchase_report.go +++ b/purchase_report.go @@ -50,7 +50,7 @@ func (pr *PurchaseReport) Many2One() *Many2One { // CreatePurchaseReport creates a new purchase.report model and returns its id. func (c *Client) CreatePurchaseReport(pr *PurchaseReport) (int64, error) { - ids, err := c.Create(PurchaseReportModel, []interface{}{pr}) + ids, err := c.CreatePurchaseReports([]*PurchaseReport{pr}) if err != nil { return -1, err } diff --git a/rating_mixin.go b/rating_mixin.go index d3cecc27..7a51d8e4 100644 --- a/rating_mixin.go +++ b/rating_mixin.go @@ -29,7 +29,7 @@ func (rm *RatingMixin) Many2One() *Many2One { // CreateRatingMixin creates a new rating.mixin model and returns its id. func (c *Client) CreateRatingMixin(rm *RatingMixin) (int64, error) { - ids, err := c.Create(RatingMixinModel, []interface{}{rm}) + ids, err := c.CreateRatingMixins([]*RatingMixin{rm}) if err != nil { return -1, err } diff --git a/rating_rating.go b/rating_rating.go index b66aa85b..64e0c523 100644 --- a/rating_rating.go +++ b/rating_rating.go @@ -45,7 +45,7 @@ func (rr *RatingRating) Many2One() *Many2One { // CreateRatingRating creates a new rating.rating model and returns its id. func (c *Client) CreateRatingRating(rr *RatingRating) (int64, error) { - ids, err := c.Create(RatingRatingModel, []interface{}{rr}) + ids, err := c.CreateRatingRatings([]*RatingRating{rr}) if err != nil { return -1, err } diff --git a/report_account_report_agedpartnerbalance.go b/report_account_report_agedpartnerbalance.go index 7f79044b..2f2146e5 100644 --- a/report_account_report_agedpartnerbalance.go +++ b/report_account_report_agedpartnerbalance.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportAgedpartnerbalance) Many2One() *Many2One { // CreateReportAccountReportAgedpartnerbalance creates a new report.account.report_agedpartnerbalance model and returns its id. func (c *Client) CreateReportAccountReportAgedpartnerbalance(rar *ReportAccountReportAgedpartnerbalance) (int64, error) { - ids, err := c.Create(ReportAccountReportAgedpartnerbalanceModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportAgedpartnerbalances([]*ReportAccountReportAgedpartnerbalance{rar}) if err != nil { return -1, err } diff --git a/report_account_report_financial.go b/report_account_report_financial.go index 87934af9..cb04b95f 100644 --- a/report_account_report_financial.go +++ b/report_account_report_financial.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportFinancial) Many2One() *Many2One { // CreateReportAccountReportFinancial creates a new report.account.report_financial model and returns its id. func (c *Client) CreateReportAccountReportFinancial(rar *ReportAccountReportFinancial) (int64, error) { - ids, err := c.Create(ReportAccountReportFinancialModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportFinancials([]*ReportAccountReportFinancial{rar}) if err != nil { return -1, err } diff --git a/report_account_report_generalledger.go b/report_account_report_generalledger.go index c24bcea8..0d84781c 100644 --- a/report_account_report_generalledger.go +++ b/report_account_report_generalledger.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportGeneralledger) Many2One() *Many2One { // CreateReportAccountReportGeneralledger creates a new report.account.report_generalledger model and returns its id. func (c *Client) CreateReportAccountReportGeneralledger(rar *ReportAccountReportGeneralledger) (int64, error) { - ids, err := c.Create(ReportAccountReportGeneralledgerModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportGeneralledgers([]*ReportAccountReportGeneralledger{rar}) if err != nil { return -1, err } diff --git a/report_account_report_journal.go b/report_account_report_journal.go index af563b2a..f38fd8e5 100644 --- a/report_account_report_journal.go +++ b/report_account_report_journal.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportJournal) Many2One() *Many2One { // CreateReportAccountReportJournal creates a new report.account.report_journal model and returns its id. func (c *Client) CreateReportAccountReportJournal(rar *ReportAccountReportJournal) (int64, error) { - ids, err := c.Create(ReportAccountReportJournalModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportJournals([]*ReportAccountReportJournal{rar}) if err != nil { return -1, err } diff --git a/report_account_report_overdue.go b/report_account_report_overdue.go index 2d8cd2a7..9003e858 100644 --- a/report_account_report_overdue.go +++ b/report_account_report_overdue.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportOverdue) Many2One() *Many2One { // CreateReportAccountReportOverdue creates a new report.account.report_overdue model and returns its id. func (c *Client) CreateReportAccountReportOverdue(rar *ReportAccountReportOverdue) (int64, error) { - ids, err := c.Create(ReportAccountReportOverdueModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportOverdues([]*ReportAccountReportOverdue{rar}) if err != nil { return -1, err } diff --git a/report_account_report_partnerledger.go b/report_account_report_partnerledger.go index 220623cf..f67fa1b3 100644 --- a/report_account_report_partnerledger.go +++ b/report_account_report_partnerledger.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportPartnerledger) Many2One() *Many2One { // CreateReportAccountReportPartnerledger creates a new report.account.report_partnerledger model and returns its id. func (c *Client) CreateReportAccountReportPartnerledger(rar *ReportAccountReportPartnerledger) (int64, error) { - ids, err := c.Create(ReportAccountReportPartnerledgerModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportPartnerledgers([]*ReportAccountReportPartnerledger{rar}) if err != nil { return -1, err } diff --git a/report_account_report_tax.go b/report_account_report_tax.go index 1a142cb4..5943239b 100644 --- a/report_account_report_tax.go +++ b/report_account_report_tax.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportTax) Many2One() *Many2One { // CreateReportAccountReportTax creates a new report.account.report_tax model and returns its id. func (c *Client) CreateReportAccountReportTax(rar *ReportAccountReportTax) (int64, error) { - ids, err := c.Create(ReportAccountReportTaxModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportTaxs([]*ReportAccountReportTax{rar}) if err != nil { return -1, err } diff --git a/report_account_report_trialbalance.go b/report_account_report_trialbalance.go index d51e49c6..5e75a597 100644 --- a/report_account_report_trialbalance.go +++ b/report_account_report_trialbalance.go @@ -24,7 +24,7 @@ func (rar *ReportAccountReportTrialbalance) Many2One() *Many2One { // CreateReportAccountReportTrialbalance creates a new report.account.report_trialbalance model and returns its id. func (c *Client) CreateReportAccountReportTrialbalance(rar *ReportAccountReportTrialbalance) (int64, error) { - ids, err := c.Create(ReportAccountReportTrialbalanceModel, []interface{}{rar}) + ids, err := c.CreateReportAccountReportTrialbalances([]*ReportAccountReportTrialbalance{rar}) if err != nil { return -1, err } diff --git a/report_all_channels_sales.go b/report_all_channels_sales.go index 52f045f2..85cb98cb 100644 --- a/report_all_channels_sales.go +++ b/report_all_channels_sales.go @@ -39,7 +39,7 @@ func (racs *ReportAllChannelsSales) Many2One() *Many2One { // CreateReportAllChannelsSales creates a new report.all.channels.sales model and returns its id. func (c *Client) CreateReportAllChannelsSales(racs *ReportAllChannelsSales) (int64, error) { - ids, err := c.Create(ReportAllChannelsSalesModel, []interface{}{racs}) + ids, err := c.CreateReportAllChannelsSaless([]*ReportAllChannelsSales{racs}) if err != nil { return -1, err } diff --git a/report_base_report_irmodulereference.go b/report_base_report_irmodulereference.go index 717f8945..520d6907 100644 --- a/report_base_report_irmodulereference.go +++ b/report_base_report_irmodulereference.go @@ -24,7 +24,7 @@ func (rbr *ReportBaseReportIrmodulereference) Many2One() *Many2One { // CreateReportBaseReportIrmodulereference creates a new report.base.report_irmodulereference model and returns its id. func (c *Client) CreateReportBaseReportIrmodulereference(rbr *ReportBaseReportIrmodulereference) (int64, error) { - ids, err := c.Create(ReportBaseReportIrmodulereferenceModel, []interface{}{rbr}) + ids, err := c.CreateReportBaseReportIrmodulereferences([]*ReportBaseReportIrmodulereference{rbr}) if err != nil { return -1, err } diff --git a/report_hr_holidays_report_holidayssummary.go b/report_hr_holidays_report_holidayssummary.go index 69ca1b84..4f9695d5 100644 --- a/report_hr_holidays_report_holidayssummary.go +++ b/report_hr_holidays_report_holidayssummary.go @@ -24,7 +24,7 @@ func (rhr *ReportHrHolidaysReportHolidayssummary) Many2One() *Many2One { // CreateReportHrHolidaysReportHolidayssummary creates a new report.hr_holidays.report_holidayssummary model and returns its id. func (c *Client) CreateReportHrHolidaysReportHolidayssummary(rhr *ReportHrHolidaysReportHolidayssummary) (int64, error) { - ids, err := c.Create(ReportHrHolidaysReportHolidayssummaryModel, []interface{}{rhr}) + ids, err := c.CreateReportHrHolidaysReportHolidayssummarys([]*ReportHrHolidaysReportHolidayssummary{rhr}) if err != nil { return -1, err } diff --git a/report_paperformat.go b/report_paperformat.go index 3cb645e9..4b8d5172 100644 --- a/report_paperformat.go +++ b/report_paperformat.go @@ -42,7 +42,7 @@ func (rp *ReportPaperformat) Many2One() *Many2One { // CreateReportPaperformat creates a new report.paperformat model and returns its id. func (c *Client) CreateReportPaperformat(rp *ReportPaperformat) (int64, error) { - ids, err := c.Create(ReportPaperformatModel, []interface{}{rp}) + ids, err := c.CreateReportPaperformats([]*ReportPaperformat{rp}) if err != nil { return -1, err } diff --git a/report_product_report_pricelist.go b/report_product_report_pricelist.go index 647c5960..a6c02219 100644 --- a/report_product_report_pricelist.go +++ b/report_product_report_pricelist.go @@ -24,7 +24,7 @@ func (rpr *ReportProductReportPricelist) Many2One() *Many2One { // CreateReportProductReportPricelist creates a new report.product.report_pricelist model and returns its id. func (c *Client) CreateReportProductReportPricelist(rpr *ReportProductReportPricelist) (int64, error) { - ids, err := c.Create(ReportProductReportPricelistModel, []interface{}{rpr}) + ids, err := c.CreateReportProductReportPricelists([]*ReportProductReportPricelist{rpr}) if err != nil { return -1, err } diff --git a/report_project_task_user.go b/report_project_task_user.go index 2601ae3d..2cc9f5b3 100644 --- a/report_project_task_user.go +++ b/report_project_task_user.go @@ -46,7 +46,7 @@ func (rptu *ReportProjectTaskUser) Many2One() *Many2One { // CreateReportProjectTaskUser creates a new report.project.task.user model and returns its id. func (c *Client) CreateReportProjectTaskUser(rptu *ReportProjectTaskUser) (int64, error) { - ids, err := c.Create(ReportProjectTaskUserModel, []interface{}{rptu}) + ids, err := c.CreateReportProjectTaskUsers([]*ReportProjectTaskUser{rptu}) if err != nil { return -1, err } diff --git a/report_sale_report_saleproforma.go b/report_sale_report_saleproforma.go index 30d9752b..fb30888b 100644 --- a/report_sale_report_saleproforma.go +++ b/report_sale_report_saleproforma.go @@ -24,7 +24,7 @@ func (rsr *ReportSaleReportSaleproforma) Many2One() *Many2One { // CreateReportSaleReportSaleproforma creates a new report.sale.report_saleproforma model and returns its id. func (c *Client) CreateReportSaleReportSaleproforma(rsr *ReportSaleReportSaleproforma) (int64, error) { - ids, err := c.Create(ReportSaleReportSaleproformaModel, []interface{}{rsr}) + ids, err := c.CreateReportSaleReportSaleproformas([]*ReportSaleReportSaleproforma{rsr}) if err != nil { return -1, err } diff --git a/report_stock_forecast.go b/report_stock_forecast.go index 9dd9042b..08e45097 100644 --- a/report_stock_forecast.go +++ b/report_stock_forecast.go @@ -29,7 +29,7 @@ func (rsf *ReportStockForecast) Many2One() *Many2One { // CreateReportStockForecast creates a new report.stock.forecast model and returns its id. func (c *Client) CreateReportStockForecast(rsf *ReportStockForecast) (int64, error) { - ids, err := c.Create(ReportStockForecastModel, []interface{}{rsf}) + ids, err := c.CreateReportStockForecasts([]*ReportStockForecast{rsf}) if err != nil { return -1, err } diff --git a/res_bank.go b/res_bank.go index f64a34c3..133bf10c 100644 --- a/res_bank.go +++ b/res_bank.go @@ -39,7 +39,7 @@ func (rb *ResBank) Many2One() *Many2One { // CreateResBank creates a new res.bank model and returns its id. func (c *Client) CreateResBank(rb *ResBank) (int64, error) { - ids, err := c.Create(ResBankModel, []interface{}{rb}) + ids, err := c.CreateResBanks([]*ResBank{rb}) if err != nil { return -1, err } diff --git a/res_company.go b/res_company.go index d6fed595..98383b8c 100644 --- a/res_company.go +++ b/res_company.go @@ -106,7 +106,7 @@ func (rc *ResCompany) Many2One() *Many2One { // CreateResCompany creates a new res.company model and returns its id. func (c *Client) CreateResCompany(rc *ResCompany) (int64, error) { - ids, err := c.Create(ResCompanyModel, []interface{}{rc}) + ids, err := c.CreateResCompanys([]*ResCompany{rc}) if err != nil { return -1, err } diff --git a/res_config.go b/res_config.go index 5467c426..5132e0a0 100644 --- a/res_config.go +++ b/res_config.go @@ -28,7 +28,7 @@ func (rc *ResConfig) Many2One() *Many2One { // CreateResConfig creates a new res.config model and returns its id. func (c *Client) CreateResConfig(rc *ResConfig) (int64, error) { - ids, err := c.Create(ResConfigModel, []interface{}{rc}) + ids, err := c.CreateResConfigs([]*ResConfig{rc}) if err != nil { return -1, err } diff --git a/res_config_installer.go b/res_config_installer.go index d084d838..b5e7cb79 100644 --- a/res_config_installer.go +++ b/res_config_installer.go @@ -28,7 +28,7 @@ func (rci *ResConfigInstaller) Many2One() *Many2One { // CreateResConfigInstaller creates a new res.config.installer model and returns its id. func (c *Client) CreateResConfigInstaller(rci *ResConfigInstaller) (int64, error) { - ids, err := c.Create(ResConfigInstallerModel, []interface{}{rci}) + ids, err := c.CreateResConfigInstallers([]*ResConfigInstaller{rci}) if err != nil { return -1, err } diff --git a/res_config_settings.go b/res_config_settings.go index cdfafac7..41c98568 100644 --- a/res_config_settings.go +++ b/res_config_settings.go @@ -182,7 +182,7 @@ func (rcs *ResConfigSettings) Many2One() *Many2One { // CreateResConfigSettings creates a new res.config.settings model and returns its id. func (c *Client) CreateResConfigSettings(rcs *ResConfigSettings) (int64, error) { - ids, err := c.Create(ResConfigSettingsModel, []interface{}{rcs}) + ids, err := c.CreateResConfigSettingss([]*ResConfigSettings{rcs}) if err != nil { return -1, err } diff --git a/res_country.go b/res_country.go index b8733aec..02b3da2f 100644 --- a/res_country.go +++ b/res_country.go @@ -39,7 +39,7 @@ func (rc *ResCountry) Many2One() *Many2One { // CreateResCountry creates a new res.country model and returns its id. func (c *Client) CreateResCountry(rc *ResCountry) (int64, error) { - ids, err := c.Create(ResCountryModel, []interface{}{rc}) + ids, err := c.CreateResCountrys([]*ResCountry{rc}) if err != nil { return -1, err } diff --git a/res_country_group.go b/res_country_group.go index 042c3dbf..42ba8249 100644 --- a/res_country_group.go +++ b/res_country_group.go @@ -31,7 +31,7 @@ func (rcg *ResCountryGroup) Many2One() *Many2One { // CreateResCountryGroup creates a new res.country.group model and returns its id. func (c *Client) CreateResCountryGroup(rcg *ResCountryGroup) (int64, error) { - ids, err := c.Create(ResCountryGroupModel, []interface{}{rcg}) + ids, err := c.CreateResCountryGroups([]*ResCountryGroup{rcg}) if err != nil { return -1, err } diff --git a/res_country_state.go b/res_country_state.go index 52bd1c18..1598eb46 100644 --- a/res_country_state.go +++ b/res_country_state.go @@ -31,7 +31,7 @@ func (rcs *ResCountryState) Many2One() *Many2One { // CreateResCountryState creates a new res.country.state model and returns its id. func (c *Client) CreateResCountryState(rcs *ResCountryState) (int64, error) { - ids, err := c.Create(ResCountryStateModel, []interface{}{rcs}) + ids, err := c.CreateResCountryStates([]*ResCountryState{rcs}) if err != nil { return -1, err } diff --git a/res_currency.go b/res_currency.go index 45b12402..0fd49385 100644 --- a/res_currency.go +++ b/res_currency.go @@ -39,7 +39,7 @@ func (rc *ResCurrency) Many2One() *Many2One { // CreateResCurrency creates a new res.currency model and returns its id. func (c *Client) CreateResCurrency(rc *ResCurrency) (int64, error) { - ids, err := c.Create(ResCurrencyModel, []interface{}{rc}) + ids, err := c.CreateResCurrencys([]*ResCurrency{rc}) if err != nil { return -1, err } diff --git a/res_currency_rate.go b/res_currency_rate.go index 5eac4025..d3126510 100644 --- a/res_currency_rate.go +++ b/res_currency_rate.go @@ -32,7 +32,7 @@ func (rcr *ResCurrencyRate) Many2One() *Many2One { // CreateResCurrencyRate creates a new res.currency.rate model and returns its id. func (c *Client) CreateResCurrencyRate(rcr *ResCurrencyRate) (int64, error) { - ids, err := c.Create(ResCurrencyRateModel, []interface{}{rcr}) + ids, err := c.CreateResCurrencyRates([]*ResCurrencyRate{rcr}) if err != nil { return -1, err } diff --git a/res_groups.go b/res_groups.go index 8356a21e..0df635c6 100644 --- a/res_groups.go +++ b/res_groups.go @@ -42,7 +42,7 @@ func (rg *ResGroups) Many2One() *Many2One { // CreateResGroups creates a new res.groups model and returns its id. func (c *Client) CreateResGroups(rg *ResGroups) (int64, error) { - ids, err := c.Create(ResGroupsModel, []interface{}{rg}) + ids, err := c.CreateResGroupss([]*ResGroups{rg}) if err != nil { return -1, err } diff --git a/res_lang.go b/res_lang.go index 6fcbc1f0..499a9ebb 100644 --- a/res_lang.go +++ b/res_lang.go @@ -39,7 +39,7 @@ func (rl *ResLang) Many2One() *Many2One { // CreateResLang creates a new res.lang model and returns its id. func (c *Client) CreateResLang(rl *ResLang) (int64, error) { - ids, err := c.Create(ResLangModel, []interface{}{rl}) + ids, err := c.CreateResLangs([]*ResLang{rl}) if err != nil { return -1, err } diff --git a/res_partner.go b/res_partner.go index fdd75e58..ae6288b2 100644 --- a/res_partner.go +++ b/res_partner.go @@ -152,7 +152,7 @@ func (rp *ResPartner) Many2One() *Many2One { // CreateResPartner creates a new res.partner model and returns its id. func (c *Client) CreateResPartner(rp *ResPartner) (int64, error) { - ids, err := c.Create(ResPartnerModel, []interface{}{rp}) + ids, err := c.CreateResPartners([]*ResPartner{rp}) if err != nil { return -1, err } diff --git a/res_partner_bank.go b/res_partner_bank.go index e24ad02d..5972ec9d 100644 --- a/res_partner_bank.go +++ b/res_partner_bank.go @@ -39,7 +39,7 @@ func (rpb *ResPartnerBank) Many2One() *Many2One { // CreateResPartnerBank creates a new res.partner.bank model and returns its id. func (c *Client) CreateResPartnerBank(rpb *ResPartnerBank) (int64, error) { - ids, err := c.Create(ResPartnerBankModel, []interface{}{rpb}) + ids, err := c.CreateResPartnerBanks([]*ResPartnerBank{rpb}) if err != nil { return -1, err } diff --git a/res_partner_category.go b/res_partner_category.go index aa9beb05..0588e2fd 100644 --- a/res_partner_category.go +++ b/res_partner_category.go @@ -36,7 +36,7 @@ func (rpc *ResPartnerCategory) Many2One() *Many2One { // CreateResPartnerCategory creates a new res.partner.category model and returns its id. func (c *Client) CreateResPartnerCategory(rpc *ResPartnerCategory) (int64, error) { - ids, err := c.Create(ResPartnerCategoryModel, []interface{}{rpc}) + ids, err := c.CreateResPartnerCategorys([]*ResPartnerCategory{rpc}) if err != nil { return -1, err } diff --git a/res_partner_industry.go b/res_partner_industry.go index fee513bd..708b281c 100644 --- a/res_partner_industry.go +++ b/res_partner_industry.go @@ -31,7 +31,7 @@ func (rpi *ResPartnerIndustry) Many2One() *Many2One { // CreateResPartnerIndustry creates a new res.partner.industry model and returns its id. func (c *Client) CreateResPartnerIndustry(rpi *ResPartnerIndustry) (int64, error) { - ids, err := c.Create(ResPartnerIndustryModel, []interface{}{rpi}) + ids, err := c.CreateResPartnerIndustrys([]*ResPartnerIndustry{rpi}) if err != nil { return -1, err } diff --git a/res_partner_title.go b/res_partner_title.go index d03c556e..1b6c3ea0 100644 --- a/res_partner_title.go +++ b/res_partner_title.go @@ -30,7 +30,7 @@ func (rpt *ResPartnerTitle) Many2One() *Many2One { // CreateResPartnerTitle creates a new res.partner.title model and returns its id. func (c *Client) CreateResPartnerTitle(rpt *ResPartnerTitle) (int64, error) { - ids, err := c.Create(ResPartnerTitleModel, []interface{}{rpt}) + ids, err := c.CreateResPartnerTitles([]*ResPartnerTitle{rpt}) if err != nil { return -1, err } diff --git a/res_request_link.go b/res_request_link.go index c60e81af..27bc10dc 100644 --- a/res_request_link.go +++ b/res_request_link.go @@ -31,7 +31,7 @@ func (rrl *ResRequestLink) Many2One() *Many2One { // CreateResRequestLink creates a new res.request.link model and returns its id. func (c *Client) CreateResRequestLink(rrl *ResRequestLink) (int64, error) { - ids, err := c.Create(ResRequestLinkModel, []interface{}{rrl}) + ids, err := c.CreateResRequestLinks([]*ResRequestLink{rrl}) if err != nil { return -1, err } diff --git a/res_users.go b/res_users.go index cc2cb6ad..e1ecd788 100644 --- a/res_users.go +++ b/res_users.go @@ -178,7 +178,7 @@ func (ru *ResUsers) Many2One() *Many2One { // CreateResUsers creates a new res.users model and returns its id. func (c *Client) CreateResUsers(ru *ResUsers) (int64, error) { - ids, err := c.Create(ResUsersModel, []interface{}{ru}) + ids, err := c.CreateResUserss([]*ResUsers{ru}) if err != nil { return -1, err } diff --git a/res_users_log.go b/res_users_log.go index 1f94f104..077c126d 100644 --- a/res_users_log.go +++ b/res_users_log.go @@ -28,7 +28,7 @@ func (rul *ResUsersLog) Many2One() *Many2One { // CreateResUsersLog creates a new res.users.log model and returns its id. func (c *Client) CreateResUsersLog(rul *ResUsersLog) (int64, error) { - ids, err := c.Create(ResUsersLogModel, []interface{}{rul}) + ids, err := c.CreateResUsersLogs([]*ResUsersLog{rul}) if err != nil { return -1, err } diff --git a/resource_calendar.go b/resource_calendar.go index b1745826..e4545e70 100644 --- a/resource_calendar.go +++ b/resource_calendar.go @@ -33,7 +33,7 @@ func (rc *ResourceCalendar) Many2One() *Many2One { // CreateResourceCalendar creates a new resource.calendar model and returns its id. func (c *Client) CreateResourceCalendar(rc *ResourceCalendar) (int64, error) { - ids, err := c.Create(ResourceCalendarModel, []interface{}{rc}) + ids, err := c.CreateResourceCalendars([]*ResourceCalendar{rc}) if err != nil { return -1, err } diff --git a/resource_calendar_attendance.go b/resource_calendar_attendance.go index 09e68eec..6a465861 100644 --- a/resource_calendar_attendance.go +++ b/resource_calendar_attendance.go @@ -35,7 +35,7 @@ func (rca *ResourceCalendarAttendance) Many2One() *Many2One { // CreateResourceCalendarAttendance creates a new resource.calendar.attendance model and returns its id. func (c *Client) CreateResourceCalendarAttendance(rca *ResourceCalendarAttendance) (int64, error) { - ids, err := c.Create(ResourceCalendarAttendanceModel, []interface{}{rca}) + ids, err := c.CreateResourceCalendarAttendances([]*ResourceCalendarAttendance{rca}) if err != nil { return -1, err } diff --git a/resource_calendar_leaves.go b/resource_calendar_leaves.go index 21ace8af..3d4597a1 100644 --- a/resource_calendar_leaves.go +++ b/resource_calendar_leaves.go @@ -36,7 +36,7 @@ func (rcl *ResourceCalendarLeaves) Many2One() *Many2One { // CreateResourceCalendarLeaves creates a new resource.calendar.leaves model and returns its id. func (c *Client) CreateResourceCalendarLeaves(rcl *ResourceCalendarLeaves) (int64, error) { - ids, err := c.Create(ResourceCalendarLeavesModel, []interface{}{rcl}) + ids, err := c.CreateResourceCalendarLeavess([]*ResourceCalendarLeaves{rcl}) if err != nil { return -1, err } diff --git a/resource_mixin.go b/resource_mixin.go index 69286869..e25b063c 100644 --- a/resource_mixin.go +++ b/resource_mixin.go @@ -27,7 +27,7 @@ func (rm *ResourceMixin) Many2One() *Many2One { // CreateResourceMixin creates a new resource.mixin model and returns its id. func (c *Client) CreateResourceMixin(rm *ResourceMixin) (int64, error) { - ids, err := c.Create(ResourceMixinModel, []interface{}{rm}) + ids, err := c.CreateResourceMixins([]*ResourceMixin{rm}) if err != nil { return -1, err } diff --git a/resource_resource.go b/resource_resource.go index 5d6b9152..47fd7208 100644 --- a/resource_resource.go +++ b/resource_resource.go @@ -35,7 +35,7 @@ func (rr *ResourceResource) Many2One() *Many2One { // CreateResourceResource creates a new resource.resource model and returns its id. func (c *Client) CreateResourceResource(rr *ResourceResource) (int64, error) { - ids, err := c.Create(ResourceResourceModel, []interface{}{rr}) + ids, err := c.CreateResourceResources([]*ResourceResource{rr}) if err != nil { return -1, err } diff --git a/resource_test.go b/resource_test.go index c39dd9ef..6f610ba5 100644 --- a/resource_test.go +++ b/resource_test.go @@ -32,7 +32,7 @@ func (rt *ResourceTest) Many2One() *Many2One { // CreateResourceTest creates a new resource.test model and returns its id. func (c *Client) CreateResourceTest(rt *ResourceTest) (int64, error) { - ids, err := c.Create(ResourceTestModel, []interface{}{rt}) + ids, err := c.CreateResourceTests([]*ResourceTest{rt}) if err != nil { return -1, err } diff --git a/sale_advance_payment_inv.go b/sale_advance_payment_inv.go index aa50f7b5..996d42ed 100644 --- a/sale_advance_payment_inv.go +++ b/sale_advance_payment_inv.go @@ -34,7 +34,7 @@ func (sapi *SaleAdvancePaymentInv) Many2One() *Many2One { // CreateSaleAdvancePaymentInv creates a new sale.advance.payment.inv model and returns its id. func (c *Client) CreateSaleAdvancePaymentInv(sapi *SaleAdvancePaymentInv) (int64, error) { - ids, err := c.Create(SaleAdvancePaymentInvModel, []interface{}{sapi}) + ids, err := c.CreateSaleAdvancePaymentInvs([]*SaleAdvancePaymentInv{sapi}) if err != nil { return -1, err } diff --git a/sale_layout_category.go b/sale_layout_category.go index ff59db25..4cc7c423 100644 --- a/sale_layout_category.go +++ b/sale_layout_category.go @@ -32,7 +32,7 @@ func (sl *SaleLayoutCategory) Many2One() *Many2One { // CreateSaleLayoutCategory creates a new sale.layout_category model and returns its id. func (c *Client) CreateSaleLayoutCategory(sl *SaleLayoutCategory) (int64, error) { - ids, err := c.Create(SaleLayoutCategoryModel, []interface{}{sl}) + ids, err := c.CreateSaleLayoutCategorys([]*SaleLayoutCategory{sl}) if err != nil { return -1, err } diff --git a/sale_order.go b/sale_order.go index 1e488dba..267d1b90 100644 --- a/sale_order.go +++ b/sale_order.go @@ -96,7 +96,7 @@ func (so *SaleOrder) Many2One() *Many2One { // CreateSaleOrder creates a new sale.order model and returns its id. func (c *Client) CreateSaleOrder(so *SaleOrder) (int64, error) { - ids, err := c.Create(SaleOrderModel, []interface{}{so}) + ids, err := c.CreateSaleOrders([]*SaleOrder{so}) if err != nil { return -1, err } diff --git a/sale_order_line.go b/sale_order_line.go index daf75a94..75e696c3 100644 --- a/sale_order_line.go +++ b/sale_order_line.go @@ -70,7 +70,7 @@ func (sol *SaleOrderLine) Many2One() *Many2One { // CreateSaleOrderLine creates a new sale.order.line model and returns its id. func (c *Client) CreateSaleOrderLine(sol *SaleOrderLine) (int64, error) { - ids, err := c.Create(SaleOrderLineModel, []interface{}{sol}) + ids, err := c.CreateSaleOrderLines([]*SaleOrderLine{sol}) if err != nil { return -1, err } diff --git a/sale_report.go b/sale_report.go index d3e0c8fa..fe500571 100644 --- a/sale_report.go +++ b/sale_report.go @@ -52,7 +52,7 @@ func (sr *SaleReport) Many2One() *Many2One { // CreateSaleReport creates a new sale.report model and returns its id. func (c *Client) CreateSaleReport(sr *SaleReport) (int64, error) { - ids, err := c.Create(SaleReportModel, []interface{}{sr}) + ids, err := c.CreateSaleReports([]*SaleReport{sr}) if err != nil { return -1, err } diff --git a/sms_api.go b/sms_api.go index bd57298f..39605f8f 100644 --- a/sms_api.go +++ b/sms_api.go @@ -24,7 +24,7 @@ func (sa *SmsApi) Many2One() *Many2One { // CreateSmsApi creates a new sms.api model and returns its id. func (c *Client) CreateSmsApi(sa *SmsApi) (int64, error) { - ids, err := c.Create(SmsApiModel, []interface{}{sa}) + ids, err := c.CreateSmsApis([]*SmsApi{sa}) if err != nil { return -1, err } diff --git a/sms_send_sms.go b/sms_send_sms.go index 7ab7fc85..8df3abbd 100644 --- a/sms_send_sms.go +++ b/sms_send_sms.go @@ -30,7 +30,7 @@ func (ss *SmsSendSms) Many2One() *Many2One { // CreateSmsSendSms creates a new sms.send_sms model and returns its id. func (c *Client) CreateSmsSendSms(ss *SmsSendSms) (int64, error) { - ids, err := c.Create(SmsSendSmsModel, []interface{}{ss}) + ids, err := c.CreateSmsSendSmss([]*SmsSendSms{ss}) if err != nil { return -1, err } diff --git a/stock_backorder_confirmation.go b/stock_backorder_confirmation.go index 39b36ad4..95c4bb62 100644 --- a/stock_backorder_confirmation.go +++ b/stock_backorder_confirmation.go @@ -29,7 +29,7 @@ func (sbc *StockBackorderConfirmation) Many2One() *Many2One { // CreateStockBackorderConfirmation creates a new stock.backorder.confirmation model and returns its id. func (c *Client) CreateStockBackorderConfirmation(sbc *StockBackorderConfirmation) (int64, error) { - ids, err := c.Create(StockBackorderConfirmationModel, []interface{}{sbc}) + ids, err := c.CreateStockBackorderConfirmations([]*StockBackorderConfirmation{sbc}) if err != nil { return -1, err } diff --git a/stock_change_product_qty.go b/stock_change_product_qty.go index 2f88a491..87e5fc04 100644 --- a/stock_change_product_qty.go +++ b/stock_change_product_qty.go @@ -34,7 +34,7 @@ func (scpq *StockChangeProductQty) Many2One() *Many2One { // CreateStockChangeProductQty creates a new stock.change.product.qty model and returns its id. func (c *Client) CreateStockChangeProductQty(scpq *StockChangeProductQty) (int64, error) { - ids, err := c.Create(StockChangeProductQtyModel, []interface{}{scpq}) + ids, err := c.CreateStockChangeProductQtys([]*StockChangeProductQty{scpq}) if err != nil { return -1, err } diff --git a/stock_change_standard_price.go b/stock_change_standard_price.go index b89fc76f..67a4663f 100644 --- a/stock_change_standard_price.go +++ b/stock_change_standard_price.go @@ -31,7 +31,7 @@ func (scsp *StockChangeStandardPrice) Many2One() *Many2One { // CreateStockChangeStandardPrice creates a new stock.change.standard.price model and returns its id. func (c *Client) CreateStockChangeStandardPrice(scsp *StockChangeStandardPrice) (int64, error) { - ids, err := c.Create(StockChangeStandardPriceModel, []interface{}{scsp}) + ids, err := c.CreateStockChangeStandardPrices([]*StockChangeStandardPrice{scsp}) if err != nil { return -1, err } diff --git a/stock_fixed_putaway_strat.go b/stock_fixed_putaway_strat.go index 744075f2..27bad87e 100644 --- a/stock_fixed_putaway_strat.go +++ b/stock_fixed_putaway_strat.go @@ -32,7 +32,7 @@ func (sfps *StockFixedPutawayStrat) Many2One() *Many2One { // CreateStockFixedPutawayStrat creates a new stock.fixed.putaway.strat model and returns its id. func (c *Client) CreateStockFixedPutawayStrat(sfps *StockFixedPutawayStrat) (int64, error) { - ids, err := c.Create(StockFixedPutawayStratModel, []interface{}{sfps}) + ids, err := c.CreateStockFixedPutawayStrats([]*StockFixedPutawayStrat{sfps}) if err != nil { return -1, err } diff --git a/stock_immediate_transfer.go b/stock_immediate_transfer.go index 21737a43..cfe3997e 100644 --- a/stock_immediate_transfer.go +++ b/stock_immediate_transfer.go @@ -29,7 +29,7 @@ func (sit *StockImmediateTransfer) Many2One() *Many2One { // CreateStockImmediateTransfer creates a new stock.immediate.transfer model and returns its id. func (c *Client) CreateStockImmediateTransfer(sit *StockImmediateTransfer) (int64, error) { - ids, err := c.Create(StockImmediateTransferModel, []interface{}{sit}) + ids, err := c.CreateStockImmediateTransfers([]*StockImmediateTransfer{sit}) if err != nil { return -1, err } diff --git a/stock_incoterms.go b/stock_incoterms.go index bb32b275..0b4dedf4 100644 --- a/stock_incoterms.go +++ b/stock_incoterms.go @@ -31,7 +31,7 @@ func (si *StockIncoterms) Many2One() *Many2One { // CreateStockIncoterms creates a new stock.incoterms model and returns its id. func (c *Client) CreateStockIncoterms(si *StockIncoterms) (int64, error) { - ids, err := c.Create(StockIncotermsModel, []interface{}{si}) + ids, err := c.CreateStockIncotermss([]*StockIncoterms{si}) if err != nil { return -1, err } diff --git a/stock_inventory.go b/stock_inventory.go index 7a7cf41d..f86fd194 100644 --- a/stock_inventory.go +++ b/stock_inventory.go @@ -44,7 +44,7 @@ func (si *StockInventory) Many2One() *Many2One { // CreateStockInventory creates a new stock.inventory model and returns its id. func (c *Client) CreateStockInventory(si *StockInventory) (int64, error) { - ids, err := c.Create(StockInventoryModel, []interface{}{si}) + ids, err := c.CreateStockInventorys([]*StockInventory{si}) if err != nil { return -1, err } diff --git a/stock_inventory_line.go b/stock_inventory_line.go index c6375eda..48cf91dd 100644 --- a/stock_inventory_line.go +++ b/stock_inventory_line.go @@ -44,7 +44,7 @@ func (sil *StockInventoryLine) Many2One() *Many2One { // CreateStockInventoryLine creates a new stock.inventory.line model and returns its id. func (c *Client) CreateStockInventoryLine(sil *StockInventoryLine) (int64, error) { - ids, err := c.Create(StockInventoryLineModel, []interface{}{sil}) + ids, err := c.CreateStockInventoryLines([]*StockInventoryLine{sil}) if err != nil { return -1, err } diff --git a/stock_location.go b/stock_location.go index 03ccfdc8..d9f28330 100644 --- a/stock_location.go +++ b/stock_location.go @@ -50,7 +50,7 @@ func (sl *StockLocation) Many2One() *Many2One { // CreateStockLocation creates a new stock.location model and returns its id. func (c *Client) CreateStockLocation(sl *StockLocation) (int64, error) { - ids, err := c.Create(StockLocationModel, []interface{}{sl}) + ids, err := c.CreateStockLocations([]*StockLocation{sl}) if err != nil { return -1, err } diff --git a/stock_location_path.go b/stock_location_path.go index 0d0c1744..13b8cf04 100644 --- a/stock_location_path.go +++ b/stock_location_path.go @@ -41,7 +41,7 @@ func (slp *StockLocationPath) Many2One() *Many2One { // CreateStockLocationPath creates a new stock.location.path model and returns its id. func (c *Client) CreateStockLocationPath(slp *StockLocationPath) (int64, error) { - ids, err := c.Create(StockLocationPathModel, []interface{}{slp}) + ids, err := c.CreateStockLocationPaths([]*StockLocationPath{slp}) if err != nil { return -1, err } diff --git a/stock_location_route.go b/stock_location_route.go index 52cc305b..59c664c2 100644 --- a/stock_location_route.go +++ b/stock_location_route.go @@ -43,7 +43,7 @@ func (slr *StockLocationRoute) Many2One() *Many2One { // CreateStockLocationRoute creates a new stock.location.route model and returns its id. func (c *Client) CreateStockLocationRoute(slr *StockLocationRoute) (int64, error) { - ids, err := c.Create(StockLocationRouteModel, []interface{}{slr}) + ids, err := c.CreateStockLocationRoutes([]*StockLocationRoute{slr}) if err != nil { return -1, err } diff --git a/stock_move.go b/stock_move.go index 719d4e71..6061f69d 100644 --- a/stock_move.go +++ b/stock_move.go @@ -93,7 +93,7 @@ func (sm *StockMove) Many2One() *Many2One { // CreateStockMove creates a new stock.move model and returns its id. func (c *Client) CreateStockMove(sm *StockMove) (int64, error) { - ids, err := c.Create(StockMoveModel, []interface{}{sm}) + ids, err := c.CreateStockMoves([]*StockMove{sm}) if err != nil { return -1, err } diff --git a/stock_move_line.go b/stock_move_line.go index 6695ea0d..ec88a4bf 100644 --- a/stock_move_line.go +++ b/stock_move_line.go @@ -54,7 +54,7 @@ func (sml *StockMoveLine) Many2One() *Many2One { // CreateStockMoveLine creates a new stock.move.line model and returns its id. func (c *Client) CreateStockMoveLine(sml *StockMoveLine) (int64, error) { - ids, err := c.Create(StockMoveLineModel, []interface{}{sml}) + ids, err := c.CreateStockMoveLines([]*StockMoveLine{sml}) if err != nil { return -1, err } diff --git a/stock_overprocessed_transfer.go b/stock_overprocessed_transfer.go index 656223e6..3b748fa3 100644 --- a/stock_overprocessed_transfer.go +++ b/stock_overprocessed_transfer.go @@ -30,7 +30,7 @@ func (sot *StockOverprocessedTransfer) Many2One() *Many2One { // CreateStockOverprocessedTransfer creates a new stock.overprocessed.transfer model and returns its id. func (c *Client) CreateStockOverprocessedTransfer(sot *StockOverprocessedTransfer) (int64, error) { - ids, err := c.Create(StockOverprocessedTransferModel, []interface{}{sot}) + ids, err := c.CreateStockOverprocessedTransfers([]*StockOverprocessedTransfer{sot}) if err != nil { return -1, err } diff --git a/stock_picking.go b/stock_picking.go index 821c05a1..d622e2ad 100644 --- a/stock_picking.go +++ b/stock_picking.go @@ -82,7 +82,7 @@ func (sp *StockPicking) Many2One() *Many2One { // CreateStockPicking creates a new stock.picking model and returns its id. func (c *Client) CreateStockPicking(sp *StockPicking) (int64, error) { - ids, err := c.Create(StockPickingModel, []interface{}{sp}) + ids, err := c.CreateStockPickings([]*StockPicking{sp}) if err != nil { return -1, err } diff --git a/stock_picking_type.go b/stock_picking_type.go index 2b9732a2..755e4521 100644 --- a/stock_picking_type.go +++ b/stock_picking_type.go @@ -53,7 +53,7 @@ func (spt *StockPickingType) Many2One() *Many2One { // CreateStockPickingType creates a new stock.picking.type model and returns its id. func (c *Client) CreateStockPickingType(spt *StockPickingType) (int64, error) { - ids, err := c.Create(StockPickingTypeModel, []interface{}{spt}) + ids, err := c.CreateStockPickingTypes([]*StockPickingType{spt}) if err != nil { return -1, err } diff --git a/stock_production_lot.go b/stock_production_lot.go index 038e97e3..d878fa5e 100644 --- a/stock_production_lot.go +++ b/stock_production_lot.go @@ -45,7 +45,7 @@ func (spl *StockProductionLot) Many2One() *Many2One { // CreateStockProductionLot creates a new stock.production.lot model and returns its id. func (c *Client) CreateStockProductionLot(spl *StockProductionLot) (int64, error) { - ids, err := c.Create(StockProductionLotModel, []interface{}{spl}) + ids, err := c.CreateStockProductionLots([]*StockProductionLot{spl}) if err != nil { return -1, err } diff --git a/stock_quant.go b/stock_quant.go index 30e22874..d708f3c6 100644 --- a/stock_quant.go +++ b/stock_quant.go @@ -39,7 +39,7 @@ func (sq *StockQuant) Many2One() *Many2One { // CreateStockQuant creates a new stock.quant model and returns its id. func (c *Client) CreateStockQuant(sq *StockQuant) (int64, error) { - ids, err := c.Create(StockQuantModel, []interface{}{sq}) + ids, err := c.CreateStockQuants([]*StockQuant{sq}) if err != nil { return -1, err } diff --git a/stock_quant_package.go b/stock_quant_package.go index fcc3d836..0db746db 100644 --- a/stock_quant_package.go +++ b/stock_quant_package.go @@ -40,7 +40,7 @@ func (sqp *StockQuantPackage) Many2One() *Many2One { // CreateStockQuantPackage creates a new stock.quant.package model and returns its id. func (c *Client) CreateStockQuantPackage(sqp *StockQuantPackage) (int64, error) { - ids, err := c.Create(StockQuantPackageModel, []interface{}{sqp}) + ids, err := c.CreateStockQuantPackages([]*StockQuantPackage{sqp}) if err != nil { return -1, err } diff --git a/stock_quantity_history.go b/stock_quantity_history.go index 170fd100..0a1f1244 100644 --- a/stock_quantity_history.go +++ b/stock_quantity_history.go @@ -30,7 +30,7 @@ func (sqh *StockQuantityHistory) Many2One() *Many2One { // CreateStockQuantityHistory creates a new stock.quantity.history model and returns its id. func (c *Client) CreateStockQuantityHistory(sqh *StockQuantityHistory) (int64, error) { - ids, err := c.Create(StockQuantityHistoryModel, []interface{}{sqh}) + ids, err := c.CreateStockQuantityHistorys([]*StockQuantityHistory{sqh}) if err != nil { return -1, err } diff --git a/stock_return_picking.go b/stock_return_picking.go index 4ded0137..23292b82 100644 --- a/stock_return_picking.go +++ b/stock_return_picking.go @@ -34,7 +34,7 @@ func (srp *StockReturnPicking) Many2One() *Many2One { // CreateStockReturnPicking creates a new stock.return.picking model and returns its id. func (c *Client) CreateStockReturnPicking(srp *StockReturnPicking) (int64, error) { - ids, err := c.Create(StockReturnPickingModel, []interface{}{srp}) + ids, err := c.CreateStockReturnPickings([]*StockReturnPicking{srp}) if err != nil { return -1, err } diff --git a/stock_return_picking_line.go b/stock_return_picking_line.go index fe0884c7..6f799d4d 100644 --- a/stock_return_picking_line.go +++ b/stock_return_picking_line.go @@ -34,7 +34,7 @@ func (srpl *StockReturnPickingLine) Many2One() *Many2One { // CreateStockReturnPickingLine creates a new stock.return.picking.line model and returns its id. func (c *Client) CreateStockReturnPickingLine(srpl *StockReturnPickingLine) (int64, error) { - ids, err := c.Create(StockReturnPickingLineModel, []interface{}{srpl}) + ids, err := c.CreateStockReturnPickingLines([]*StockReturnPickingLine{srpl}) if err != nil { return -1, err } diff --git a/stock_scheduler_compute.go b/stock_scheduler_compute.go index 9e608160..cda39cb7 100644 --- a/stock_scheduler_compute.go +++ b/stock_scheduler_compute.go @@ -28,7 +28,7 @@ func (ssc *StockSchedulerCompute) Many2One() *Many2One { // CreateStockSchedulerCompute creates a new stock.scheduler.compute model and returns its id. func (c *Client) CreateStockSchedulerCompute(ssc *StockSchedulerCompute) (int64, error) { - ids, err := c.Create(StockSchedulerComputeModel, []interface{}{ssc}) + ids, err := c.CreateStockSchedulerComputes([]*StockSchedulerCompute{ssc}) if err != nil { return -1, err } diff --git a/stock_scrap.go b/stock_scrap.go index e2210de3..f5ca1d15 100644 --- a/stock_scrap.go +++ b/stock_scrap.go @@ -43,7 +43,7 @@ func (ss *StockScrap) Many2One() *Many2One { // CreateStockScrap creates a new stock.scrap model and returns its id. func (c *Client) CreateStockScrap(ss *StockScrap) (int64, error) { - ids, err := c.Create(StockScrapModel, []interface{}{ss}) + ids, err := c.CreateStockScraps([]*StockScrap{ss}) if err != nil { return -1, err } diff --git a/stock_traceability_report.go b/stock_traceability_report.go index 04fa79f6..f14ba257 100644 --- a/stock_traceability_report.go +++ b/stock_traceability_report.go @@ -28,7 +28,7 @@ func (str *StockTraceabilityReport) Many2One() *Many2One { // CreateStockTraceabilityReport creates a new stock.traceability.report model and returns its id. func (c *Client) CreateStockTraceabilityReport(str *StockTraceabilityReport) (int64, error) { - ids, err := c.Create(StockTraceabilityReportModel, []interface{}{str}) + ids, err := c.CreateStockTraceabilityReports([]*StockTraceabilityReport{str}) if err != nil { return -1, err } diff --git a/stock_warehouse.go b/stock_warehouse.go index 39d2262d..6085533f 100644 --- a/stock_warehouse.go +++ b/stock_warehouse.go @@ -56,7 +56,7 @@ func (sw *StockWarehouse) Many2One() *Many2One { // CreateStockWarehouse creates a new stock.warehouse model and returns its id. func (c *Client) CreateStockWarehouse(sw *StockWarehouse) (int64, error) { - ids, err := c.Create(StockWarehouseModel, []interface{}{sw}) + ids, err := c.CreateStockWarehouses([]*StockWarehouse{sw}) if err != nil { return -1, err } diff --git a/stock_warehouse_orderpoint.go b/stock_warehouse_orderpoint.go index 3c0276eb..3962871d 100644 --- a/stock_warehouse_orderpoint.go +++ b/stock_warehouse_orderpoint.go @@ -41,7 +41,7 @@ func (swo *StockWarehouseOrderpoint) Many2One() *Many2One { // CreateStockWarehouseOrderpoint creates a new stock.warehouse.orderpoint model and returns its id. func (c *Client) CreateStockWarehouseOrderpoint(swo *StockWarehouseOrderpoint) (int64, error) { - ids, err := c.Create(StockWarehouseOrderpointModel, []interface{}{swo}) + ids, err := c.CreateStockWarehouseOrderpoints([]*StockWarehouseOrderpoint{swo}) if err != nil { return -1, err } diff --git a/stock_warn_insufficient_qty.go b/stock_warn_insufficient_qty.go index 2d152ba1..3b108a01 100644 --- a/stock_warn_insufficient_qty.go +++ b/stock_warn_insufficient_qty.go @@ -27,7 +27,7 @@ func (swiq *StockWarnInsufficientQty) Many2One() *Many2One { // CreateStockWarnInsufficientQty creates a new stock.warn.insufficient.qty model and returns its id. func (c *Client) CreateStockWarnInsufficientQty(swiq *StockWarnInsufficientQty) (int64, error) { - ids, err := c.Create(StockWarnInsufficientQtyModel, []interface{}{swiq}) + ids, err := c.CreateStockWarnInsufficientQtys([]*StockWarnInsufficientQty{swiq}) if err != nil { return -1, err } diff --git a/stock_warn_insufficient_qty_scrap.go b/stock_warn_insufficient_qty_scrap.go index 24e7c644..ceaa8518 100644 --- a/stock_warn_insufficient_qty_scrap.go +++ b/stock_warn_insufficient_qty_scrap.go @@ -32,7 +32,7 @@ func (swiqs *StockWarnInsufficientQtyScrap) Many2One() *Many2One { // CreateStockWarnInsufficientQtyScrap creates a new stock.warn.insufficient.qty.scrap model and returns its id. func (c *Client) CreateStockWarnInsufficientQtyScrap(swiqs *StockWarnInsufficientQtyScrap) (int64, error) { - ids, err := c.Create(StockWarnInsufficientQtyScrapModel, []interface{}{swiqs}) + ids, err := c.CreateStockWarnInsufficientQtyScraps([]*StockWarnInsufficientQtyScrap{swiqs}) if err != nil { return -1, err } diff --git a/tax_adjustments_wizard.go b/tax_adjustments_wizard.go index be65a06c..43d35b0b 100644 --- a/tax_adjustments_wizard.go +++ b/tax_adjustments_wizard.go @@ -37,7 +37,7 @@ func (taw *TaxAdjustmentsWizard) Many2One() *Many2One { // CreateTaxAdjustmentsWizard creates a new tax.adjustments.wizard model and returns its id. func (c *Client) CreateTaxAdjustmentsWizard(taw *TaxAdjustmentsWizard) (int64, error) { - ids, err := c.Create(TaxAdjustmentsWizardModel, []interface{}{taw}) + ids, err := c.CreateTaxAdjustmentsWizards([]*TaxAdjustmentsWizard{taw}) if err != nil { return -1, err } diff --git a/utm_campaign.go b/utm_campaign.go index bb7bafcb..e91f33f9 100644 --- a/utm_campaign.go +++ b/utm_campaign.go @@ -29,7 +29,7 @@ func (uc *UtmCampaign) Many2One() *Many2One { // CreateUtmCampaign creates a new utm.campaign model and returns its id. func (c *Client) CreateUtmCampaign(uc *UtmCampaign) (int64, error) { - ids, err := c.Create(UtmCampaignModel, []interface{}{uc}) + ids, err := c.CreateUtmCampaigns([]*UtmCampaign{uc}) if err != nil { return -1, err } diff --git a/utm_medium.go b/utm_medium.go index 76c2a0a3..221904e1 100644 --- a/utm_medium.go +++ b/utm_medium.go @@ -30,7 +30,7 @@ func (um *UtmMedium) Many2One() *Many2One { // CreateUtmMedium creates a new utm.medium model and returns its id. func (c *Client) CreateUtmMedium(um *UtmMedium) (int64, error) { - ids, err := c.Create(UtmMediumModel, []interface{}{um}) + ids, err := c.CreateUtmMediums([]*UtmMedium{um}) if err != nil { return -1, err } diff --git a/utm_mixin.go b/utm_mixin.go index f3eebf21..6dd0582d 100644 --- a/utm_mixin.go +++ b/utm_mixin.go @@ -27,7 +27,7 @@ func (um *UtmMixin) Many2One() *Many2One { // CreateUtmMixin creates a new utm.mixin model and returns its id. func (c *Client) CreateUtmMixin(um *UtmMixin) (int64, error) { - ids, err := c.Create(UtmMixinModel, []interface{}{um}) + ids, err := c.CreateUtmMixins([]*UtmMixin{um}) if err != nil { return -1, err } diff --git a/utm_source.go b/utm_source.go index ffc6fa8c..506f2ef7 100644 --- a/utm_source.go +++ b/utm_source.go @@ -29,7 +29,7 @@ func (us *UtmSource) Many2One() *Many2One { // CreateUtmSource creates a new utm.source model and returns its id. func (c *Client) CreateUtmSource(us *UtmSource) (int64, error) { - ids, err := c.Create(UtmSourceModel, []interface{}{us}) + ids, err := c.CreateUtmSources([]*UtmSource{us}) if err != nil { return -1, err } diff --git a/validate_account_move.go b/validate_account_move.go index 76fa188a..33772404 100644 --- a/validate_account_move.go +++ b/validate_account_move.go @@ -28,7 +28,7 @@ func (vam *ValidateAccountMove) Many2One() *Many2One { // CreateValidateAccountMove creates a new validate.account.move model and returns its id. func (c *Client) CreateValidateAccountMove(vam *ValidateAccountMove) (int64, error) { - ids, err := c.Create(ValidateAccountMoveModel, []interface{}{vam}) + ids, err := c.CreateValidateAccountMoves([]*ValidateAccountMove{vam}) if err != nil { return -1, err } diff --git a/web_editor_converter_test.go b/web_editor_converter_test.go index 06a176f1..905094e0 100644 --- a/web_editor_converter_test.go +++ b/web_editor_converter_test.go @@ -40,7 +40,7 @@ func (wct *WebEditorConverterTest) Many2One() *Many2One { // CreateWebEditorConverterTest creates a new web_editor.converter.test model and returns its id. func (c *Client) CreateWebEditorConverterTest(wct *WebEditorConverterTest) (int64, error) { - ids, err := c.Create(WebEditorConverterTestModel, []interface{}{wct}) + ids, err := c.CreateWebEditorConverterTests([]*WebEditorConverterTest{wct}) if err != nil { return -1, err } diff --git a/web_editor_converter_test_sub.go b/web_editor_converter_test_sub.go index de20270d..4f9ae494 100644 --- a/web_editor_converter_test_sub.go +++ b/web_editor_converter_test_sub.go @@ -29,7 +29,7 @@ func (wcts *WebEditorConverterTestSub) Many2One() *Many2One { // CreateWebEditorConverterTestSub creates a new web_editor.converter.test.sub model and returns its id. func (c *Client) CreateWebEditorConverterTestSub(wcts *WebEditorConverterTestSub) (int64, error) { - ids, err := c.Create(WebEditorConverterTestSubModel, []interface{}{wcts}) + ids, err := c.CreateWebEditorConverterTestSubs([]*WebEditorConverterTestSub{wcts}) if err != nil { return -1, err } diff --git a/web_planner.go b/web_planner.go index 78f2bf86..19fc1142 100644 --- a/web_planner.go +++ b/web_planner.go @@ -36,7 +36,7 @@ func (wp *WebPlanner) Many2One() *Many2One { // CreateWebPlanner creates a new web.planner model and returns its id. func (c *Client) CreateWebPlanner(wp *WebPlanner) (int64, error) { - ids, err := c.Create(WebPlannerModel, []interface{}{wp}) + ids, err := c.CreateWebPlanners([]*WebPlanner{wp}) if err != nil { return -1, err } diff --git a/web_tour_tour.go b/web_tour_tour.go index baeff26e..18484cec 100644 --- a/web_tour_tour.go +++ b/web_tour_tour.go @@ -26,7 +26,7 @@ func (wt *WebTourTour) Many2One() *Many2One { // CreateWebTourTour creates a new web_tour.tour model and returns its id. func (c *Client) CreateWebTourTour(wt *WebTourTour) (int64, error) { - ids, err := c.Create(WebTourTourModel, []interface{}{wt}) + ids, err := c.CreateWebTourTours([]*WebTourTour{wt}) if err != nil { return -1, err } diff --git a/wizard_ir_model_menu_create.go b/wizard_ir_model_menu_create.go index 1b0ac754..03b189cb 100644 --- a/wizard_ir_model_menu_create.go +++ b/wizard_ir_model_menu_create.go @@ -30,7 +30,7 @@ func (wimmc *WizardIrModelMenuCreate) Many2One() *Many2One { // CreateWizardIrModelMenuCreate creates a new wizard.ir.model.menu.create model and returns its id. func (c *Client) CreateWizardIrModelMenuCreate(wimmc *WizardIrModelMenuCreate) (int64, error) { - ids, err := c.Create(WizardIrModelMenuCreateModel, []interface{}{wimmc}) + ids, err := c.CreateWizardIrModelMenuCreates([]*WizardIrModelMenuCreate{wimmc}) if err != nil { return -1, err } diff --git a/wizard_multi_charts_accounts.go b/wizard_multi_charts_accounts.go index 25af6aca..860be714 100644 --- a/wizard_multi_charts_accounts.go +++ b/wizard_multi_charts_accounts.go @@ -43,7 +43,7 @@ func (wmca *WizardMultiChartsAccounts) Many2One() *Many2One { // CreateWizardMultiChartsAccounts creates a new wizard.multi.charts.accounts model and returns its id. func (c *Client) CreateWizardMultiChartsAccounts(wmca *WizardMultiChartsAccounts) (int64, error) { - ids, err := c.Create(WizardMultiChartsAccountsModel, []interface{}{wmca}) + ids, err := c.CreateWizardMultiChartsAccountss([]*WizardMultiChartsAccounts{wmca}) if err != nil { return -1, err }