Browse Source

Jan 11 [UPDT] : Updated 'mobile_service_shop'

pull/313/head
AjmalCybro 1 year ago
parent
commit
9867c736e9
  1. 24
      mobile_service_shop/README.rst
  2. 1
      mobile_service_shop/__init__.py
  3. 32
      mobile_service_shop/__manifest__.py
  4. 5
      mobile_service_shop/doc/RELEASE_NOTES.md
  5. 28
      mobile_service_shop/models/__init__.py
  6. 28
      mobile_service_shop/models/brand_model.py
  7. 28
      mobile_service_shop/models/mobile_brand.py
  8. 28
      mobile_service_shop/models/mobile_complaint.py
  9. 28
      mobile_service_shop/models/mobile_complaint_description.py
  10. 28
      mobile_service_shop/models/mobile_complaint_tree.py
  11. 28
      mobile_service_shop/models/mobile_service.py
  12. 28
      mobile_service_shop/models/product_order_line.py
  13. 28
      mobile_service_shop/models/product_template.py
  14. 28
      mobile_service_shop/models/service_ticket.py
  15. 28
      mobile_service_shop/models/terms_condition.py
  16. BIN
      mobile_service_shop/static/description/assets/modules/1.png
  17. BIN
      mobile_service_shop/static/description/assets/modules/2.png
  18. BIN
      mobile_service_shop/static/description/assets/modules/3.png
  19. BIN
      mobile_service_shop/static/description/assets/modules/4.png
  20. BIN
      mobile_service_shop/static/description/assets/modules/5.png
  21. BIN
      mobile_service_shop/static/description/assets/modules/6.png
  22. BIN
      mobile_service_shop/static/description/assets/modules/m1.png
  23. BIN
      mobile_service_shop/static/description/assets/modules/m2.png
  24. BIN
      mobile_service_shop/static/description/assets/modules/m3.png
  25. BIN
      mobile_service_shop/static/description/assets/modules/m4.png
  26. BIN
      mobile_service_shop/static/description/assets/modules/m5.png
  27. BIN
      mobile_service_shop/static/description/assets/modules/m6.png
  28. 1289
      mobile_service_shop/static/description/index.html
  29. 29
      mobile_service_shop/wizard/__init__.py
  30. 69
      mobile_service_shop/wizard/mobile_create_invoice.py

24
mobile_service_shop/README.rst

@ -1,3 +1,7 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Mobile Service Management Mobile Service Management
========================= =========================
Module for mobile service shop daily activities Module for mobile service shop daily activities
@ -10,12 +14,23 @@ Company
------- -------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ * `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.odoo.com/documentation/17.0/legal/licenses.html)
Credits Credits
------- -------
* Developers: Milind Mohan @ Cybrosys, odoo@cybrosys.com * Developers: Milind Mohan,
Mohammed Shahil M P @cybrosys, odoo@cybrosys.com (V15) Mohammed Shahil M P,
Neenu Merlin Jose @cybrosys, odoo@cybrosys.com (V16) Neenu Merlin Jose,
Vishnu KP @ Cybrosys, odoo@cybrosys.com (V17) Vishnu KP,
Contact : odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker Bug Tracker
----------- -----------
@ -33,4 +48,3 @@ For support and more information, please visit `Our Website <https://cybrosys.co
Further information Further information
=================== ===================
HTML Description: `<static/description/index.html>`__ HTML Description: `<static/description/index.html>`__

1
mobile_service_shop/__init__.py

@ -19,6 +19,5 @@
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################# #############################################################################
from . import models from . import models
from . import wizard from . import wizard

32
mobile_service_shop/__manifest__.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{ {
'name': 'Mobile Service Management', 'name': 'Mobile Service Management',
'version': '17.0.1.0.0', 'version': '17.0.1.0.0',
@ -27,7 +27,7 @@
'author': 'Cybrosys Techno Solutions', 'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com', 'website': 'https://www.cybrosys.com',
'depends': ['base', 'stock_account', 'mail', 'product', 'account'], 'depends': ['stock_account', 'mail', 'product', 'account'],
'data': ['security/mobile_service_shop_security.xml', 'data': ['security/mobile_service_shop_security.xml',
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'views/mobile_service_views.xml', 'views/mobile_service_views.xml',
@ -49,8 +49,8 @@
'mobile_service_shop/static/src/css/mobile_service.css', 'mobile_service_shop/static/src/css/mobile_service.css',
], ],
}, },
'license': 'LGPL-3',
'installable': True, 'installable': True,
'application': True, 'application': True,
'auto_install': False, 'auto_install': False,
'license': 'LGPL-3',
} }

