15f0b69c8f91a5c38bea384191c3729882efb340
Steps to reproduce the bug: - Install Accounting and Documents - Go to Documents configuration - Enable Files Centralization > Accounting and save - Still in Documents configuration, into "-> Journals", create a new Journal to Synchronize with: - Journal: Customer Invoices (USD) - Go to Accounting > Customers > Invoices - Create a new invoice with any customer and product and save - "Post" then "Send & Print" - On the dialog, "Send & Print" (confirm the report template if necessary) - Go to Documents Bug: The document is missing the "related resource" link shortcut Cause: The context key `default_res_id` is propagated up to: https://github.com/odoo/enterprise/blob/a6606f000e66e72b9f89d353552950652ab2045f/documents/models/document.py#L364 Consequently, the corresponding document is created with a `res_id`, but no `res_model` as `default_res_model` is not set. By adding the `default_res_model` context key, the document is created with the right `res_model`. Note that another solution would be to remove `default_res_id` from the context before creating the `documents.document` and leave the `_compute_res_record` do the job. However, this could have a larger impact since it would affect all document creations. opw:2332596 closes odoo/odoo#57410 X-original-commit: 82cb5066de1081886f1e6277159248bf0d0e4330 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com> Signed-off-by: backspac <backspac@users.noreply.github.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%