Hi,

On 2018-08-23 15:11, Richmond Fiko wrote:
> I have a strange behavior in tryton 4.2 invoice module.
> I create some custom invoice report template. All is OK when I try to print 
> invoice in
> different state until it come to posted state. At this state, the base 
> invoice model is printed
> for any template I try. Is it normal? How can I print my custom template when 
> invoice is in posted state?

It really depend on how you customized the report.
When you post an invoice, the system store a copy the report result. And
it use this copy for any further print.
If you do the override using a module, you must follow
https://tryton-readthedocs.readthedocs.io/projects/server/en/latest/topics/reports/index.html#replacing-existing-tryton-reports
This is to ensure that only one ir.action.report is linked to account.invoice.
Or you can just upload in the database another template on the default
report action.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
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/20180823224505.wajqngfw25e4j3nt%40kei.

Reply via email to