Community mailing list archives

community@mail.odoo.com

Re: Community

by
Ecosoft Co. LTD, Kitti Upariphutthiphong
- 06/20/2015 11:13:56
Hello Nhomar,

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).

Thank you,
Kitti

On Sat, Jun 20, 2015 at 6:59 PM, Nhomar Hernández <nhomar@gmail.com> wrote:

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
 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Mobile: +66-(0)8-1841-7480
Your ERP Partner => www.ecosoft.co.th