odoo16

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const VSHNAccountingContactNameKey = "billing.appuio.io/vshn-accounting-contact-name"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CountryIDs         map[string]int
	LanguagePreference string
	PaymentTermID      int
}

type FailedRecordScrubber

type FailedRecordScrubber struct {
	// contains filtered or unexported fields
}

func NewFailedRecordScrubber

func NewFailedRecordScrubber(credentials OdooCredentials) *FailedRecordScrubber

func (*FailedRecordScrubber) CleanupIncompleteRecords

func (s *FailedRecordScrubber) CleanupIncompleteRecords(ctx context.Context, minAge time.Duration) error

CleanupIncompleteRecords looks for partner records in Odoo that still have the "inflight" flag set despite being older than `minAge`. Those records are then deleted. Such records might come into existence due to a partially failed creation request.

type Odoo16Client

type Odoo16Client interface {
	Update(string, []int64, interface{}) error
	FindResPartners(*odooclient.Criteria, *odooclient.Options) (*odooclient.ResPartners, error)
	CreateResPartner(*odooclient.ResPartner) (int64, error)
	UpdateResPartner(*odooclient.ResPartner) error
	DeleteResPartners([]int64) error
}

type Odoo16Storage

type Odoo16Storage struct {
	// contains filtered or unexported fields
}

func NewOdoo16Storage

func NewOdoo16Storage(credentials OdooCredentials, conf Config) *Odoo16Storage

func (*Odoo16Storage) Create

func (*Odoo16Storage) Get

func (*Odoo16Storage) List

func (*Odoo16Storage) Update

type OdooCredentials

type OdooCredentials = odooclient.ClientConfig

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL