diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/LICENSE b/ext/custom-addons/tz_carrier_allow_tracking_modification/LICENSE new file mode 100644 index 00000000..272c64b8 --- /dev/null +++ b/ext/custom-addons/tz_carrier_allow_tracking_modification/LICENSE @@ -0,0 +1,27 @@ +Odoo Proprietary License v1.0 + +This software and associated files (the "Software") may only be used (executed, +modified, executed after modifications) if you have purchased a valid license +from the authors, typically via Odoo Apps, or if you have received a written +agreement from the authors of the Software (see the COPYRIGHT file). + +You may develop Odoo modules that use the Software as a library (typically by +depending on it, importing it and using its resources), but without copying any +source code or material from the Software. You may distribute those modules +under the license of your choice, provided that this license is compatible with +the terms of the Odoo Proprietary License (For example: LGPL, MIT, +or proprietary licenses similar to this one). + +It is forbidden to publish, distribute, sublicense, or sell copies of the Software +or modified copies of the Software. + +The above copyright notice and this permission notice must be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/__init__.py b/ext/custom-addons/tz_carrier_allow_tracking_modification/__init__.py new file mode 100644 index 00000000..cde864ba --- /dev/null +++ b/ext/custom-addons/tz_carrier_allow_tracking_modification/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/__manifest__.py b/ext/custom-addons/tz_carrier_allow_tracking_modification/__manifest__.py new file mode 100644 index 00000000..6b0d51b4 --- /dev/null +++ b/ext/custom-addons/tz_carrier_allow_tracking_modification/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2018-Today TZAustria +# License OPL-1 or later (https://www.odoo.com/documentation/user/11.0/legal/licenses/licenses.html#licenses). + +# noinspection PyStatementEffect +{ + 'name': 'TZ Carrier Allow Tracking Modification', + 'summary' : 'allows modification of tracking number even after confirmation of delivery', + 'version': '11.0.1.0.0', + 'license': 'OPL-1', + 'author': 'TZAustria', + 'support': 'andreas.osim@glaser-co.at', + 'website': 'https://www.tzaustria.at', + 'depends': ['sale_stock',], + 'data': ['views/delivery_carrier_track.xml',], + 'installable': True, + 'auto_install': False, +} diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/models/__init__.py b/ext/custom-addons/tz_carrier_allow_tracking_modification/models/__init__.py new file mode 100644 index 00000000..35292112 --- /dev/null +++ b/ext/custom-addons/tz_carrier_allow_tracking_modification/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import delivery_carrier_pack diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/models/delivery_carrier_pack.py b/ext/custom-addons/tz_carrier_allow_tracking_modification/models/delivery_carrier_pack.py new file mode 100644 index 00000000..6d138c75 --- /dev/null +++ b/ext/custom-addons/tz_carrier_allow_tracking_modification/models/delivery_carrier_pack.py @@ -0,0 +1,15 @@ +# Copyright 2018-Today Tischlerzentrum gmbh () +# License OPL-1 or later (https://www.odoo.com/documentation/user/11.0/legal/licenses/licenses.html#licenses). + +from odoo import api, fields, models + +class DeliveryCarrierTrack(models.Model): + _inherit = 'stock.picking' + + @api.multi + def write(self,vals): + #Check whether the carrier_tracking_ref field has being modified + if 'carrier_tracking_ref' in vals: + self.message_post('Tracking_number geƤndert auf: %s' % vals.get('carrier_tracking_ref')) + + return super(DeliveryCarrierTrack, self).write(vals) \ No newline at end of file diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/static/description/icon.png b/ext/custom-addons/tz_carrier_allow_tracking_modification/static/description/icon.png new file mode 100644 index 00000000..32c1481d Binary files /dev/null and b/ext/custom-addons/tz_carrier_allow_tracking_modification/static/description/icon.png differ diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/static/src/img/favicon.ico b/ext/custom-addons/tz_carrier_allow_tracking_modification/static/src/img/favicon.ico new file mode 100644 index 00000000..90f1e91c Binary files /dev/null and b/ext/custom-addons/tz_carrier_allow_tracking_modification/static/src/img/favicon.ico differ diff --git a/ext/custom-addons/tz_carrier_allow_tracking_modification/views/delivery_carrier_track.xml b/ext/custom-addons/tz_carrier_allow_tracking_modification/views/delivery_carrier_track.xml new file mode 100644 index 00000000..b2929159 --- /dev/null +++ b/ext/custom-addons/tz_carrier_allow_tracking_modification/views/delivery_carrier_track.xml @@ -0,0 +1,19 @@ + + + + + + + view_delivery_carrier_track_tz + stock.picking + + + + + + + + + +