diff --git a/sale_order_line_input/models/sale_order.py b/sale_order_line_input/models/sale_order.py index 3711ce49d93..6dabe1d7c17 100644 --- a/sale_order_line_input/models/sale_order.py +++ b/sale_order_line_input/models/sale_order.py @@ -54,9 +54,8 @@ def _onchange_order_partner_id(self): def action_sale_order_form(self): self.ensure_one() - action = self.env.ref("sale.action_orders") + action = self.env["ir.actions.act_window"]._for_xml_id("sale.action_orders") form = self.env.ref("sale.view_order_form") - action = action.read()[0] action["views"] = [(form.id, "form")] action["res_id"] = self.order_id.id return action diff --git a/sale_order_line_input/static/description/index.html b/sale_order_line_input/static/description/index.html index f41be4737b0..228157f0e58 100644 --- a/sale_order_line_input/static/description/index.html +++ b/sale_order_line_input/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -424,7 +424,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.