Conversation
2f3aa57 to
b42a2b3
Compare
|
I'm not sure to understand this work. What is the final goal? Can you provide a real use case? |
|
Hola @simahawk I'll tell you about this job. Objective: Real-world example: GENERATE FILE They need the following .txt document: CABALMOUT12345 20260225N Details: Line 1: Description: Line identifier. Expression: ‘CAB’ Description: Delivery note number Expression: sanitize_value(record.name) Description: Delivery note date Expression: record.date_done.strftime('%Y%m%d') if record.date_done else "" Description: Order type Expression: # N = Goods shipment notification (Normal, default) Line 2: Description: Line identifier Expression: ‘LIN’ Description: Delivery note date Expression: record.picking_id.date_done.strftime('%Y%m%d') if record.picking_id.date_done else "" Description: Line number Expression: num_line or record.id Description: Barcode of product X Expression: record.product_id.barcode or "" Notes:
Luego de realizar todas la configuraciones se puede realizar un test (Test generare file) el cual evalúa todas las expresiones sin generar el archivo final. Cuando s verifica que todo esta correcto se procede a ejecutar la generación del fichero mediante el botón Generate file, el cual se muestra cuando se habilita la configuración (Enabled) I'm still testing some scenarios with real clients to cover the most generic aspects, and in more specific cases the methods can be extended and adjusted according to the needs of each project. |
9ed1749 to
d943e52
Compare




@BinhexTeam
Add settings to generate .txt files