Re: [tryton] Supply period for production

2017-03-19 Thread Cédric Krier
On 2017-03-19 11:58, 'Artem Braga' via tryton wrote:
> Is it possible to get some use case where supply period at Production 
> Configuration could be used? I've read module documentation 
> here: 
> http://doc.tryton.org/4.2/modules/stock_supply_production/doc/index.html 
> but the meaning of Supply Period is not so clear for me though. 

You need to produce in advance because production takes times. And also
you may need to make production in cascade. So the system can not know
until which date in the future does it need to look to see what needs to
be produced. The period allow to define from now up to which date it
will look the stock levels.
So the period should depend on your production delays and the number of
cascading production you could have. But also you must not give a too
big number if you do not want to produce too much in advance.

-- 
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/20170319232308.GO43953%40tetsuo.


Re: [tryton] account_invoice reports

2017-03-19 Thread Cédric Krier
On 2017-03-19 18:28, Richard PALO wrote:
> I have some question concerning account_invoice reports:
> 
> 1. How do I get rid of the last page, which only has a header/footer?

As far as I have seen it is a bug in open/libre—office.

> 2. What would be the references to translate 'VAT:' to 'TVA:' in locale/fr.po
> for both the company and the client/supplier?

It should be the translation of the option of the Selection field type
of PartyIdentifier. But I just saw that we used a function for the
selection which makes it not translatable.
https://bugs.tryton.org/issue6374

> 3. I have a need to kick up price_decimal for calculations, but I don't 
> believe
> it should be the resulting display precision for unit prices, how can I set 
> this
> to a different value on the report?

You can change the format_number call for unit_price to use the digits
you want.

> 4. In the file store, final format should probably be pdf, is there a way to 
> get
> pdf stored, eventually a hybrid pdf?

It is the result of the report that is stored. So if the report is
configured to have pdf as output, it will be stored as-is.

-- 
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/20170319231903.GN43953%40tetsuo.


[tryton] Supply period for production

2017-03-19 Thread 'Artem Braga' via tryton
Hello. 

Is it possible to get some use case where supply period at Production 
Configuration could be used? I've read module documentation 
here: http://doc.tryton.org/4.2/modules/stock_supply_production/doc/index.html 
but the meaning of Supply Period is not so clear for me though. 

Thank you
Artem 

-- 
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/9d2a424d-8a7d-4ab1-9d01-b2f5f6374136%40googlegroups.com.


Re: [tryton] some questions about account_invoice / attachments

2017-03-19 Thread Cédric Krier
On 2017-03-19 18:11, Richard PALO wrote:
> I have the following questions concerning account_invoice (running on trunk, 
> for now)
> 
> 1. I'm trying the following in trytond.conf but I can't seem to find my 
> invoices on the filesystem:
> > [database]
> > path = /var/lib/trytond
> > ...
> > [account_invoice]
> > filestore = True
> 
> naturally the server has been restarted, and the process has rw access to 
> /var/lib/trytond
> 
> Is there somewhere else things need to be turned on?

No but invoice are stored only when posted.

> FWIW: Just to be sure, I tried an attachment, and it creates the file in the 
> filestore just fine.
> 
> 2. Once new invoices work, how to migrate the in-database cached invoices?

There is no migration available. Old invoices stay in the database.

> 3. I noticed that if I add an attachment, then delete it, the file remains in 
> the filestore.
> 
> Is this expected behaviour?

Yes.

> Is there a mechanism to clean the filestore when all references go to zero?
> (that is, perhaps via a tryton-admin sort of function, not brute force 
> filesystem deletions)

No.

> 4. Trying with the [attachment] section, I noticed setting store_prefix is 
> parallel to the default,
> which is the database name.
> 
> Is there a mechanism to get the prefix to work as a subdirectory of the 
> database name?

No.

-- 
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/20170319180028.GL43953%40tetsuo.


[tryton] account_invoice reports

2017-03-19 Thread Richard PALO

I have some question concerning account_invoice reports:

1. How do I get rid of the last page, which only has a header/footer?

2. What would be the references to translate 'VAT:' to 'TVA:' in locale/fr.po
for both the company and the client/supplier?

3. I have a need to kick up price_decimal for calculations, but I don't believe
it should be the resulting display precision for unit prices, how can I set this
to a different value on the report?

4. In the file store, final format should probably be pdf, is there a way to get
pdf stored, eventually a hybrid pdf?

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/5c38591e-7f66-5eab-ffe0-e8d514a994e4%40netbsd.org.


[tryton] some questions about account_invoice / attachments

2017-03-19 Thread Richard PALO

I have the following questions concerning account_invoice (running on trunk, 
for now)

1. I'm trying the following in trytond.conf but I can't seem to find my 
invoices on the filesystem:

[database]
path = /var/lib/trytond
...
[account_invoice]
filestore = True


naturally the server has been restarted, and the process has rw access to 
/var/lib/trytond

Is there somewhere else things need to be turned on?

FWIW: Just to be sure, I tried an attachment, and it creates the file in the 
filestore just fine.

2. Once new invoices work, how to migrate the in-database cached invoices?

3. I noticed that if I add an attachment, then delete it, the file remains in 
the filestore.

Is this expected behaviour?

Is there a mechanism to clean the filestore when all references go to zero?
(that is, perhaps via a tryton-admin sort of function, not brute force 
filesystem deletions)

4. Trying with the [attachment] section, I noticed setting store_prefix is 
parallel to the default,
which is the database name.

Is there a mechanism to get the prefix to work as a subdirectory of the 
database name?

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/77b818db-06d9-4334-3e67-5f37af979b79%40netbsd.org.