From 8cef75a9b31078b4df9dac149070aa5973ab742d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Tue, 17 Mar 2026 23:04:52 +0100 Subject: [PATCH] [MIG] account_quotation_sale_order_invoice_title: Migration to 18.0 --- .../__init__.py | 2 - .../__manifest__.py | 62 +++---------------- .../models/__init__.py | 2 - .../models/account_move.py | 6 +- .../models/sale.py | 6 +- .../views/account_invoice_report.xml | 2 +- .../views/account_move_views.xml | 4 +- .../views/sale_order_report.xml | 9 ++- .../views/sale_views.xml | 4 +- .../wizard/__init__.py | 2 - .../wizard/sale_make_invoice_advance.py | 6 +- 11 files changed, 26 insertions(+), 79 deletions(-) diff --git a/account_quotation_sale_order_invoice_title/__init__.py b/account_quotation_sale_order_invoice_title/__init__.py index 35e7c96..9b42961 100644 --- a/account_quotation_sale_order_invoice_title/__init__.py +++ b/account_quotation_sale_order_invoice_title/__init__.py @@ -1,4 +1,2 @@ -# -*- coding: utf-8 -*- - from . import models from . import wizard diff --git a/account_quotation_sale_order_invoice_title/__manifest__.py b/account_quotation_sale_order_invoice_title/__manifest__.py index bafa5bd..bd8ad6d 100644 --- a/account_quotation_sale_order_invoice_title/__manifest__.py +++ b/account_quotation_sale_order_invoice_title/__manifest__.py @@ -1,59 +1,15 @@ -# -*- coding: utf-8 -*- +# Copyright 2025 Elabore +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + { "name": "Account Quotation Sale Order Invoice Title", - "category": "Account", - "version": "16.0.1.0", - "summary": "Transfer the Receipt Lost value in invoices and account move lines", + "version": "18.0.1.0.0", + "category": "Accounting", + "summary": "Add title field in Quotations, Sale Orders and Invoices", "author": "Elabore", "website": "https://git.elabore.coop/elabore/account-tools", - "installable": True, - "application": False, - "auto_install": False, - "description": """ -========================================== -Account Quotation Sale Order Invoice Title -========================================== -This module allows to add a title in Quotations, Sale Orders and Invoices. -When an invoice is created from a Sale Order, the title is transfered. - -Installation -============ -Just install account_quotation_sale_order_invoice_title, all dependencies will be installed by default. - -Known issues / Roadmap -====================== - -Bug Tracker -=========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed feedback. - -Credits -======= - -Images ------- -* Elabore: `Icon `_. - -Contributors ------------- -* Stéphan Sainléger - -Funders -------- -The development of this module has been financially supported by: -* Elabore (https://elabore.coop) -* Datactivist (https://datactivist.coop) - -Maintainer ----------- -This module is maintained by ELABORE. - -""", + "license": "AGPL-3", "depends": [ - "base", "account", "sale", ], @@ -63,5 +19,7 @@ This module is maintained by ELABORE. "views/account_invoice_report.xml", "views/sale_order_report.xml", ], - "qweb": [], + "installable": True, + "auto_install": False, + "application": False, } diff --git a/account_quotation_sale_order_invoice_title/models/__init__.py b/account_quotation_sale_order_invoice_title/models/__init__.py index 7593f58..05e7ee9 100644 --- a/account_quotation_sale_order_invoice_title/models/__init__.py +++ b/account_quotation_sale_order_invoice_title/models/__init__.py @@ -1,4 +1,2 @@ -# -*- coding: utf-8 -*- - from . import account_move from . import sale diff --git a/account_quotation_sale_order_invoice_title/models/account_move.py b/account_quotation_sale_order_invoice_title/models/account_move.py index 3a0a143..a36b523 100644 --- a/account_quotation_sale_order_invoice_title/models/account_move.py +++ b/account_quotation_sale_order_invoice_title/models/account_move.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- - -from odoo import models, fields +from odoo import fields, models class AccountMove(models.Model): - _inherit = 'account.move' + _inherit = "account.move" move_title = fields.Char(string="Invoice Title") diff --git a/account_quotation_sale_order_invoice_title/models/sale.py b/account_quotation_sale_order_invoice_title/models/sale.py index c63909b..b09e976 100644 --- a/account_quotation_sale_order_invoice_title/models/sale.py +++ b/account_quotation_sale_order_invoice_title/models/sale.py @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- - -from odoo import models, fields +from odoo import fields, models class SaleOrder(models.Model): @@ -9,6 +7,6 @@ class SaleOrder(models.Model): so_title = fields.Char(string="Title") def _prepare_invoice(self): - res = super(SaleOrder, self)._prepare_invoice() + res = super()._prepare_invoice() res["move_title"] = self.so_title return res diff --git a/account_quotation_sale_order_invoice_title/views/account_invoice_report.xml b/account_quotation_sale_order_invoice_title/views/account_invoice_report.xml index 61e3509..aee7858 100644 --- a/account_quotation_sale_order_invoice_title/views/account_invoice_report.xml +++ b/account_quotation_sale_order_invoice_title/views/account_invoice_report.xml @@ -1,4 +1,4 @@ - +