It is currently Wed May 23, 2012 2:56 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: how to add a field only in view
PostPosted: Thu Aug 04, 2011 8:55 pm 
Offline

Joined: Tue Jan 18, 2011 5:16 pm
Posts: 236
I want to add a boolean field only in view form of the invoice, not in the database, and if that is checked date of the dispatch printed in the report of the invoice to be today, if not to be date of creation of the invoice.

How can this be done?

Thanks,

_________________
OpenERP debugging with Eclipse on headless server


Top
 Profile  
 
 Post subject: Re: how to add a field only in view
PostPosted: Thu Aug 04, 2011 10:33 pm 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 797
Location: Auckland, NZ
It can't, because otherwise when you went back in to the invoice how would it know?

_________________
Graeme


Top
 Profile  
 
 Post subject: Re: how to add a field only in view
PostPosted: Fri Aug 05, 2011 5:16 pm 
Offline

Joined: Tue Jan 18, 2011 5:16 pm
Posts: 236
Hi,

I do not need it to be persistent, I just need it to be default false, and click to make it true just this once.

Is serves a simple purpose, if checked a date will be printed, if not checked other date will be printed.

Thanks!

_________________
OpenERP debugging with Eclipse on headless server


Top
 Profile  
 
 Post subject: Re: how to add a field only in view
PostPosted: Fri Aug 05, 2011 9:10 pm 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 797
Location: Auckland, NZ
So you can change the dates printed on invoices as you please, to a date different to its official date with no requirement to keep a record of it? I wish I had your laws.

The easiest way would be to front the print invoice with a wizard, which allowed you to select the boolean and pass it to the report. At least then it would work on multiple records. The other way is just to have 2 reports.

But this area is a little dangerous as OpenERP stores invoices by default and reloads them from attachment rather than reprint so 2 reports might be better, or you need to turn the storage off.

_________________
Graeme


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP