View unanswered posts | View active topics
|
Page 1 of 1
|
[ 4 posts ] |
|
| Author |
Message |
|
mihai
|
Post subject: how to add a field only in view Posted: Thu Aug 04, 2011 8:55 pm |
|
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 |
|
 |
|
gdaddy
|
Post subject: Re: how to add a field only in view Posted: Thu Aug 04, 2011 10:33 pm |
|
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 |
|
 |
|
mihai
|
Post subject: Re: how to add a field only in view Posted: Fri Aug 05, 2011 5:16 pm |
|
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 |
|
 |
|
gdaddy
|
Post subject: Re: how to add a field only in view Posted: Fri Aug 05, 2011 9:10 pm |
|
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 |
|
 |
|
Page 1 of 1
|
[ 4 posts ] |
|
|
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
|