Browse Source

before test with base_sms_client

pull/130/head
MonsieurB 8 years ago
parent
commit
a0ebc66ca9
  1. 7
      sms_send_picking/README.rst
  2. 6
      sms_send_picking/__init__.py
  3. 6
      sms_send_picking/__manifest__.py
  4. 8
      sms_send_picking/data/cron.xml
  5. 5
      sms_send_picking/models/__init__.py
  6. 26
      sms_send_picking/models/stock.py

7
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 <https://github.com/OCA/{project_repo}/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 <https://github.com/OCA/{project_repo}/issues/new?body=module:%20{module_name}%0Aversion:%20{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
@ -46,6 +46,7 @@ Contributors
------------
* Valentin Chemiere <valentin.chemiere@akretion.com>
* MonsieurB <monsieurb@saaslys.com>
Maintainer
----------

6
sms_send_picking/__init__.py

@ -1 +1,5 @@
from . import stock
# -*- coding: utf-8 -*-
# © 2015 Valentin CHEMIERE <valentin.chemiere@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models

6
sms_send_picking/__openerp__.py → 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,

8
sms_send_picking/cron.xml → sms_send_picking/data/cron.xml

@ -6,10 +6,10 @@
<field name="interval_number">5</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'stock.picking'" name="model"/>
<field eval="'_cron_send_picking_availability_by_sms'" name="function"/>
<field eval="'()'" name="args"/>
<field name="doall">False</field>
<field name="model">stock.picking</field>
<field name="function">_cron_send_picking_availability_by_sms</field>
<field name="args">()</field>
<field name="active" eval="False"/>
</record>
</data>

5
sms_send_picking/models/__init__.py

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2015 Valentin CHEMIERE <valentin.chemiere@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import stock

26
sms_send_picking/stock.py → 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 <valentin.chemiere@akretion.com>
#
# 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 <http://www.gnu.org/licenses/>.
#
###############################################################################
# © 2015 Valentin CHEMIERE <valentin.chemiere@akretion.com>
# 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__)
Loading…
Cancel
Save