From a0ebc66ca9f2a641d3eda0dd49a38658fc288b05 Mon Sep 17 00:00:00 2001 From: MonsieurB Date: Wed, 19 Apr 2017 11:47:31 +0200 Subject: [PATCH] before test with base_sms_client --- sms_send_picking/README.rst | 7 ++--- sms_send_picking/__init__.py | 6 ++++- .../{__openerp__.py => __manifest__.py} | 6 ++--- sms_send_picking/{ => data}/cron.xml | 8 +++--- sms_send_picking/models/__init__.py | 5 ++++ sms_send_picking/{ => models}/stock.py | 26 +++---------------- 6 files changed, 25 insertions(+), 33 deletions(-) rename sms_send_picking/{__openerp__.py => __manifest__.py} (84%) rename sms_send_picking/{ => data}/cron.xml (66%) create mode 100644 sms_send_picking/models/__init__.py rename sms_send_picking/{ => models}/stock.py (63%) diff --git a/sms_send_picking/README.rst b/sms_send_picking/README.rst index 4c37c03..129f85c 100644 --- a/sms_send_picking/README.rst +++ b/sms_send_picking/README.rst @@ -1,8 +1,9 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg :alt: License: AGPL-3 +================= SMS send picking -=========== +================= This module provides a cron and a method to automaticly sending a SMS when a picking delivery is ready to transfert. @@ -18,7 +19,7 @@ Usage To use this module, you need to: -* have a gateway correctly configured +* have a gateway correctly configured with keychain account * put some picking delivery in ready to transfert state For further information, please visit: @@ -36,7 +37,6 @@ 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 -`here `_. Credits @@ -46,6 +46,7 @@ Contributors ------------ * Valentin Chemiere +* MonsieurB Maintainer ---------- diff --git a/sms_send_picking/__init__.py b/sms_send_picking/__init__.py index 12bab77..f3af6e4 100644 --- a/sms_send_picking/__init__.py +++ b/sms_send_picking/__init__.py @@ -1 +1,5 @@ -from . import stock +# -*- coding: utf-8 -*- +# © 2015 Valentin CHEMIERE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/sms_send_picking/__openerp__.py b/sms_send_picking/__manifest__.py similarity index 84% rename from sms_send_picking/__openerp__.py rename to sms_send_picking/__manifest__.py index 03e5b7d..d2dab0b 100644 --- a/sms_send_picking/__openerp__.py +++ b/sms_send_picking/__manifest__.py @@ -4,17 +4,17 @@ { 'name': 'Sms Send Picking', - 'version': '8.0.1', + 'version': '10.0.1.0.0', 'author': 'Akretion, Odoo Community Association (OCA)', 'website': 'www.akretion.com', 'license': 'AGPL-3', 'category': 'Phone', 'depends': [ 'stock', - 'smsclient_core', + 'base_sms_client', ], 'data': [ - 'cron.xml' + 'data/cron.xml' ], 'installable': True, 'application': False, diff --git a/sms_send_picking/cron.xml b/sms_send_picking/data/cron.xml similarity index 66% rename from sms_send_picking/cron.xml rename to sms_send_picking/data/cron.xml index 9204430..f30f988 100644 --- a/sms_send_picking/cron.xml +++ b/sms_send_picking/data/cron.xml @@ -6,10 +6,10 @@ 5 minutes -1 - - - - + False + stock.picking + _cron_send_picking_availability_by_sms + () diff --git a/sms_send_picking/models/__init__.py b/sms_send_picking/models/__init__.py new file mode 100644 index 0000000..5e98a3c --- /dev/null +++ b/sms_send_picking/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2015 Valentin CHEMIERE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import stock diff --git a/sms_send_picking/stock.py b/sms_send_picking/models/stock.py similarity index 63% rename from sms_send_picking/stock.py rename to sms_send_picking/models/stock.py index 020ce66..e4a8687 100644 --- a/sms_send_picking/stock.py +++ b/sms_send_picking/models/stock.py @@ -1,27 +1,9 @@ # -*- coding: utf-8 -*- -############################################################################### -# -# Module for Odoo -# Copyright (C) 2015 Akretion (http://www.akretion.com). -# @author Valentin CHEMIERE -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################### +# © 2015 Valentin CHEMIERE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, models, fields -from openerp.tools.translate import _ +from odoo import api, models, fields +from odoo.tools.translate import _ import logging _logger = logging.getLogger(__name__)