Skip to content

Instantly share code, notes, and snippets.

@umiphos
Last active March 24, 2021 02:11
Show Gist options
  • Save umiphos/96e1df15be75c6146c071c4ad398aa06 to your computer and use it in GitHub Desktop.
Save umiphos/96e1df15be75c6146c071c4ad398aa06 to your computer and use it in GitHub Desktop.
Archivo replacer
https://gist.github.com/umiphos/54658fafa9d70d9f58363a5bb96fe208
./replacer.sh "account\.invoice" "account\.move"
./replacer.sh "AccountInvoice" "AccountMove"
Esto se queda tal cual
account.group_account_invoice
grep -rl --exclude-dir=.git 'api.multi' | xargs sed -n -i '/@api.multi$/!p'
Elimino document de manifest debido a este commit que cambia la estructura de ese modulo(lo eliminaron)
f420544aaac1f30119f563f88b3180fdfc95ac82
en account.invoice.line necesitamos hacer este cambio
%s/invoice_line_tax_ids/tax_ids/g
%s/AccountInvoiceRefund/AccountMoveReversal/g
%s/account.invoice.refund/account.move.reversal/g
%s/account.invoice.refund/account.move.reversal/g
%s/filter_refund2/refund_method2/g
%s/default_filter_refund2/default_refund_method2/
%s/account.move.refund.form/account.move.reversal/g
%s/account.view_account_invoice_refund/account.view_account_move_reversal/g
%s/filter_refund/refund_method/
./replacer.sh "datas_fname" "name"
./replacer.sh "journal_id.sequence_id.prefix" "journal_id.code"
./replacer.sh "date_invoice" "date"
./replacer.sh "invoice_line_tax_ids" "tax_ids"
account_invoice.py
%s/def invoice_validate/def post/
%s/def action_invoice_open/def action_post/g
%s/tag_ids/invoice_repartition_line_ids.tag_ids/g
data/ir_cron.py
:%s/model_account_invoice/model_account_move/g
https://git.vauxoo.com/vauxoo/odoo-peru/merge_requests/763/diffs?commit_id=0056a7b3ff99e1a8849c9b309bf1ee7ba17a87a8
data/2.1/UBL
%s/move_name/name/g
reports
%s/user_id/invoice_user_id/g
grep -rl --exclude-dir=.git 'Copyright 2019 Vauxoo' |xargs sed -i 's/# Copyright 2019 Vauxoo.*/# Part of Odoo. See LICENSE file for full copyright and licensing details./'g
grep -rl --exclude-dir=.git 'License LGPL-3.0' | xargs sed -n -i '/License LGPL-3.0 or later.*/!p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment