Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Cristian Salamea ovnicraft

🎯
Focusing
Block or report user

Report or block ovnicraft

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View run.sh
#!/bin/bash
ODOO_VERSION=12.0
ODOO_ROOT=~/development/odoo/$ODOO_VERSION/odoo
ODOO_BIN=odoo-bin
ADDONS_PATH=$ODOO_ROOT/addons
for d in $(ls -1d */); do
ADDONS_PATH=$ADDONS_PATH,$(pwd)/$d
done
View invoice.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2. in line 1.
id auth_inv_id/id date_invoice partner_id/id_hola partner_id/id internal_inv_number reference invoice_line_ids/name No FACTURA invoice_line_ids/quantity invoice_line_ids/price_unit invoice_line_ids/account_id/id account_id
000082016 __export__.account_authorisation_318 2019-01-09 1719032920 1719032920 000082016 000082016 Venta: 000082016 1001000082016 1 55,00 __export__.account_account_1781 4118001
View howto.md

how to configure queue_job in Odoo.sh

Edit /home/odoo/.config/odoo/odoo.conf

...
server_wide_modules=web,..,queue_job

[queue_job]
scheme=https
View gist:228a9a6b6d6a841abe10c3030c1ba0c1
### Keybase proof
I hereby claim:
* I am ovnicraft on github.
* I am csalamea (https://keybase.io/csalamea) on keybase.
* I have a public key ASC619CFuYCw2nTFmbsfqz4zpqmZrClVi3bndeZ_JtzSMAo
To claim this, I am signing this object:
View q.sql
select pp.default_code, pt.name, sloc.name, sum(product_qty) filter (where spt.code = 'incoming') as incoming, sum(product_qty) filter ( where spt.code = 'outgoing') as outgoing, spt.code
from stock_move sm
inner join stock_picking_type spt on sm.picking_type_id = spt.id
left join stock_location sloc on sm.location_id = sloc.id
left join stock_location slocd on sm.location_dest_id = slocd.id
inner join product_product pp on pp.id = sm.product_id
inner join product_template pt on pt.id = pp.product_tmpl_id
where sm.state = 'done'
View q.sql
select pt.name, sloc.name, sum(product_qty) filter (where spt.code = 'incoming') as incoming, sum(product_qty) filter ( where spt.code = 'outgoing') as outgoing, spt.code
from stock_move sm
inner join stock_picking_type spt on sm.picking_type_id = spt.id
left join stock_location sloc on sm.location_id = sloc.id
left join stock_location slocd on sm.location_dest_id = slocd.id
inner join product_product pp on pp.id = sm.product_id
inner join product_template pt on pt.id = pp.product_tmpl_id
where sm.state = 'done'
View q.sql
select sum(product_qty) filter (spt.code = 'incoming') as incoming, product_id, sloc.name, sm.location_id, picking_type_id, spt.code
from stock_move sm
inner join stock_picking_type spt on sm.picking_type_id = spt.id
left join stock_location sloc on sm.location_id = sloc.id
left join stock_location slocd on sm.location_dest_id = slocd.id
where sm.state = 'done'
and inventory_id is null
group by product_id, sloc.name, sm.location_id, picking_type_id, spt.code;
View c.yml
- run:
name: Set modules list to test
command: |
echo \'export MODULES=$(git show --name-only --format= | cut -d/ -f1 | sort | uniq | xargs | sed 's/ /,/g' | sed 's/.circleci/base/g')\' >> $BASH_ENV
source $BASH_ENV
- run:
name: Run tests
command: su - odoo -c "python ~/odoo-$ODOO_BRANCH/odoo-bin --addons-path=odoo-$ODOO_BRANCH/addons,$CIRCLE_WORKING_DIRECTORY --db_host=localhost -i $MODULES -r circleci -d odoo_$CIRCLE_BUILD_NUM --test-enable --stop-after-init"
View ci.yml
- run:
name: Set modules list to test
command: |
echo \'export MODULES=$(git show --name-only --format= | cut -d/ -f1 | sort | uniq | xargs | sed 's/ /,/g')\' >> $BASH_ENV
source $BASH_ENV
View gist:2dd2d53bb4c5bc787be1d6634847c43a
Author: Cristian Salamea <cs@prisehub.com>
Date: Sat Jun 1 16:34:19 2019 -0500
12.0 mig l10n ec partner (#72)
* partner module added partner and company stuff
* relacion extaida
M .circleci/config.yml
You can’t perform that action at this time.