From 6af447974c9a4ad190579c1bd40f630187fa483c Mon Sep 17 00:00:00 2001 From: "matthieu.saison" Date: Thu, 30 Nov 2023 10:19:22 +0100 Subject: [PATCH] migration to 14.0 --- sale_margin_no_onchange/__init__.py | 3 +-- sale_margin_no_onchange/__manifest__.py | 22 +++++++++---------- sale_margin_no_onchange/models/__init__.py | 2 ++ sale_margin_no_onchange/{ => models}/sale.py | 0 .../{ => models}/sale_report.py | 0 .../{ => views}/sale_view.xml | 4 +++- 6 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 sale_margin_no_onchange/models/__init__.py rename sale_margin_no_onchange/{ => models}/sale.py (100%) rename sale_margin_no_onchange/{ => models}/sale_report.py (100%) rename sale_margin_no_onchange/{ => views}/sale_view.xml (93%) diff --git a/sale_margin_no_onchange/__init__.py b/sale_margin_no_onchange/__init__.py index abd84e7..0650744 100644 --- a/sale_margin_no_onchange/__init__.py +++ b/sale_margin_no_onchange/__init__.py @@ -1,2 +1 @@ -from . import sale -from . import sale_report +from . import models diff --git a/sale_margin_no_onchange/__manifest__.py b/sale_margin_no_onchange/__manifest__.py index c46b472..b2031a0 100644 --- a/sale_margin_no_onchange/__manifest__.py +++ b/sale_margin_no_onchange/__manifest__.py @@ -4,12 +4,12 @@ { - 'name': 'Sale Margin No Onchange', - 'version': '12.0.1.0.0', - 'category': 'Sales', - 'license': 'AGPL-3', - 'summary': 'Copy standard price on sale order line and compute margins', - 'description': """ + "name": "Sale Margin No Onchange", + "version": "14.0.1.0.0", + "category": "Sales", + "license": "AGPL-3", + "summary": "Copy standard price on sale order line and compute margins", + "description": """ This module copies the field *standard_price* of the product on the sale order line when the sale order line is created and then computes the margin of the sale order and the sale order line (in the currency of the quotation, in the currency of the company and the margin rate). I decided to develop this module as an alternative to the OCA sale margin modules because I wanted a small and simple module. The module *account_invoice_margin*, available in the same Github repository, do the same thing on customer invoices. @@ -17,9 +17,9 @@ I decided to develop this module as an alternative to the OCA sale margin module This module has been written by Alexis de Lattre from Akretion . """, - 'author': 'Akretion', - 'website': 'http://www.akretion.com', - 'depends': ['sale'], - 'data': ['sale_view.xml'], - 'installable': False, + "author": "Akretion", + "website": "http://www.akretion.com", + "depends": ["sale"], + "data": ["views/sale_view.xml"], + "installable": True, } diff --git a/sale_margin_no_onchange/models/__init__.py b/sale_margin_no_onchange/models/__init__.py new file mode 100644 index 0000000..abd84e7 --- /dev/null +++ b/sale_margin_no_onchange/models/__init__.py @@ -0,0 +1,2 @@ +from . import sale +from . import sale_report diff --git a/sale_margin_no_onchange/sale.py b/sale_margin_no_onchange/models/sale.py similarity index 100% rename from sale_margin_no_onchange/sale.py rename to sale_margin_no_onchange/models/sale.py diff --git a/sale_margin_no_onchange/sale_report.py b/sale_margin_no_onchange/models/sale_report.py similarity index 100% rename from sale_margin_no_onchange/sale_report.py rename to sale_margin_no_onchange/models/sale_report.py diff --git a/sale_margin_no_onchange/sale_view.xml b/sale_margin_no_onchange/views/sale_view.xml similarity index 93% rename from sale_margin_no_onchange/sale_view.xml rename to sale_margin_no_onchange/views/sale_view.xml index cfb9056..6972752 100644 --- a/sale_margin_no_onchange/sale_view.xml +++ b/sale_margin_no_onchange/views/sale_view.xml @@ -20,7 +20,8 @@ groups="account.group_account_user"/> - + + @@ -31,6 +32,7 @@ +