[tryton-dev] Un-assigned Tryton issue tracker requests

2017-10-28 Thread Tryton issue tracker
Created ID   Activity   Title
===
 bug
1 week ago  6857 6 days ago Icons in menu are not shown on gtk3   
 bug
2 weeks ago 6842 2 weeks ago Getting error while paying invoice in  ...
 bug
2 weeks ago 6838 2 weeks ago Mysql backend does not have an INTERVA ...
 bug
3 months ago 6672 2 weeks ago Unable to update product cost_price   
 bug
6 months ago 6470 6 months ago Old migration to rename packing to shi ...
 bug
13 months ago 5905 13 months ago Display bug in tryton client with ubun ...
 bug
25 months ago 5030 15 months ago Error connecting with Tryton client fr ...
 bug
32 months ago 4582 32 months ago Display datetime before epoch on windows  
 bug
35 months ago 4359 35 months ago Windows client error when image size i ...

To view or respond to any of the requests listed above, visit the URL

   https://bugs.tryton.org/

and click on "Show Unassigned". Do NOT respond to this message.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20171028220003.00975118014F%40moretus.b2ck.com.


Re: [tryton] uWSGI: can't find trytond.application.app

2017-10-28 Thread Cédric Krier
On 2017-10-28 07:40, PMan wrote:
> ModuleNotFoundError: No module named 'trytond.application.app'; 
> 'trytond.application' is not a package

The is a configuration problem, it should not try to import
trytond.application.app but it should run app in trytond.application.
I do not know uwsgi configuration syntax but usually it is:

trytond.application:app

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20171028151608.GE6037%40kei.


Re: [tryton] uWSGI: can't find trytond.application.app

2017-10-28 Thread PMan
@Sergi:
I installed trytond by:
- downloading and expanding the source inside the virtual environment
- activating the virtual environment, and then
- python setup.py install 

After reading your post, I stored my config files, deleted the virtual 
environment, and started over.
1 Created the virtual environment /opt/Tryton
2 activated it (when activated, python -V returns python 3.6.2)
3 installed trytond with pip ./bin/pip3 install trytond
4 restored the config files to /opt/Trytond/etc

I can run tryton without uwsgi:
"./bin/trytond -c /opt/Tryton/etc/trytond.conf " from the command line, there 
are no errors. I did not try to access the instance, but it did start.

I still cannot run tryton with uwsgi:
I install uwsgi with pip. uwsgi is in the /opt/python36/bin folder, it was not 
installed in the virtual environment.

"/opt/python36/bin/uwsgi --ini /opt/Tryton/etc/tryton.ini" from the command 
line produces the exact same errors I posted before.

In /opt/Tryton/lib/python3.6/site-packages/trytond there is a file 
application.py

In /opt/Tryton/lib/python3.6/site-packages/trytond/modules there is a file 
__init__.py, and a directory, pycache.

Here is the output, in case I missed something:
/opt/python36/bin/uwsgi --ini /opt/Tryton/etc/tryton.ini
[uWSGI] getting INI configuration from /opt/Tryton/etc/tryton.ini
*** Starting uWSGI 2.0.15 (64bit) on [Sat Oct 28 10:38:11 2017] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 05 October 2017 
22:04:37
os: Linux-3.10.0-714.10.2.lve1.4.63.el7.x86_64 #1 SMP Sun Aug 20 17:46:23 EDT 
2017
nodename: host.mysite.com
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /opt/Tryton
detected binary path: /opt/python36/bin/uwsgi
setgid() to group
setuid() to user
your processes number limit is 14335
your memory page size is 4096 bytes
detected max file descriptor number: 4096
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:8000 fd 3
Python version: 3.6.2 (default, Aug  5 2017, 01:12:58)  [GCC 4.8.5 20150623 
(Red Hat 4.8.5-11)]
PEP 405 virtualenv detected: /opt/Tryton
Set PythonHome to /opt/Tryton
Python main interpreter initialized at 0xb51930
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 166144 bytes (162 KB) for 2 cores
*** Operational MODE: threaded ***
/opt/Tryton/lib/python3.6/site-packages/trytond/modules/__init__.py:143: 
DeprecationWarning: This method will be removed in future versions.  Use 
'parser.read_file()' instead.
  module_config.readfp(fp)
