File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
apiserver/billing/odoostorage/odoo/odoo16 Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ const VSHNAccountingContactNameKey = "billing.appuio.io/vshn-accounting-contact-
25
25
// Used to identify the accounting contact of a company.
26
26
const invoiceType = "invoice"
27
27
28
- // TODO(bastjan) test if still needed in odoo16
29
- const companyCategory = 2
30
-
31
28
// Used to generate the UUID for the .metadata.uid field.
32
29
var metaUIDNamespace = uuid .MustParse ("7550b1ae-7a2a-485e-a75d-6f931b2cd73f" )
33
30
@@ -442,15 +439,12 @@ func mapBillingEntityToPartners(be billingv1.BillingEntity, countryIDs map[strin
442
439
}
443
440
444
441
func setStaticAccountingContactFields (conf Config , a * odooclient.ResPartner ) {
445
- a .CategoryId = odooclient .NewRelation ()
446
442
a .Lang = odooclient .NewSelection (conf .LanguagePreference )
447
443
a .Type = odooclient .NewSelection (invoiceType )
448
444
a .PropertyPaymentTermId = odooclient .NewMany2One (int64 (conf .PaymentTermID ), "" )
449
445
}
450
446
451
447
func setStaticCompanyFields (conf Config , a * odooclient.ResPartner ) {
452
- a .CategoryId = odooclient .NewRelation ()
453
- a .CategoryId .AddRecord (int64 (companyCategory ))
454
448
a .Lang = odooclient .NewSelection (conf .LanguagePreference )
455
449
a .PropertyPaymentTermId = odooclient .NewMany2One (int64 (conf .PaymentTermID ), "" )
456
450
}
You can’t perform that action at this time.
0 commit comments