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
@api.multi | |
def send_document(self, attachments=None, tmpl=False): | |
self.ensure_one() | |
ctxt = dict(self._context) | |
# clean context send email crash with context | |
tmpl = self.env.ref("xmild_template_mail") | |
tmpl.with_context(ctxt).send_mail( # noqa | |
self.id, email_values={"attachment_ids": attachments} | |
) |
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
Odoo Server Error | |
Traceback (most recent call last): | |
File "/home/odoo/src/odoo/odoo/addons/base/models/qweb.py", line 347, in _compiled_fn | |
return compiled(self, append, new, options, log) | |
File "<template>", line 1, in template_1389_3475 | |
File "<template>", line 2, in body_call_content_3474 | |
File "<template>", line 3, in foreach_3473 | |
File "<template>", line 4, in body_call_content_3472 | |
AttributeError: 'account.payment' object has no attribute 'notes' |
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
@api.one | |
def add_attachment(self, content): | |
""" | |
TODO | |
""" | |
buf = StringIO() # from io import StringIO | |
buf.write(content) | |
document = base64.encodebytes(buf.getvalue().encode()) | |
buf.close() | |
attach = self.env["ir.attachment"].create( |
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
-29 18:18:16,384 581 WARNING radel-staging-1311596 odoo.fields: Field commision.sale.sales depends on itself; please fix its decorator @api.depends(). | |
2020-07-29 18:18:16,385 581 WARNING radel-staging-1311596 odoo.fields: Field commision.sale.payment depends on itself; please fix its decorator @api.depends(). | |
2020-07-29 18:18:16,385 581 WARNING radel-staging-1311596 odoo.fields: Field commision.sale.category depends on itself; please fix its decorator @api.depends(). | |
2020-07-29 18:18:16,385 581 WARNING radel-staging-1311596 odoo.fields: Field commision.sale.category depends on itself; please fix its decorator @api.depends(). | |
2020-07-29 18:18:16,385 581 WARNING radel-staging-1311596 odoo.fields: Field commision.sale.payment depends on itself; please fix its decorator @api.depends(). | |
2020-07-29 18:18:16,385 581 WARNING radel-staging-1311596 odoo.fields: Field commision.sale.category depends on itself; please fix its decorator @api.depends(). | |
2020-07-29 18:18:16,386 581 WARNING radel-staging-1311596 odoo.fields: |
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
--init account_cancel,rating,account_voucher,asti_eaccounting_mx_base, | |
queue_job,web,account_invoice_currency,purchase_requisition,helpdesk,analytic, | |
sale_expense,board,l10n_mx_account_tax_category,mail,sale_stock,web_widget_color_field, | |
auto_backup,theme_default,account_budget,report,l10n_mx_einvoice_pac_sf,pagos_v33,resource, | |
web_enterprise,l10n_mx_einvoice,finanzas,cfdi_vouchere_lib,account_period_and_fiscalyear, | |
grp_cadastre,mail_attach_existing_attachment,email_template_multicompany, | |
argil_invoice_analysis_extension,l10n_mx,account_accountant, | |
account_invoice_payment_by_date_due,project,compras_municipio, | |
contacts,web_editor,im_livechat,argil_mx_accounting_reports_consol, | |
account_move_report,base,l10n_mx_einvoice_report,decimal_precision, |
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
ParseError: "null value in column "name" violates not-null constraint | |
DETAIL: Failing row contains (9, 1, null, f, 1, null, red, f, 2020-07-15 01:20:52.96999, t, 2020-07-15 01:20:52.96999, null, 2, habiles). | |
" while parsing /home/cs/development/odoo/10.0/systeg/jal039/jal039/grp_jal039/data/hr_holidays_data.xml:3, near | |
<record id="l10n_mx_edi_payslip.grp_permiso_matrimonio" model="hr.holidays.status"> | |
<field name="grp_limit_days">2</field> | |
<field name="grp_limit_type">habiles</field> | |
</record> |
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
def portal_purchase_order_details(self, c_id, upload=None, **kw): | |
... | |
... | |
... | |
order.write(po_values) | |
order.save_quoted_lines() | |
if upload: |
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
2020-06-23 10:28:56,747 250 ERROR undefinedCapacitacion_jal097100 odoo.modules.registry: Failed to load registry | |
Traceback (most recent call last): | |
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 83, in new | |
odoo.modules.load_modules(registry._db, force_demo, status, update_module) | |
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 373, in load_modules | |
force, status, report, loaded_modules, update_module, models_to_check) | |
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 270, in load_marked_modules | |
perform_checks=perform_checks, models_to_check=models_to_check | |
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 182, in load_module_graph | |
_load_data(cr, module_name, idref, mode, kind='data') |
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
bad query: INSERT INTO "account_momentospresupuestales" ("id", "mir_id", "directo", "tipogasto_id", "accountmove_id", "fuentefinanciamiento_origen_id", "fechaaplicacion", "unidadresponsable_id", "crossoveredbudget_id", "ejercicio_id", "fuentefinanciamiento_id", "comprometido", "purchase_estructura_contable_id", "res_id", "model_id", "periodo_id", "departamento_id", "destino_id", "purchase_order_id", "programa_id", "partidas_id", "programapresupuestario_id", "subfunciongasto_id", "requisition", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('account_momentospresupuestales_id_seq'), 20740, false, 10334, 100558, 816, '2020-06-22', 20785, 6, 58, 808, 52.2, 2863, 239, 337, 28, 1898, 20904, 239, 17430, 7427, 21568, 22366, 431, 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id |
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
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 136, in load_module_graph | |
migrations.migrate_module(package, 'pre') | |
File "/home/odoo/instance/odoo/odoo/modules/migration.py", line 157, in migrate_module | |
migrate(self.cr, installed_version) | |
File "/home/odoo/instance/extra_addons/odoogrp-core/grp_expense/migrations/10.0.2.0.0/pre-migration.py", line 25, in migrate | |
update_data(cr) | |
File "/home/odoo/instance/extra_addons/odoogrp-core/grp_expense/migrations/10.0.2.0.0/pre-migration.py", line 18, in update_data | |
;""" | |
File "/home/odoo/instance/odoo/odoo/sql_db.py", line 154, in wrapper | |
return f(self, *args, **kwargs) |
NewerOlder