From a7b5492ba57e28e48e1693e8f856c93a6d8d5e93 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 19 Dec 2023 21:05:16 +0100 Subject: [PATCH] [OU-ADD] pos_sale module --- docsource/modules140-150.rst | 2 +- .../pos_sale/15.0.1.1/post-migration.py | 8 +++++++ .../15.0.1.1/upgrade_analysis_work.txt | 23 +++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 openupgrade_scripts/scripts/pos_sale/15.0.1.1/post-migration.py create mode 100644 openupgrade_scripts/scripts/pos_sale/15.0.1.1/upgrade_analysis_work.txt diff --git a/docsource/modules140-150.rst b/docsource/modules140-150.rst index 1bdad64fa5e6..7e5abbb4c497 100644 --- a/docsource/modules140-150.rst +++ b/docsource/modules140-150.rst @@ -612,7 +612,7 @@ Module coverage 14.0 -> 15.0 +-------------------------------------------------+----------------------+-------------------------------------------------+ | pos_restaurant_adyen | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ -| pos_sale | | | +| pos_sale | Done | | +-------------------------------------------------+----------------------+-------------------------------------------------+ | |new| pos_sale_margin | | | +-------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/pos_sale/15.0.1.1/post-migration.py b/openupgrade_scripts/scripts/pos_sale/15.0.1.1/post-migration.py new file mode 100644 index 000000000000..207ec5433e6f --- /dev/null +++ b/openupgrade_scripts/scripts/pos_sale/15.0.1.1/post-migration.py @@ -0,0 +1,8 @@ +# Copyright 2023-Today: GRAP - Sylvain LE GAL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "pos_sale", "15.0.1.1/noupdate_changes.xml") diff --git a/openupgrade_scripts/scripts/pos_sale/15.0.1.1/upgrade_analysis_work.txt b/openupgrade_scripts/scripts/pos_sale/15.0.1.1/upgrade_analysis_work.txt new file mode 100644 index 000000000000..93d50ecae24f --- /dev/null +++ b/openupgrade_scripts/scripts/pos_sale/15.0.1.1/upgrade_analysis_work.txt @@ -0,0 +1,23 @@ +---Models in module 'pos_sale'--- +---Fields in module 'pos_sale'--- +pos_sale / pos.config / down_payment_product_id (many2one): NEW relation: product.product +pos_sale / pos.order.line / down_payment_details (text) : NEW +# Nothing to do: New fields related to the new down payment features + +pos_sale / pos.order.line / sale_order_line_id (many2one) : NEW relation: sale.order.line +pos_sale / pos.order.line / sale_order_origin_id (many2one): NEW relation: sale.order +pos_sale / sale.order / pos_order_line_ids (one2many) : NEW relation: pos.order.line +pos_sale / sale.order.line / pos_order_line_ids (one2many) : NEW relation: pos.order.line +# Nothing to do: New fields related to new feature that allows to load sale.order in the Point of Sale + +---XML records in module 'pos_sale'--- +NEW ir.ui.view: pos_sale.crm_team_view_kanban_dashboard +NEW ir.ui.view: pos_sale.message_body +NEW ir.ui.view: pos_sale.report_invoice_document +NEW ir.ui.view: pos_sale.view_order_form_inherit_pos_sale +NEW ir.ui.view: pos_sale.view_pos_order_form_inherit_pos_sale +DEL ir.ui.view: pos_sale.crm_team_salesteams_view_kanban_inherit_pos_sale +# Nothing to do: New views. + +NEW product.product: pos_sale.default_downpayment_product (noupdate) +# Load new data in post-migration.py \ No newline at end of file