5
mobile_service_shop/doc/RELEASE_NOTES.md

@ -3,9 +3,10 @@
### 17.11.2023 ### 17.11.2023
#### Version 17.0.1.0.0 #### Version 17.0.1.0.0
#### ADD #### ADD
Initial Commit for Mobile Service Management - Initial Commit for Mobile Service Management
### 24.11.2023 ### 24.11.2023
#### Version 17.0.1.0.1 #### Version 17.0.1.0.1
#### UPDT #### UPDT
Bug fix - Bug fix
-

28
mobile_service_shop/models/__init__.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import brand_model from . import brand_model
from . import mobile_brand from . import mobile_brand
from . import mobile_complaint from . import mobile_complaint

28
mobile_service_shop/models/brand_model.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

28
mobile_service_shop/models/mobile_brand.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

28
mobile_service_shop/models/mobile_complaint.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

28
mobile_service_shop/models/mobile_complaint_description.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

28
mobile_service_shop/models/mobile_complaint_tree.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

28
mobile_service_shop/models/mobile_service.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from datetime import datetime from datetime import datetime
from odoo import api, fields, models, _ from odoo import api, fields, models, _
from odoo.exceptions import UserError from odoo.exceptions import UserError

28
mobile_service_shop/models/product_order_line.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models, _ from odoo import api, fields, models, _

28
mobile_service_shop/models/product_template.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

28
mobile_service_shop/models/service_ticket.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, api from odoo import models, api

28
mobile_service_shop/models/terms_condition.py

@ -1,24 +1,24 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models from odoo import fields, models

BIN
mobile_service_shop/static/description/assets/modules/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

BIN
mobile_service_shop/static/description/assets/modules/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

BIN
mobile_service_shop/static/description/assets/modules/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
mobile_service_shop/static/description/assets/modules/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

BIN
mobile_service_shop/static/description/assets/modules/5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

BIN
mobile_service_shop/static/description/assets/modules/6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

BIN
mobile_service_shop/static/description/assets/modules/m1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
mobile_service_shop/static/description/assets/modules/m2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
mobile_service_shop/static/description/assets/modules/m3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
mobile_service_shop/static/description/assets/modules/m4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
mobile_service_shop/static/description/assets/modules/m5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
mobile_service_shop/static/description/assets/modules/m6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

1289
mobile_service_shop/static/description/index.html

File diff suppressed because it is too large

29
mobile_service_shop/wizard/__init__.py

@ -1,23 +1,22 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import mobile_create_invoice from . import mobile_create_invoice

69
mobile_service_shop/wizard/mobile_create_invoice.py

