Odoo Help

2 Answers
Oanthata Kealeboga
3/14/19, 6:10 PM

So I uninstalled the invoicing module and reinstalled it and it seems to have solved the problem... 

Thank you 

Fatih Piristine
3/14/19, 2:11 PM

I have this bash function doing the job for qweb views. it should work for that one too or you can modify.

#!/usr/bin/env bash
fnc_reset_view() {
if [[ -z "${1}" || -z ${2} || -z ${3} ]]; then
echo "required: host user password view-id"
exit 1

host=${1}; shift;
login=${1}; shift;
password=${1}; shift;

headers="-H 'Content-Type: application/x-www-form-urlencoded' -H 'Cookie: local-dev=1; website_lang=en_US; session_id=add15ae1c084759fdabaf986b4562c206403bed4'"

echo "------> login"
eval "curl --data \"login=${login}&password=${password}\" ${host}/web/login ${headers} > /dev/null"

for t in ${templates}; do
echo ""
echo "------> ${t}"
eval "curl -d \"templates=${t}\" -X POST ${host}/website/reset_templates ${headers} > /dev/null"
shift;; fnc_reset_view ${@}

resetview.sh "" "user" "password" "template_id"

it doesn't do anything else than reloading from disk. just in case, backup your database!

Ask a Question
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now