Community mailing list archives
Ecosoft Co. LTD, Kitti Upariphutthiphong
Yes, that's right. Thank you for your suggested solution.
We was trying to mark printed without using wizard (use normal print menu), but that time I have to overwrite code to the core base addons (which is not a good way).
So your answer confirmed that, wizard may be the only way. :)
By the way, do you also use Preprinted from in Venezuela? And because of fixed positioning, it force us to use Jasper. What tools do you use for it? (I always wonder if other country have no problem about this, I used to post in forum, but no answer).
On Sat, Jun 20, 2015 at 6:59 PM, Nhomar Hernández <email@example.com> wrote:
2015-06-20 2:47 GMT-05:00 Kitti U. <firstname.lastname@example.org>:I.e., if a receipt is printed, I wanted to know or mark that document so that user do not print it again.We didit for our Venezuelan localization.I supose you need because in thailand you use preprinted invoices.Conceptually it is:- Overwrite the report with a wizard.- Add the printed field to the model.- The wizrd will return the report action (but with a write just before the return).You can find the example in the localization (which has a little more complex process because we control the control number preprinted in the paper).But "honestly" we tried to not re-print but it was so wired and we asked our users "mark" manually as prointed as part of the process (adding the Control Number manually to invoice).
https://github.com/Vauxoo/odoo-venezuela/blob/7.0/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py#L97There is the example (with the complexity proper of the localization).I hope it helps you.