Skip to content

Commit 6527a2e

Browse files
ahuretjbguerraz
authored andcommitted
replaced selection type to interface{} instead of string (#10)
1 parent 461c5f3 commit 6527a2e

File tree

150 files changed

+4278
-4278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+4278
-4278
lines changed

models2types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'integer': 'int64',
1515
'boolean': 'bool',
1616
'text': 'string',
17-
'selection': 'string',
17+
'selection': 'interface{}',
1818
'float': 'float64',
1919
'binary': 'string',
2020
'html': 'string',

types/account_abstract_payment.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ import (
55
)
66

77
type AccountAbstractPayment struct {
8-
Amount float64 `xmlrpc:"amount"`
9-
Communication string `xmlrpc:"communication"`
10-
CompanyId Many2One `xmlrpc:"company_id"`
11-
CurrencyId Many2One `xmlrpc:"currency_id"`
12-
DisplayName string `xmlrpc:"display_name"`
13-
HidePaymentMethod bool `xmlrpc:"hide_payment_method"`
14-
Id int64 `xmlrpc:"id"`
15-
JournalId Many2One `xmlrpc:"journal_id"`
16-
LastUpdate time.Time `xmlrpc:"__last_update"`
17-
PartnerId Many2One `xmlrpc:"partner_id"`
18-
PartnerType string `xmlrpc:"partner_type"`
19-
PaymentDate time.Time `xmlrpc:"payment_date"`
20-
PaymentMethodCode string `xmlrpc:"payment_method_code"`
21-
PaymentMethodId Many2One `xmlrpc:"payment_method_id"`
22-
PaymentType string `xmlrpc:"payment_type"`
8+
Amount float64 `xmlrpc:"amount"`
9+
Communication string `xmlrpc:"communication"`
10+
CompanyId Many2One `xmlrpc:"company_id"`
11+
CurrencyId Many2One `xmlrpc:"currency_id"`
12+
DisplayName string `xmlrpc:"display_name"`
13+
HidePaymentMethod bool `xmlrpc:"hide_payment_method"`
14+
Id int64 `xmlrpc:"id"`
15+
JournalId Many2One `xmlrpc:"journal_id"`
16+
LastUpdate time.Time `xmlrpc:"__last_update"`
17+
PartnerId Many2One `xmlrpc:"partner_id"`
18+
PartnerType interface{} `xmlrpc:"partner_type"`
19+
PaymentDate time.Time `xmlrpc:"payment_date"`
20+
PaymentMethodCode string `xmlrpc:"payment_method_code"`
21+
PaymentMethodId Many2One `xmlrpc:"payment_method_id"`
22+
PaymentType interface{} `xmlrpc:"payment_type"`
2323
}
2424

2525
type AccountAbstractPaymentNil struct {

types/account_account.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ import (
55
)
66

77
type AccountAccount struct {
8-
Code string `xmlrpc:"code"`
9-
CompanyId Many2One `xmlrpc:"company_id"`
10-
CreateDate time.Time `xmlrpc:"create_date"`
11-
CreateUid Many2One `xmlrpc:"create_uid"`
12-
CurrencyId Many2One `xmlrpc:"currency_id"`
13-
Deprecated bool `xmlrpc:"deprecated"`
14-
DisplayName string `xmlrpc:"display_name"`
15-
GroupId Many2One `xmlrpc:"group_id"`
16-
Id int64 `xmlrpc:"id"`
17-
InternalType string `xmlrpc:"internal_type"`
18-
LastTimeEntriesChecked time.Time `xmlrpc:"last_time_entries_checked"`
19-
LastUpdate time.Time `xmlrpc:"__last_update"`
20-
Name string `xmlrpc:"name"`
21-
Note string `xmlrpc:"note"`
22-
OpeningCredit float64 `xmlrpc:"opening_credit"`
23-
OpeningDebit float64 `xmlrpc:"opening_debit"`
24-
Reconcile bool `xmlrpc:"reconcile"`
25-
TagIds []int64 `xmlrpc:"tag_ids"`
26-
TaxIds []int64 `xmlrpc:"tax_ids"`
27-
UserTypeId Many2One `xmlrpc:"user_type_id"`
28-
WriteDate time.Time `xmlrpc:"write_date"`
29-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
Code string `xmlrpc:"code"`
9+
CompanyId Many2One `xmlrpc:"company_id"`
10+
CreateDate time.Time `xmlrpc:"create_date"`
11+
CreateUid Many2One `xmlrpc:"create_uid"`
12+
CurrencyId Many2One `xmlrpc:"currency_id"`
13+
Deprecated bool `xmlrpc:"deprecated"`
14+
DisplayName string `xmlrpc:"display_name"`
15+
GroupId Many2One `xmlrpc:"group_id"`
16+
Id int64 `xmlrpc:"id"`
17+
InternalType interface{} `xmlrpc:"internal_type"`
18+
LastTimeEntriesChecked time.Time `xmlrpc:"last_time_entries_checked"`
19+
LastUpdate time.Time `xmlrpc:"__last_update"`
20+
Name string `xmlrpc:"name"`
21+
Note string `xmlrpc:"note"`
22+
OpeningCredit float64 `xmlrpc:"opening_credit"`
23+
OpeningDebit float64 `xmlrpc:"opening_debit"`
24+
Reconcile bool `xmlrpc:"reconcile"`
25+
TagIds []int64 `xmlrpc:"tag_ids"`
26+
TaxIds []int64 `xmlrpc:"tax_ids"`
27+
UserTypeId Many2One `xmlrpc:"user_type_id"`
28+
WriteDate time.Time `xmlrpc:"write_date"`
29+
WriteUid Many2One `xmlrpc:"write_uid"`
3030
}
3131

3232
type AccountAccountNil struct {

types/account_account_tag.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import (
55
)
66

77
type AccountAccountTag struct {
8-
Active bool `xmlrpc:"active"`
9-
Applicability string `xmlrpc:"applicability"`
10-
Color int64 `xmlrpc:"color"`
11-
CreateDate time.Time `xmlrpc:"create_date"`
12-
CreateUid Many2One `xmlrpc:"create_uid"`
13-
DisplayName string `xmlrpc:"display_name"`
14-
Id int64 `xmlrpc:"id"`
15-
LastUpdate time.Time `xmlrpc:"__last_update"`
16-
Name string `xmlrpc:"name"`
17-
WriteDate time.Time `xmlrpc:"write_date"`
18-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
Active bool `xmlrpc:"active"`
9+
Applicability interface{} `xmlrpc:"applicability"`
10+
Color int64 `xmlrpc:"color"`
11+
CreateDate time.Time `xmlrpc:"create_date"`
12+
CreateUid Many2One `xmlrpc:"create_uid"`
13+
DisplayName string `xmlrpc:"display_name"`
14+
Id int64 `xmlrpc:"id"`
15+
LastUpdate time.Time `xmlrpc:"__last_update"`
16+
Name string `xmlrpc:"name"`
17+
WriteDate time.Time `xmlrpc:"write_date"`
18+
WriteUid Many2One `xmlrpc:"write_uid"`
1919
}
2020

2121
type AccountAccountTagNil struct {

types/account_account_type.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import (
55
)
66

77
type AccountAccountType struct {
8-
CreateDate time.Time `xmlrpc:"create_date"`
9-
CreateUid Many2One `xmlrpc:"create_uid"`
10-
DisplayName string `xmlrpc:"display_name"`
11-
Id int64 `xmlrpc:"id"`
12-
IncludeInitialBalance bool `xmlrpc:"include_initial_balance"`
13-
LastUpdate time.Time `xmlrpc:"__last_update"`
14-
Name string `xmlrpc:"name"`
15-
Note string `xmlrpc:"note"`
16-
Type string `xmlrpc:"type"`
17-
WriteDate time.Time `xmlrpc:"write_date"`
18-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
CreateDate time.Time `xmlrpc:"create_date"`
9+
CreateUid Many2One `xmlrpc:"create_uid"`
10+
DisplayName string `xmlrpc:"display_name"`
11+
Id int64 `xmlrpc:"id"`
12+
IncludeInitialBalance bool `xmlrpc:"include_initial_balance"`
13+
LastUpdate time.Time `xmlrpc:"__last_update"`
14+
Name string `xmlrpc:"name"`
15+
Note string `xmlrpc:"note"`
16+
Type interface{} `xmlrpc:"type"`
17+
WriteDate time.Time `xmlrpc:"write_date"`
18+
WriteUid Many2One `xmlrpc:"write_uid"`
1919
}
2020

2121
type AccountAccountTypeNil struct {

types/account_aged_trial_balance.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import (
55
)
66

77
type AccountAgedTrialBalance struct {
8-
CompanyId Many2One `xmlrpc:"company_id"`
9-
CreateDate time.Time `xmlrpc:"create_date"`
10-
CreateUid Many2One `xmlrpc:"create_uid"`
11-
DateFrom time.Time `xmlrpc:"date_from"`
12-
DateTo time.Time `xmlrpc:"date_to"`
13-
DisplayName string `xmlrpc:"display_name"`
14-
Id int64 `xmlrpc:"id"`
15-
JournalIds []int64 `xmlrpc:"journal_ids"`
16-
LastUpdate time.Time `xmlrpc:"__last_update"`
17-
PeriodLength int64 `xmlrpc:"period_length"`
18-
ResultSelection string `xmlrpc:"result_selection"`
19-
TargetMove string `xmlrpc:"target_move"`
20-
WriteDate time.Time `xmlrpc:"write_date"`
21-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
CompanyId Many2One `xmlrpc:"company_id"`
9+
CreateDate time.Time `xmlrpc:"create_date"`
10+
CreateUid Many2One `xmlrpc:"create_uid"`
11+
DateFrom time.Time `xmlrpc:"date_from"`
12+
DateTo time.Time `xmlrpc:"date_to"`
13+
DisplayName string `xmlrpc:"display_name"`
14+
Id int64 `xmlrpc:"id"`
15+
JournalIds []int64 `xmlrpc:"journal_ids"`
16+
LastUpdate time.Time `xmlrpc:"__last_update"`
17+
PeriodLength int64 `xmlrpc:"period_length"`
18+
ResultSelection interface{} `xmlrpc:"result_selection"`
19+
TargetMove interface{} `xmlrpc:"target_move"`
20+
WriteDate time.Time `xmlrpc:"write_date"`
21+
WriteUid Many2One `xmlrpc:"write_uid"`
2222
}
2323

2424
type AccountAgedTrialBalanceNil struct {

types/account_analytic_line.go

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,41 @@ import (
55
)
66

77
type AccountAnalyticLine struct {
8-
AccountId Many2One `xmlrpc:"account_id"`
9-
Amount float64 `xmlrpc:"amount"`
10-
AmountCurrency float64 `xmlrpc:"amount_currency"`
11-
AnalyticAmountCurrency float64 `xmlrpc:"analytic_amount_currency"`
12-
Code string `xmlrpc:"code"`
13-
CompanyCurrencyId Many2One `xmlrpc:"company_currency_id"`
14-
CompanyId Many2One `xmlrpc:"company_id"`
15-
CreateDate time.Time `xmlrpc:"create_date"`
16-
CreateUid Many2One `xmlrpc:"create_uid"`
17-
CurrencyId Many2One `xmlrpc:"currency_id"`
18-
Date time.Time `xmlrpc:"date"`
19-
DepartmentId Many2One `xmlrpc:"department_id"`
20-
DisplayName string `xmlrpc:"display_name"`
21-
EmployeeId Many2One `xmlrpc:"employee_id"`
22-
GeneralAccountId Many2One `xmlrpc:"general_account_id"`
23-
HolidayId Many2One `xmlrpc:"holiday_id"`
24-
Id int64 `xmlrpc:"id"`
25-
LastUpdate time.Time `xmlrpc:"__last_update"`
26-
MoveId Many2One `xmlrpc:"move_id"`
27-
Name string `xmlrpc:"name"`
28-
PartnerId Many2One `xmlrpc:"partner_id"`
29-
ProductId Many2One `xmlrpc:"product_id"`
30-
ProductUomId Many2One `xmlrpc:"product_uom_id"`
31-
ProjectId Many2One `xmlrpc:"project_id"`
32-
Ref string `xmlrpc:"ref"`
33-
SoLine Many2One `xmlrpc:"so_line"`
34-
TagIds []int64 `xmlrpc:"tag_ids"`
35-
TaskId Many2One `xmlrpc:"task_id"`
36-
TimesheetInvoiceId Many2One `xmlrpc:"timesheet_invoice_id"`
37-
TimesheetInvoiceType string `xmlrpc:"timesheet_invoice_type"`
38-
TimesheetRevenue float64 `xmlrpc:"timesheet_revenue"`
39-
UnitAmount float64 `xmlrpc:"unit_amount"`
40-
UserId Many2One `xmlrpc:"user_id"`
41-
WriteDate time.Time `xmlrpc:"write_date"`
42-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
AccountId Many2One `xmlrpc:"account_id"`
9+
Amount float64 `xmlrpc:"amount"`
10+
AmountCurrency float64 `xmlrpc:"amount_currency"`
11+
AnalyticAmountCurrency float64 `xmlrpc:"analytic_amount_currency"`
12+
Code string `xmlrpc:"code"`
13+
CompanyCurrencyId Many2One `xmlrpc:"company_currency_id"`
14+
CompanyId Many2One `xmlrpc:"company_id"`
15+
CreateDate time.Time `xmlrpc:"create_date"`
16+
CreateUid Many2One `xmlrpc:"create_uid"`
17+
CurrencyId Many2One `xmlrpc:"currency_id"`
18+
Date time.Time `xmlrpc:"date"`
19+
DepartmentId Many2One `xmlrpc:"department_id"`
20+
DisplayName string `xmlrpc:"display_name"`
21+
EmployeeId Many2One `xmlrpc:"employee_id"`
22+
GeneralAccountId Many2One `xmlrpc:"general_account_id"`
23+
HolidayId Many2One `xmlrpc:"holiday_id"`
24+
Id int64 `xmlrpc:"id"`
25+
LastUpdate time.Time `xmlrpc:"__last_update"`
26+
MoveId Many2One `xmlrpc:"move_id"`
27+
Name string `xmlrpc:"name"`
28+
PartnerId Many2One `xmlrpc:"partner_id"`
29+
ProductId Many2One `xmlrpc:"product_id"`
30+
ProductUomId Many2One `xmlrpc:"product_uom_id"`
31+
ProjectId Many2One `xmlrpc:"project_id"`
32+
Ref string `xmlrpc:"ref"`
33+
SoLine Many2One `xmlrpc:"so_line"`
34+
TagIds []int64 `xmlrpc:"tag_ids"`
35+
TaskId Many2One `xmlrpc:"task_id"`
36+
TimesheetInvoiceId Many2One `xmlrpc:"timesheet_invoice_id"`
37+
TimesheetInvoiceType interface{} `xmlrpc:"timesheet_invoice_type"`
38+
TimesheetRevenue float64 `xmlrpc:"timesheet_revenue"`
39+
UnitAmount float64 `xmlrpc:"unit_amount"`
40+
UserId Many2One `xmlrpc:"user_id"`
41+
WriteDate time.Time `xmlrpc:"write_date"`
42+
WriteUid Many2One `xmlrpc:"write_uid"`
4343
}
4444

4545
type AccountAnalyticLineNil struct {

types/account_balance_report.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ import (
55
)
66

77
type AccountBalanceReport struct {
8-
CompanyId Many2One `xmlrpc:"company_id"`
9-
CreateDate time.Time `xmlrpc:"create_date"`
10-
CreateUid Many2One `xmlrpc:"create_uid"`
11-
DateFrom time.Time `xmlrpc:"date_from"`
12-
DateTo time.Time `xmlrpc:"date_to"`
13-
DisplayAccount string `xmlrpc:"display_account"`
14-
DisplayName string `xmlrpc:"display_name"`
15-
Id int64 `xmlrpc:"id"`
16-
JournalIds []int64 `xmlrpc:"journal_ids"`
17-
LastUpdate time.Time `xmlrpc:"__last_update"`
18-
TargetMove string `xmlrpc:"target_move"`
19-
WriteDate time.Time `xmlrpc:"write_date"`
20-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
CompanyId Many2One `xmlrpc:"company_id"`
9+
CreateDate time.Time `xmlrpc:"create_date"`
10+
CreateUid Many2One `xmlrpc:"create_uid"`
11+
DateFrom time.Time `xmlrpc:"date_from"`
12+
DateTo time.Time `xmlrpc:"date_to"`
13+
DisplayAccount interface{} `xmlrpc:"display_account"`
14+
DisplayName string `xmlrpc:"display_name"`
15+
Id int64 `xmlrpc:"id"`
16+
JournalIds []int64 `xmlrpc:"journal_ids"`
17+
LastUpdate time.Time `xmlrpc:"__last_update"`
18+
TargetMove interface{} `xmlrpc:"target_move"`
19+
WriteDate time.Time `xmlrpc:"write_date"`
20+
WriteUid Many2One `xmlrpc:"write_uid"`
2121
}
2222

2323
type AccountBalanceReportNil struct {

types/account_bank_accounts_wizard.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import (
55
)
66

77
type AccountBankAccountsWizard struct {
8-
AccName string `xmlrpc:"acc_name"`
9-
AccountType string `xmlrpc:"account_type"`
10-
BankAccountId Many2One `xmlrpc:"bank_account_id"`
11-
CreateDate time.Time `xmlrpc:"create_date"`
12-
CreateUid Many2One `xmlrpc:"create_uid"`
13-
CurrencyId Many2One `xmlrpc:"currency_id"`
14-
DisplayName string `xmlrpc:"display_name"`
15-
Id int64 `xmlrpc:"id"`
16-
LastUpdate time.Time `xmlrpc:"__last_update"`
17-
WriteDate time.Time `xmlrpc:"write_date"`
18-
WriteUid Many2One `xmlrpc:"write_uid"`
8+
AccName string `xmlrpc:"acc_name"`
9+
AccountType interface{} `xmlrpc:"account_type"`
10+
BankAccountId Many2One `xmlrpc:"bank_account_id"`
11+
CreateDate time.Time `xmlrpc:"create_date"`
12+
CreateUid Many2One `xmlrpc:"create_uid"`
13+
CurrencyId Many2One `xmlrpc:"currency_id"`
14+
DisplayName string `xmlrpc:"display_name"`
15+
Id int64 `xmlrpc:"id"`
16+
LastUpdate time.Time `xmlrpc:"__last_update"`
17+
WriteDate time.Time `xmlrpc:"write_date"`
18+
WriteUid Many2One `xmlrpc:"write_uid"`
1919
}
2020

2121
type AccountBankAccountsWizardNil struct {

0 commit comments

Comments
 (0)