Hi Axel,
what i am trying to do is to generate an invoice from a created Service.
It also works for me when i create an invoice directly from the invoice Windows without going through the Health Service (i haven’t tried to post it).
Well, it is not really an error but the System is telling me that no account category is defined on the chosen product (in this case [AMOX-500-CA] Amoxicillin 500mg capsules) although an account category is correctly defined on the named
product as depicted in the screenshot. I am a Little bit confused
Thanks and regards,
Gesendet von
Mail für Windows 10
Send Health mailing list submissions to
address@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/health
or, via email, send a message with subject or body 'help' to
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Health digest..."
Today's Topics:
1. Re: Tryton-server (Axel Braun)
2. Re: Error Message: "There is no "account category" defined on
the product" (Axel Braun)
----------------------------------------------------------------------
Message: 1
Date: Fri, 15 May 2020 17:31:50 +0200
From: Axel Braun <address@hidden>
To: Yusif Suleiman <address@hidden>, address@hidden
Subject: Re: [Health] Tryton-server
Message-ID: <3688526.GQry6WjoCA@x1e>
Content-Type: text/plain; charset="us-ascii"
**** please ask via address@hidden *****
Am Freitag, 15. Mai 2020, 15:58:30 CEST schrieb Yusif Suleiman:
[...]
> OK...so what versions of GNU Health do you use? What is your base system,
> and are client and server o the same machine?
>
> >>>>>>> Am installing gnuhealth client version 3.4., and I am using Windows
> >>>>>>> base systems with virtual box 4GB RAM & 20GB HDD.
1) use the latest GNU Health and enjoy additional functionality, as described
in https://en.opensuse.org/GNUHealth_on_openSUSE#Quick_Start
(as you have already GH installed, after adding the respository you need to
run
zypper up --allow-vendor-change )
2) If you install the client in the same virtualbox, can this client connect
to the server?
3) In order to allow the server inside a virtual machine to receive connecion
requests from a client outside of that machine yo need to:
3.1) open port 8000 in the firewall (or switch it off *for testing purposes
only*). Use the firewall module in YaST.
3.2) Set the network mode of the virtual box to 'Bridged' (normally VBox uses
NAT as network mode, so the server receives a local address and is not visible
from the outside. In bridged mode, it gets an address from the DHCP-server in
the network)
> >>>>>>> I have two
> >>>>>>> computers to which I want to connect as client and server for
> >>>>>>> testing purpose (before implementing in real environment).>
Please try the above and report back!
Best,
Axel
------------------------------
Message: 2
Date: Fri, 15 May 2020 17:49:32 +0200
From: Axel Braun <address@hidden>
To: "address@hidden" <address@hidden>
Subject: Re: [Health] Error Message: "There is no "account category"
defined on the product"
Message-ID: <3113602.GqBkqhp7OW@x1e>
Content-Type: text/plain; charset="us-ascii"
Hello Odile
Am Freitag, 15. Mai 2020, 16:33:44 CEST schrieb Odile C. Kamno:
> when i try to generate an invoice from a service , i get the error message:
> "There is no "account category" defined on the product"Amoxiciline..". When
> i go to this product i can see that the account category is maintained.
>
> See attached screenshots.
Where exactly do you see the error?
Just tried the same (create an invoice with 1 line item Amoxy 500 capsules),
validate, and then post it:
ERROR:tryton.common.common:Traceback (most recent call last):
File "/trytond/wsgi.py", line 73, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
request, database_name, *request.rpc_params)
File "/wrapt/wrappers.py", line 564, in __call__
args, kwargs)
File "/trytond/wsgi.py", line 44, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 122, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 176, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/modules/purchase/invoice.py", line 21, in wrapper
func(cls, invoices)
File "/trytond/modules/purchase/invoice.py", line 98, in post
super(Invoice, cls).post(invoices)
File "/trytond/model/modelview.py", line 672, in wrapper
return func(cls, records, *args, **kwargs)
File "/trytond/model/workflow.py", line 36, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/trytond/modules/account_invoice/invoice.py", line 1383, in post
invoice.print_invoice()
File "/trytond/modules/account_invoice/invoice.py", line 1292, in
print_invoice
InvoiceReport.execute([self.id], {})
File "/trytond/modules/account_invoice/invoice.py", line 2437, in execute
result = super(InvoiceReport, cls).execute(ids, data)
File "/trytond/report/report.py", line 182, in execute
oext, content = cls._execute(records, data, action_report)
File "/trytond/modules/account_invoice/invoice.py", line 2418, in _execute
result = super(InvoiceReport, cls)._execute(records, data, action)
File "/trytond/report/report.py", line 190, in _execute
return cls.convert(action, cls.render(action, report_context))
File "/trytond/report/report.py", line 288, in render
data = "">
File "/relatorio/templates/base.py", line 35, in render
self.events, method=method, encoding=encoding, out=out)
File "/relatorio/templates/opendocument.py", line 1161, in __call__
self.xml_serializer(writer(stream)), encoding=encoding, out=writer)
File "/genshi/output.py", line 58, in encode
for chunk in iterator:
File "/genshi/output.py", line 241, in __call__
for kind, data, pos in stream:
File "/genshi/output.py", line 671, in __call__
for kind, data, pos in stream:
File "/genshi/output.py", line 776, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/genshi/output.py", line 596, in __call__
for ev in stream:
File "/relatorio/templates/opendocument.py", line 1053, in __call__
for kind, data, pos in stream:
File "/genshi/core.py", line 292, in _ensure
for event in stream:
File "/genshi/filters/i18n.py", line 691, in __call__
for kind, data, pos in stream:
File "/genshi/template/base.py", line 638, in _include
for event in stream:
File "/genshi/template/markup.py", line 327, in _match
for event in stream:
File "/genshi/template/base.py", line 598, in _flatten
result = _eval_expr(data, ctxt, vars)
File "/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/genshi/template/eval.py", line 178, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "<string>", line 375, in <_expression_
'__relatorio_escape_invalid_chars(format_date(invoice.invoice_date or today,
invoice.party.lang))'>
File "/trytond/report/report.py", line 338, in format_date
lang = Lang.get()
File "/trytond/ir/lang.py", line 313, in get
('code', '=', code),
ValueError: not enough values to unpack (expected 1, got 0)
Fault: not enough values to unpack (expected 1, got 0)
(This window should really be scalable!)
Best,
Axel
------------------------------
Subject: Digest Footer
_______________________________________________
Health mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/health
------------------------------
End of Health Digest, Vol 106, Issue 10
***************************************