@ -1,49 +1,49 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Vishnu KP @ Cybrosys, (odoo@cybrosys.com) # Author: Vishnu KP S (odoo@cybrosys.com)
# #
# You can modify it under the terms of the GNU AFFERO # This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1)
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # It is forbidden to publish, distribute, sublicense, or sell copies of the
# Software or modified copies of the Software.
# #
# This program is distributed in the hope that it will be useful, # THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# but WITHOUT ANY WARRANTY; without even the implied warranty of # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # 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.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE ###############################################################################
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models, _ from odoo import fields, models, _
from odoo.exceptions import UserError from odoo.exceptions import UserError
class MobileInvoice(models.Model): class MobileInvoice(models.Model):
_name = 'mobile.invoice' _name = 'mobile.invoice'
advance_payment_method = fields.Selection([('advance', 'Advance'), ('full_amount', 'Full amount')], advance_payment_method = fields.Selection(
string='Invoice method', default='advance') [('advance', 'Advance'), ('full_amount', 'Full amount')],
amount = fields.Integer(string='Amount') string='Invoice method', default='advance')
number = fields.Char(string='Service Id') amount = fields.Integer(string='Amount', help="Payment Amount")
number = fields.Char(string='Service Id', help="Payment service id'")
def action_invoice_create(self): def action_invoice_create(self):
"""Creating invoice""" """Creating invoice"""
active_id = self._context.get('active_id') active_id = self._context.get('active_id')
service_id = self.env['mobile.service'].search([('id', '=', active_id)]) service_id = self.env['mobile.service'].search([('id', '=', active_id)])
if not service_id.env['product.product'].search([("name", "=", "Mobile Service Advance")]): if not service_id.env['product.product'].search(
[("name", "=", "Mobile Service Advance")]):
vals = self._prepare_advance_product() vals = self._prepare_advance_product()
self.env['product.product'].create(vals) self.env['product.product'].create(vals)
if not service_id.env['product.product'].search(
if not service_id.env['product.product'].search([("name", "=", "Mobile Service Charge")]): [("name", "=", "Mobile Service Charge")]):
vals1 = self._prepare_service_product() vals1 = self._prepare_service_product()
self.env['product.product'].create(vals1) self.env['product.product'].create(vals1)
service_id.first_invoice_created = True service_id.first_invoice_created = True
inv_obj = self.env['account.move'] inv_obj = self.env['account.move']
supplier = service_id.person_name supplier = service_id.person_name
@ -60,17 +60,19 @@ class MobileInvoice(models.Model):
service_id.first_payment_inv = inv_id.id service_id.first_payment_inv = inv_id.id
self.number = service_id.name self.number = service_id.name
if self.advance_payment_method != 'advance': if self.advance_payment_method != 'advance':
product_id = service_id.env['product.product'].search([("name", "=", "Mobile Service Charge")]) product_id = service_id.env['product.product'].search(
[("name", "=", "Mobile Service Charge")])
else: else:
product_id = service_id.env['product.product'].search([("name", "=", "Mobile Service Advance")]) product_id = service_id.env['product.product'].search(
[("name", "=", "Mobile Service Advance")])
if product_id.property_account_income_id.id: if product_id.property_account_income_id.id:
income_account = product_id.property_account_income_id.id income_account = product_id.property_account_income_id.id
elif product_id.categ_id.property_account_income_categ_id.id: elif product_id.categ_id.property_account_income_categ_id.id:
income_account = product_id.categ_id.property_account_income_categ_id.id income_account = product_id.categ_id.property_account_income_categ_id.id
else: else:
raise UserError('Please define income account for this product: "%s" (id:%d).' % raise UserError(
(product_id.name, product_id.id)) _(f'Please define income account for this '
f'product: "{product_id.name}" (id:{product_id.id}).'))
flag = 0 flag = 0
if self.amount: if self.amount:
flag = 1 flag = 1
@ -88,11 +90,13 @@ class MobileInvoice(models.Model):
'invoice_line_ids': inv_line_data}) 'invoice_line_ids': inv_line_data})
inv_id._compute_journal_id() inv_id._compute_journal_id()
sale_order_product = self.env['product.order.line'].search([('product_order_id', '=', service_id.name)]) sale_order_product = self.env['product.order.line'].search(
[('product_order_id', '=', service_id.name)])
for line_data in sale_order_product: for line_data in sale_order_product:
qty = line_data.product_uom_qty - line_data.qty_invoiced qty = line_data.product_uom_qty - line_data.qty_invoiced
if line_data.product_uom_qty < line_data.qty_invoiced: if line_data.product_uom_qty < line_data.qty_invoiced:
raise UserError(_('Used quantity is less than invoiced quantity')) raise UserError(
_('Used quantity is less than invoiced quantity'))
uom_id = line_data.product_id.product_tmpl_id.uom_id uom_id = line_data.product_id.product_tmpl_id.uom_id
if qty > 0: if qty > 0:
flag = 1 flag = 1
@ -123,14 +127,15 @@ class MobileInvoice(models.Model):
'name': action.name, 'name': action.name,
'help': action.help, 'help': action.help,
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window',
'views': [[list_view_id, 'tree'], [form_view_id, 'form'], [False, 'graph'], [False, 'kanban'], 'views': [[list_view_id, 'tree'], [form_view_id, 'form'],
[False, 'graph'], [False, 'kanban'],
[False, 'calendar'], [False, 'pivot']], [False, 'calendar'], [False, 'pivot']],
'target': action.target, 'target': action.target,
'context': action.context, 'context': action.context,
'res_model': 'account.move', 'res_model': 'account.move',
} }
if len(inv_id) > 1: if len(inv_id) > 1:
result['domain'] = "[('id','in',%s)]" % inv_id.ids result['domain'] = f"[('id','in',{inv_id.ids})]"
elif len(inv_id) == 1: elif len(inv_id) == 1:
result['views'] = [(form_view_id, 'form')] result['views'] = [(form_view_id, 'form')]
result['res_id'] = inv_id.ids[0] result['res_id'] = inv_id.ids[0]

Loading…
Cancel
Save