Skip to content

Instantly share code, notes, and snippets.

View gustavovalverde's full-sized avatar

Gustavo Valverde gustavovalverde

View GitHub Profile
@gustavovalverde
gustavovalverde / gh-environment-manager.sh
Last active January 22, 2025 22:45
A bash script to handle GitHub environment variables, mainly to create new environments, and copy variables values from one environment to another
#!/bin/bash
# MIT License
# Copyright (c) 2024 Gustavo A. Valverde
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
quants = env['stock.quant'].search([])
move_line_ids = []
warning = ''
for quant in quants:
move_lines = env["stock.move.line"].search([
('product_id', '=', quant.product_id.id),
('location_id', '=', quant.location_id.id),
('lot_id', '=', quant.lot_id.id),
('package_id', '=', quant.package_id.id),
('owner_id', '=', quant.owner_id.id),
@gustavovalverde
gustavovalverde / Odoo MRP20170719 Entry 001.md
Created August 5, 2018 16:54 — forked from 10537/Odoo MRP20170719 Entry 001.md
Producto manufacturado que no necesita ser almacenado, con lista de materiales Kit en donde uno o mas de sus componentes es manufacturado.

Hola a todos,

Esta entrada nace de un problema de configuración que tuve hace 3 días, en el escenario necesitaba configurar para un cliente, un producto que manufactura bajo pedido pero que no almacena ya que lo hace tomando otros productos que el produce para armarlo bueno supongamos que tengo estos 4 productos:

  1. Bolsas de Chocolates "Regalo Sorpresa" (Manufacturado)
  2. Bolsas de Regalo (Comprado)
  3. Chocolate Negro 70% (Manufacturado)
  4. Chocolate Negro 65% (Manufacturado)
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record id="do_niif_11010301" model="account.account.template">
<field name="name">Depósitos a corto plazo en RD$</field>
<field name="code">11010301</field>
<field name="chart_template_id" ref="do_chart_template"/>
<field name="user_type_id" ref="account.data_account_type_liquidity"/>
<field name="reconcile" eval="False"/>
<field name="tag_ids" eval="[(6,0,[ref('account_tag_1'), ref('account_tag_11'), ref('account_tag_1101'), ref('account_tag_110103')])]"/>
@gustavovalverde
gustavovalverde / Vagrant_CheatSheet
Created March 24, 2016 18:50 — forked from jparrill/Vagrant_CheatSheet
Cheat Sheet for Vagrant
# Vagrant commands
vagrant reload #!
vagrant status
vagrant suspend
vagrant resume
vagrant halt
vagrant up
vagrant package
vagrant destroy
vagrant box add <nombre> <url>