This is a repository from Trustcode.
trust-code / trustcode-addons Goto Github PK
View Code? Open in Web Editor NEWTrustcode Addons
Trustcode Addons
This is a repository from Trustcode.
Olá pessoal, segue o caso de erro em "Contratos de Clientes" ao clicar em "Criar Faturas".
Nosso colega @fabioluna comentou que o "field type" no "account_move" mudou de nome para "move_type" ou algo assim. Fiz a troca nas linhas 122, 262 e 293 no arquivo "/contract/models/contract.py" e o erro evoluiu para: "AttributeError: 'account.move.line' object has no attribute 'invoice_id'".
Módulo: "trustcode-addons/contract/"
Versão: Odoo 14 Community
Erro original:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo14/opt/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo14/opt/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/odoo14/opt/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo14/opt/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo14/opt/odoo/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo14/opt/odoo/odoo/http.py", line 912, in call
return self.method(*args, **kw)
File "/home/odoo14/opt/odoo/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/home/odoo14/opt/odoo/addons/web/controllers/main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo14/opt/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo14/opt/odoo/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo14/opt/odoo/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo14/opt/odoo/custom-addons/trustcode-addons/contract/models/contract.py", line 421, in recurring_create_invoice
return self._recurring_create_invoice()
File "/home/odoo14/opt/odoo/custom-addons/trustcode-addons/contract/models/contract.py", line 425, in _recurring_create_invoice
return self._finalize_and_create_invoices(invoices_values)
File "/home/odoo14/opt/odoo/custom-addons/trustcode-addons/contract/models/contract.py", line 353, in _finalize_and_create_invoices
self._finalize_invoice_values(invoice_values)
File "/home/odoo14/opt/odoo/custom-addons/trustcode-addons/contract/models/contract.py", line 320, in _finalize_invoice_values
new_invoice = self.env['account.move'].new(invoice_values)
File "/home/odoo14/opt/odoo/odoo/models.py", line 5506, in new
record._update_cache(values, validate=False)
File "/home/odoo14/opt/odoo/odoo/models.py", line 5148, in _update_cache
raise ValueError("Invalid field %r on model %r" % (e.args[0], self._name))
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo14/opt/odoo/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo14/opt/odoo/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'type' on model 'account.move'
Obrigado!!
Muito boa tarde, peço desculpa pelo incómodo,
Após a instalação do vosso módulo delivery_correios no odoo e das suas correspondentes dependências (pysigep), consegui com sucesso configurar um delivery method, visto que ao pressionar no botão "set price" numa cotação ele me calcula o valor correcto de frete, de acordo com o calculador de preços do correios.
No entanto tenho ainda alguns erros.
Mesmo com os dados corretos recebo na pagina de configuraçao do delivery method o seguinte Odoo Warning: "A autenticacao de xxxxxxx falhou!"
E na página da cotação o Odoo Warning: "A altura nao pode ser inferior a 2 cm.", apesar de na configuração do produto a altura estar superior ao pedido, comprovado novamente pelo processamento correto do valor de frete ao longo de vários testes com várias dimensões.
Aprecio qualquer ajuda que me consigam fornecer! Obrigado!
Estou com um erro no módulo "Cash Flow Report", feito git diretamente do repositório da Trustcode com branch 10.0. O mesmo dá esse erro ao pôr uma data final (dia atual como última data), e ao clicar em imprimir da o seguinte erro, e na tela do sistema, quando climamos em gerar também mostra a seguinte mensagem:
"Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application".
Já desinstalei, instalei novamente, dei novo git, e também instalei e atualizei o módulo mas persiste, alguma dica de solução?
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo/addons/report/controllers/main.py", line 96, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/opt/odoo/odoo/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/report/controllers/main.py", line 45, in report_routes
pdf = report_obj.with_context(context).get_pdf(docids, reportname, data=data)
File "/opt/odoo/odoo/addons/report/models/report.py", line 178, in get_pdf
html = self.with_context(context).get_html(docids, report_name, data=data)
File "/opt/odoo/odoo/addons/report/models/report.py", line 144, in get_html
return self.render(report.report_name, docargs)
File "/opt/odoo/odoo/addons/report/models/report.py", line 120, in render
return view_obj.render_template(template, values)
File "/opt/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1039, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/opt/odoo/odoo/addons/web_editor/models/ir_ui_view.py", line 26, in render
return super(IrUiView, self).render(values=values, engine=engine)
File "/opt/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1059, in render
return self.env[engine].render(self.id, qcontext)
File "/opt/odoo/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 53, in render
return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "/opt/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 248, in render
self.compile(template, options)(self, body.append, values or {})
File "/opt/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 317, in _compiled_fn
raise e
QWebException: No module named plotly.graph_objs
Traceback (most recent call last):
File "/opt/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 315, in _compiled_fn
return compiled(self, append, values, options, log)
File "", line 1, in template_account_cash_flow_account_cash_flow_template_html_report_1000
File "", line 3, in body_call_content_999
File "", line 4, in body_call_content_998
File "/opt/odoo/odoo/trustcode-addons/account_cash_flow/models/cash_flow_report.py", line 65, in draw_chart
import plotly.graph_objs as go
ImportError: No module named plotly.graph_objs
Error to render compiling AST
ImportError: No module named plotly.graph_objs
Template: account_cash_flow.account_cash_flow_template_html_report
Path: /templates/t/t/t/div[1]/t
Node:
Olá meus caros,
Instalei o sistema em um server online e gostaria de tirar essa dúvida. Mais uma dica de como posso instalar o br_coa sem o mesmo ficar "A ser instalado" no sistema. Podem me dizer se já tiveram que lidar com esse probleminha e como resolveram? Grato.
Segue log do Odoo 10:
Traceback (most recent call last):
File "/root/odoo/odoo/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/root/odoo/odoo/http.py", line 675, in dispatch
result = self._call_function(**self.params)
File "/root/odoo/odoo/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/root/odoo/odoo/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/root/odoo/odoo/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/root/odoo/odoo/http.py", line 933, in call
return self.method(*args, **kw)
File "/root/odoo/odoo/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/root/odoo/addons/web/controllers/main.py", line 882, in call_button
action = self._call_kw(model, method, args, {})
File "/root/odoo/addons/web/controllers/main.py", line 870, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/root/odoo/odoo/api.py", line 681, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/root/odoo/odoo/api.py", line 672, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/root/odoo/odoo/addons/base/module/module.py", line 410, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/root/odoo/odoo/addons/base/module/module.py", line 484, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/root/odoo/odoo/modules/registry.py", line 78, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/root/odoo/odoo/modules/loading.py", line 339, in load_modules
loaded_modules, update_module)
File "/root/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/root/odoo/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/root/odoo/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/root/odoo/odoo/tools/convert.py", line 848, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/root/odoo/odoo/tools/convert.py", line 918, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/root/odoo/odoo/tools/convert.py", line 802, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/root/odoo/odoo/tools/convert.py", line 710, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/root/odoo/odoo/addons/base/ir/ir_model.py", line 1192, in _update
record = record.create(values)
File "/root/odoo/odoo/models.py", line 3811, in create
record = self.browse(self._create(old_vals))
File "/root/odoo/odoo/models.py", line 3901, in _create
cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))
File "/root/odoo/odoo/sql_db.py", line 141, in wrapper
return f(self, *args, **kwargs)
File "/root/odoo/odoo/sql_db.py", line 218, in execute
res = self._obj.execute(query, params)
ParseError: "duplicate key value violates unique constraint "account_tax_template_name_company_uniq"
DETAIL: Key (name, company_id, type_tax_use)=(IPI Sa\xedda 3%, 1, sale) already exists.
" while parsing /root/odoo/odoo-brasil/br_coa/data/account_tax_template_data.xml:28, near
IPI Saída 3%
IPI Saída 3%
ipi
3.00
sale
Ao tentar gerar o fluxo de caixa o Odoo retorna o seguinte erro:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 646, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 307, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 339, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 332, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 927, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 512, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 924, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/addons/web/controllers/main.py", line 912, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/extra-addons/odoo-brasil/account_cash_flow/wizard/cash_flow.py", line 29, in button_calculate
return self.env['report'].get_action(
File "/opt/odoo/odoo/api.py", line 760, in getitem
return self.registry[model_name]._browse((), self)
File "/opt/odoo/odoo/modules/registry.py", line 177, in getitem
return self.models[model_name]
KeyError: 'report'
Boa tarde.
Estou testando o módulo update_invoice_line_taxes e percebi que o calculo não está levando em consideração a quantidade dos produtos. Ou seja, pelo que entendi do código os tributos estão sendo calculados com base no preço unitário e não no total.
line._set_extimated_taxes(line.price_unit)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.