Community mailing list archives

community@mail.odoo.com

Re: Community

by
Nhomar Hernandez
- 06/20/2015 04:14:39

2015-06-20 2:47 GMT-05:00 Kitti U. <kittiu@ecosoft.co.th>:
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#L97

There is the example (with the complexity proper of the localization).

I hope it helps you.


--
--------------------
Saludos Cordiales

CEO at Vauxoo Odoo's Gold Partner.
 
--
Nhomar Hernandez
http://about.me/nhomar