This file contains 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
invoices = {} | |
lines = [] | |
move_lines = [] | |
invoices['invoice'] = record.number | |
invoices['partner'] = record.partner_id.name | |
invoices['company'] = record.company_id.name | |
move = record.move_id | |
for line in move.line_ids: |
This file contains 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
# install openconnect in localhost | |
sudo apt-get update | |
sudo apt-get install openconnect | |
# connect to VPN with openconnect | |
sudo openconnect --protocol=anyconnect -u {USER} --no-system-trust {HOST} | |
# Installing client for Docker | |
docker run --rm -it mcr.microsoft.com/mssql-tools /opt/mssql-tools/bin/sqlcmd -S {HOST} -U {USER} -P {PASSWORD} -d {DB} | |
SELECT @@version |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<odoo> | |
<record model="res.groups" id="group_archive"> | |
<field name="name">Archive Product & Partner</field> | |
</record> | |
</odoo> |
This file contains 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
" Thanks to https://realpython.com/vim-and-python-a-match-made-in-heaven | |
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" touch ~/.vimrc | |
set nocompatible " required | |
filetype off " required | |
set splitbelow | |
set splitright | |
"split navigations | |
nnoremap <C-J> <C-W><C-J> |
This file contains 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
# Model: Journal Item | |
company_obj = env['res.company'] | |
aml_obj = env['account.move.line'] | |
move_obj = env['account.move'] | |
ait_obj = env['account.invoice.tax'] | |
invoice_obj = env['account.invoice'] | |
tax_obj = env['account.tax'] | |
journal_ids = [] | |
for company in company_obj.search([]): | |
if company.tax_cash_basis_journal_id: |