This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Obtener los registros seleccionados a través de active_ids | |
| records = env['stock.valuation.layer'].browse(env.context.get('active_ids', [])) | |
| for svl in records: | |
| # Verificar si ya existe un asiento contable relacionado con la capa de valoración | |
| if svl.account_move_id: | |
| continue # Si ya tiene un asiento contable, no hacemos nada | |
| # Concatenar la referencia con el nombre del producto | |
| search_reference = svl.reference + ' - ' + svl.product_id.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def action_generate_accounting_entries(self): | |
| for picking in self: | |
| if picking.state == 'done': # Solo transferencias completadas | |
| for move in picking.move_ids: | |
| if move.product_id.valuation == 'real_time': # Solo productos con valoración automática | |
| # Buscar o crear stock valuation layer | |
| svl = self.env['stock.valuation.layer'].search([('stock_move_id', '=', move.id)], limit=1) | |
| if not svl: | |
| svl = self.env['stock.valuation.layer'].create({ | |
| 'stock_move_id': move.id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Copyright 2023 TensorAnalytics | |
| # Telegram @TraderCocoCR | |
| # AVISO IMPORTANTE!!! (WARNING!!!) | |
| # ASEGURESE DE TENER UN SERVIDOR / VPS CON AL MENOS > 2GB DE RAM > 2VCPU MINIMO DE MULTI PROCESOS | |
| # Ubuntu 18.04, 19, 20.04 LTS tested, Debian 10 | |
| # v1.0 | |
| # Last updated:28-5-2023 | |
| # CONST 1GB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fdfd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Codigo de ejemplo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for(cont=0;cont<13;cont++){ | |
| mi=(monto*tasa); | |
| capital+=mi; | |
| mit=0; | |
| mit=(mi/12); | |
| mit+=monto; | |
| cont++; | |
| printf("%f\n \n",mi); | |
| printf("%f\n \n",mit);} | |
| } |