Hi
Im literally begging for help, i get stuck and i cant see the light.
This is the situation:
In my country every electronic invoice needs to include a field called: "Control Code" this is for the local law.
The control code is obtainable by a series of calculations and algorithms using the invoice date, the invoice number and a few custom fields.
The problem is as follows.
Ive already have the SCRIPT in PYTHON that generates the "control code", but is a stand alone script, in which u manually insert the variables and you get the result.
I need advice in HOW to use this script inside an OpenERP module, the perfect result will be:
1.- Validate an Invoice (with all the required fields) 2.- The field "control code" (in the invoice form) is filled with the result of the "stand alone" Script. 3.- The invoice is validated and the Field Control Code is stored in the invoice.
Please this is having me crazy, can someone point me in the right direction??