ModuleNotFoundError: No module named 'trytond.application.app'; 
'trytond.application' is not a package
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 13598)
spawned uWSGI worker 1 (pid: 13600, cores: 2)
^CSIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
goodbye to uWSGI.
(Tryton) root@host [/opt/Tryton]#

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/71418d54-9939-486d-bb73-e6b17b07d995%40googlegroups.com.


Re: [tryton] Discount per family and per amount of products in a month

2017-10-28 Thread Richard PALO

Le 28/10/2017 à 11:27, Cédric Krier a écrit :

On 2017-10-28 06:48, Richard PALO wrote:

Le 28/10/2017 à 01:12, Cédric Krier a écrit :

On 2017-10-27 22:27, Richard PALO wrote:

So do not fill it. You do not need to have the supplier price, it is
there for information.



?? I thought that stock receptions used the order prices (not the invoiced 
price) for stock
valuation on the stock move. Has this changed, or do I misunderstand the 
workflow?
That is, it is frequent here to have invoices based upon [one or more] 
deliveries.


You should know the price of the product when you validated the
quotation and at worst when you receive the goods so you can update the
price on the move.



Indeed, that is my point.

With respect to promotions, sale_promotion is only for sales and not purchases.
It seems that it should be neutral, but I imagine you suggest in this case that
a purchase_promotion module be devised


If you want but I do not think it is a generic feature because as I said
most of companies will never encode all the rules of suppliers supposed
that they know it. At best they will have a spreadsheet with the price
list (and some will be per quantity) which can be uploaded as product
supplier price.
But the common behaviour is to just adapt the price from the received
quotation. This workflow will be improved by the
new purchase_request_quotation: https://bugs.tryton.org/issue6175
And even I'm wondering if the unit_price should not be editable on more
state than draft and not required before confirmed.



It is a good idea to analyse the use cases.

I personally believe there are many who value 'verification' and
'update when needing correction' as opposed to manual data entry
with greater risks.

The latter also greatly complicates control of *unusual* price variations which
necessitate rectification by the supplier.

Nobody is exempt of errors, but the general rule is to reduce their heads 
popping up
and certainly catch them when they do... not to mention avoiding any increase 
in the
PO => Reception => Invoice entry/validation time.

That is, there are companies that may already be on the critical path time-wise 
to
get their monthly VAT reports ready... They don't necessarily have the budget 
to double
their staffing in order to do so.

As for quotations, those are prior to selecting the products from a specific 
supplier
for confirmation ... there is no guarantee that a supplier will offer special 
pricing
on all items (which is frequently only on certain non "consumable" articles).
(RFQs may [in some cases] be machine generated and comprehensive)
RFQ's never send the habitual price with the request to the supplier... it 
remains
extremely useful to have 'a' price present in the draft order preparation to 
evaluate
the price quotation received (sometimes the special price negotiation is just 
beginning!).

cheers,

--

Richard PALO

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/1a8a2309-5492-05ed-50fa-a13de1b05ad6%40free.fr.


Re: [tryton] Discount per family and per amount of products in a month

2017-10-28 Thread Cédric Krier
On 2017-10-28 06:48, Richard PALO wrote:
> Le 28/10/2017 à 01:12, Cédric Krier a écrit :
> > On 2017-10-27 22:27, Richard PALO wrote:
> >>> So do not fill it. You do not need to have the supplier price, it is
> >>> there for information.
> >>>
> >>
> >> ?? I thought that stock receptions used the order prices (not the invoiced 
> >> price) for stock
> >> valuation on the stock move. Has this changed, or do I misunderstand the 
> >> workflow?
> >> That is, it is frequent here to have invoices based upon [one or more] 
> >> deliveries.
> > 
> > You should know the price of the product when you validated the
> > quotation and at worst when you receive the goods so you can update the
> > price on the move.
> > 
> 
> Indeed, that is my point.
> 
> With respect to promotions, sale_promotion is only for sales and not 
> purchases.
> It seems that it should be neutral, but I imagine you suggest in this case 
> that
> a purchase_promotion module be devised

If you want but I do not think it is a generic feature because as I said
most of companies will never encode all the rules of suppliers supposed
that they know it. At best they will have a spreadsheet with the price
list (and some will be per quantity) which can be uploaded as product
supplier price.
But the common behaviour is to just adapt the price from the received
quotation. This workflow will be improved by the
new purchase_request_quotation: https://bugs.tryton.org/issue6175
And even I'm wondering if the unit_price should not be editable on more
state than draft and not required before confirmed.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20171028092730.GC6037%40kei.