From defb1ae913c866a19b1649f9026e8f5ebee5bfc3 Mon Sep 17 00:00:00 2001 From: wejdross Date: Thu, 4 May 2023 11:03:26 +0200 Subject: [PATCH 1/3] Minor bug fixes to improve working with repository --- docs/antora-preview.mk | 2 +- invoice_command.go | 2 +- odoo/client.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/antora-preview.mk b/docs/antora-preview.mk index 4ffed70..380d37f 100644 --- a/docs/antora-preview.mk +++ b/docs/antora-preview.mk @@ -1,6 +1,6 @@ antora_preview_version ?= 2.3.14 -antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora docker.io/vshn/antora-preview:$(antora_preview_version) --style=vshn +antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora ghcr.io/vshn/antora-preview:latest --style=vshn .PHONY: docs-preview docs-preview: ## Preview the documentation diff --git a/invoice_command.go b/invoice_command.go index 882b16f..707eb31 100644 --- a/invoice_command.go +++ b/invoice_command.go @@ -112,10 +112,10 @@ func (cmd *invoiceCommand) execute(context *cli.Context) error { invoice.WithInvoiceLineDefaults(invLineDefault), invoice.WithItemDescriptionRenderer(descTemplates), ) - log.Info("Created invoice", "id", id) if err != nil { return fmt.Errorf("error creating invoice %+v: %w", inv, err) } + log.Info("Created invoice", "id", id) } return nil diff --git a/odoo/client.go b/odoo/client.go index beaa489..57186de 100644 --- a/odoo/client.go +++ b/odoo/client.go @@ -109,6 +109,7 @@ func (c Client) requestSession(ctx context.Context, login string, password strin return nil, newCreatingRequestError(err) } req.Header.Set("Content-Type", "application/json") + req.Header.Set("Accept", "application/json") // Send request resp, err := c.http.Do(req) From 52bd79ff4c6a365bac9ef7f77f10e43953b68a4c Mon Sep 17 00:00:00 2001 From: wejdross Date: Fri, 5 May 2023 09:48:54 +0200 Subject: [PATCH 2/3] Update docs/antora-preview.mk Co-authored-by: Sebastian Widmer --- docs/antora-preview.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/antora-preview.mk b/docs/antora-preview.mk index 380d37f..40cb4ac 100644 --- a/docs/antora-preview.mk +++ b/docs/antora-preview.mk @@ -1,5 +1,5 @@ -antora_preview_version ?= 2.3.14 +antora_preview_version ?= 3.1.2.3 antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora ghcr.io/vshn/antora-preview:latest --style=vshn .PHONY: docs-preview From 220ef8f7dd12944ec5f8f2cf4b0c213462d88ace Mon Sep 17 00:00:00 2001 From: wejdross Date: Fri, 5 May 2023 09:49:00 +0200 Subject: [PATCH 3/3] Update docs/antora-preview.mk Co-authored-by: Sebastian Widmer --- docs/antora-preview.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/antora-preview.mk b/docs/antora-preview.mk index 40cb4ac..979d6d6 100644 --- a/docs/antora-preview.mk +++ b/docs/antora-preview.mk @@ -1,6 +1,6 @@ antora_preview_version ?= 3.1.2.3 -antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora ghcr.io/vshn/antora-preview:latest --style=vshn +antora_preview_cmd ?= $(DOCKER_CMD) run --rm --publish 2020:2020 --volume "${PWD}":/preview/antora ghcr.io/vshn/antora-preview:$(antora_preview_version) --style=vshn .PHONY: docs-preview docs-preview: ## Preview the documentation