diff --git a/sale_confirm_wizard/__manifest__.py b/sale_confirm_wizard/__manifest__.py index f78474d..878a367 100644 --- a/sale_confirm_wizard/__manifest__.py +++ b/sale_confirm_wizard/__manifest__.py @@ -1,10 +1,10 @@ -# Copyright 2017-2021 Akretion France (http://www.akretion.com/) +# Copyright 2017-2022 Akretion France (http://www.akretion.com/) # @author: Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Sale Confirm Wizard', - 'version': '14.0.1.0.0', + 'version': '16.0.1.0.0', 'category': 'Sales', 'license': 'AGPL-3', 'summary': 'Open a wizard when you confirm a sale order to update important info', @@ -34,5 +34,5 @@ This module has been written by Alexis de Lattre from Akretion 'views/sale_order.xml', 'security/ir.model.access.csv', ], - 'installable': False, + 'installable': True, } diff --git a/sale_confirm_wizard/wizard/sale_confirm.py b/sale_confirm_wizard/wizard/sale_confirm.py index 87276d7..1913f0d 100644 --- a/sale_confirm_wizard/wizard/sale_confirm.py +++ b/sale_confirm_wizard/wizard/sale_confirm.py @@ -18,14 +18,8 @@ class SaleConfirm(models.TransientModel): 'account.payment.term', string='Payment Terms') partner_invoice_id = fields.Many2one( 'res.partner', 'Invoice Address', required=True) - show_partner_invoice_id = fields.Many2one( - related='partner_invoice_id', - string='Detailed Invoice Address') partner_shipping_id = fields.Many2one( 'res.partner', 'Delivery Address', required=True) - show_partner_shipping_id = fields.Many2one( - related='partner_shipping_id', - string='Detailed Delivery Address') sale_warn = fields.Selection( WARNING_MESSAGE, 'Sale Warning Type', readonly=True) sale_warn_msg = fields.Text(string='Sale Warning Message', readonly=True) @@ -78,4 +72,3 @@ class SaleConfirm(models.TransientModel): self.sale_id.write(vals) # confirm sale order self.sale_id.action_confirm() - return True diff --git a/sale_confirm_wizard/wizard/sale_confirm_view.xml b/sale_confirm_wizard/wizard/sale_confirm_view.xml index 87b2659..a06cce6 100644 --- a/sale_confirm_wizard/wizard/sale_confirm_view.xml +++ b/sale_confirm_wizard/wizard/sale_confirm_view.xml @@ -1,6 +1,6 @@ @@ -13,26 +13,24 @@

At this stage, you have received the Purchase Order from the customer and you are about to convert the related quotation to an order.

- - - - + + + - - - + - + context="{'default_type': 'delivery', 'show_address': 1}" + options="{'always_reload': True}" + groups="account.group_delivery_invoice_address"/> diff --git a/sale_quotation_title/__manifest__.py b/sale_quotation_title/__manifest__.py index 5fb7124..42f84cd 100644 --- a/sale_quotation_title/__manifest__.py +++ b/sale_quotation_title/__manifest__.py @@ -1,10 +1,10 @@ -# Copyright 2016-2019 Akretion (http://www.akretion.com) +# Copyright 2016-2022 Akretion (http://www.akretion.com) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # @author Alexis de Lattre { 'name': 'Sale Quotation Title', - 'version': '12.0.1.0.0', + 'version': '16.0.1.0.0', 'category': 'Sales', 'license': 'AGPL-3', 'summary': 'Adds a title field on quotations', @@ -21,5 +21,5 @@ This module has been written by Alexis de Lattre from Akretion 'website': 'http://www.akretion.com', 'depends': ['sale'], 'data': ['sale_view.xml'], - 'installable': False, + 'installable': True, } diff --git a/sale_quotation_title/sale.py b/sale_quotation_title/sale.py index b267af1..5aedfd6 100644 --- a/sale_quotation_title/sale.py +++ b/sale_quotation_title/sale.py @@ -1,11 +1,11 @@ -# Copyright 2016-2019 Akretion (http://www.akretion.com) +# Copyright 2016-2022 Akretion (http://www.akretion.com) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # @author Alexis de Lattre -from odoo import models, fields +from odoo import fields, models class SaleOrder(models.Model): _inherit = 'sale.order' - quotation_title = fields.Char(string="Quotation Title") + quotation_title = fields.Char(tracking=True) diff --git a/sale_quotation_title/sale_view.xml b/sale_quotation_title/sale_view.xml index e6e75ec..ee4628b 100644 --- a/sale_quotation_title/sale_view.xml +++ b/sale_quotation_title/sale_view.xml @@ -1,6 +1,6 @@ @@ -14,7 +14,7 @@ - + @@ -25,7 +25,7 @@ - + diff --git a/sale_usability/__manifest__.py b/sale_usability/__manifest__.py index 08950e9..e51beec 100644 --- a/sale_usability/__manifest__.py +++ b/sale_usability/__manifest__.py @@ -13,7 +13,7 @@ 'depends': [ 'sale', # 'account_usability', # for company view -# 'base_view_inheritance_extension', + 'base_view_inheritance_extension', ], 'data': [ 'views/sale_order.xml', diff --git a/sale_usability/views/sale_order.xml b/sale_usability/views/sale_order.xml index 3773f7f..9d4e56c 100644 --- a/sale_usability/views/sale_order.xml +++ b/sale_usability/views/sale_order.xml @@ -15,10 +15,9 @@ selection - + {"show_address": 1} +