diff --git a/account_restrict_journal/README.rst b/account_restrict_journal/README.rst deleted file mode 100644 index 2a20188..0000000 --- a/account_restrict_journal/README.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg - :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 - -Restrict Journal for Users -==================== -This module helps to restrict journal for the specific users.Users can access allowed journals only - -Configuration -============= -No additional configuration required - -Company -------- -* `Cybrosys Techno Solutions `__ - -License -------- -General Public License, Version 3 (LGPL v3). -(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) - -Credits -------- -Developer: (V16) Sreeshanth V S @cybrosys, Contact: odoo@cybrosys.com - -Contacts --------- -* Mail Contact : odoo@cybrosys.com -* Website : https://cybrosys.com - -Bug Tracker ------------ -Bugs are tracked on GitHub Issues. In case of trouble, please check there if -your issue has already been reported. - -Maintainer -========== -.. image:: https://cybrosys.com/images/logo.png - :target: https://cybrosys.com - -This module is maintained by Cybrosys Technologies. - -For support and more information, please visit `Our Website `__ - -Further information -=================== -HTML Description: ``__ \ No newline at end of file diff --git a/account_restrict_journal/__init__.py b/account_restrict_journal/__init__.py deleted file mode 100644 index 7b2c59c..0000000 --- a/account_restrict_journal/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. -# If not, see . -# -############################################################################# -from . import models diff --git a/account_restrict_journal/__manifest__.py b/account_restrict_journal/__manifest__.py deleted file mode 100644 index 0174d91..0000000 --- a/account_restrict_journal/__manifest__.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. -# If not, see . -# -############################################################################# -{ - 'name': "Restrict Journal for Users", - "version": "16.0.2.1.2", - "category": "Accounting", - "summary": "User can select only allowed journals", - "description": """ Restrict account journal for the specific users to - access allowed journals only""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': "https://www.cybrosys.com", - 'depends': ['base','account'], - 'data': [ - 'security/account_journal_security.xml', - 'security/ir_rule.xml', - 'views/res_users_views.xml', - 'views/account_move_views.xml' - ], - 'images': [ - 'static/description/banner.png'], - 'license': 'LGPL-3', - 'installable': True, - 'application': False, - 'auto_install': False -} diff --git a/account_restrict_journal/doc/RELEASE_NOTES.md b/account_restrict_journal/doc/RELEASE_NOTES.md deleted file mode 100644 index b0f2c42..0000000 --- a/account_restrict_journal/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,16 +0,0 @@ -## Module - -#### 05.05.2023 -#### Version 16.0.1.0.0 -#### ADD -- Initial commit for Restrict Journal for Users - -#### 11.09.2023 -#### Version 16.0.2.1.1 -#### UPDT -- Bug Fix and Change Functionality - -#### 12.07.2024 -#### Version 16.0.2.1.2 -#### UPDT -- Bug Fix for Invoice restriction diff --git a/account_restrict_journal/models/__init__.py b/account_restrict_journal/models/__init__.py deleted file mode 100644 index 97a0885..0000000 --- a/account_restrict_journal/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. -# If not, see . -# -############################################################################# -from . import account_move -from . import account_payment_register -from . import res_users diff --git a/account_restrict_journal/models/account_move.py b/account_restrict_journal/models/account_move.py deleted file mode 100644 index c321c3d..0000000 --- a/account_restrict_journal/models/account_move.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import api, fields, models, _ -from odoo.exceptions import ValidationError - - -class AccountMove(models.Model): - """Inherited model for checking the journal type in account.move.""" - _inherit = 'account.move' - - check_journal = fields.Boolean(string="Check Journal", - help="Compute field for check the current " - "record's journal type ", - compute="_compute_journal") - - def _compute_journal(self): - """Compute field for showing validation error for restricted journal's - records""" - self.check_journal = True - if self.env.user.has_group('account_restrict_journal.user_allowed_journal'): - for rec in self.line_ids: - if rec.full_reconcile_id: - payment = self.env['account.payment.register'].search( - [('id', '=', rec.full_reconcile_id.id)]) - if payment.journal_id.id in self.env.user.journal_ids.ids: - raise ValidationError(_('Restricted journals found.')) - if self.journal_id.id in self.env.user.journal_ids.ids: - raise ValidationError(_('Restricted journals found.')) - - @api.onchange('partner_id') - def _onchange_partner_id(self): - """Function for hiding restricted journals from account.move.""" - if self.journal_id.id in self.env.user.journal_ids.ids: - self.journal_id = False - return super(AccountMove, self)._onchange_partner_id() diff --git a/account_restrict_journal/models/account_payment_register.py b/account_restrict_journal/models/account_payment_register.py deleted file mode 100644 index 9aad72e..0000000 --- a/account_restrict_journal/models/account_payment_register.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import api, models - - -class AccountPaymentRegister(models.TransientModel): - """ Adding allowed journal in functionality""" - - _inherit = 'account.payment.register' - - @api.depends('payment_type', 'company_id', 'can_edit_wizard') - def _compute_available_journal_ids(self): - """ - Check all available journals on register payment. - """ - for wizard in self: - if wizard.can_edit_wizard: - batch = wizard._get_batches()[0] - wizard.available_journal_ids = wizard._get_batch_available_journals( - batch) - else: - wizard.available_journal_ids = self.env[ - 'account.journal'].search( - [('company_id', '=', wizard.company_id.id), - ('type', 'in', ('bank', 'cash')), - ('id', 'not in', self.env.user.journal_ids.ids)]) - - @api.model - def _get_batch_available_journals(self, batch_result): - """ Helper to compute the available journals based on the batch. - - :param batch_result: A batch returned by '_get_batches'. - :return: A recordset of account.journal. - """ - payment_type = batch_result['payment_values']['payment_type'] - company = batch_result['lines'].company_id - journals = self.env['account.journal'].search( - [('company_id', '=', company.id), ('type', 'in', ('bank', 'cash')), - ('id', 'not in', self.env.user.journal_ids.ids)]) - if payment_type == 'inbound': - return journals.filtered('inbound_payment_method_line_ids') - else: - return journals.filtered('outbound_payment_method_line_ids') diff --git a/account_restrict_journal/models/res_users.py b/account_restrict_journal/models/res_users.py deleted file mode 100644 index a53a62b..0000000 --- a/account_restrict_journal/models/res_users.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Cybrosys Techno Solutions() -# -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. -# -# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. -# -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import fields, models - - -class ResUsers(models.Model): - """ Adding journal fields where we can select allowed journal """ - - _inherit = 'res.users' - - check_user = fields.Boolean(string="Check", compute='_compute_check_user', - help="Check the field is true or false") - journal_ids = fields.Many2many( - 'account.journal', 'account_restrict_journal_journal_ids_rel', - string='Restricted Journals', - help='Only the selected journal will be visible' - ' to the particular user') - - def _compute_check_user(self): - """Function for viewing the page for restrict journal users.""" - self.check_user = False - if (self.env.ref('account_restrict_journal.user_allowed_journal').id in - self.groups_id.mapped('id')): - self.check_user = True diff --git a/account_restrict_journal/security/account_journal_security.xml b/account_restrict_journal/security/account_journal_security.xml deleted file mode 100644 index 34097f2..0000000 --- a/account_restrict_journal/security/account_journal_security.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - Restrict Journals - - - diff --git a/account_restrict_journal/security/ir_rule.xml b/account_restrict_journal/security/ir_rule.xml deleted file mode 100644 index 23f97f1..0000000 --- a/account_restrict_journal/security/ir_rule.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Account Journal Restrict on Users - - [('id','not in', user.journal_ids.ids)] - - - - - - - - - - Account Payment Restrict on Users - - [('journal_id','not in', user.journal_ids.ids)] - - - - - - - - - diff --git a/account_restrict_journal/static/description/banner.png b/account_restrict_journal/static/description/banner.png deleted file mode 100644 index 666b61f..0000000 Binary files a/account_restrict_journal/static/description/banner.png and /dev/null differ diff --git a/account_restrict_journal/static/description/icon.png b/account_restrict_journal/static/description/icon.png deleted file mode 100644 index 440c7d2..0000000 Binary files a/account_restrict_journal/static/description/icon.png and /dev/null differ diff --git a/account_restrict_journal/views/account_move_views.xml b/account_restrict_journal/views/account_move_views.xml deleted file mode 100644 index 4c3f7bf..0000000 --- a/account_restrict_journal/views/account_move_views.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - account.move.form.inherit.account.restrict.journal - - account.move - extension - - - - - - - - diff --git a/account_restrict_journal/views/res_users_views.xml b/account_restrict_journal/views/res_users_views.xml deleted file mode 100644 index aa92468..0000000 --- a/account_restrict_journal/views/res_users_views.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - res.users.form.inherit.account.restrict.journal - - res.users - extension - - - - - - - - - - - - - diff --git a/pw_sale_total_qty/LICENSE b/pw_sale_total_qty/LICENSE deleted file mode 100644 index b01eaf1..0000000 --- a/pw_sale_total_qty/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -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/pw_sale_total_qty/__init__.py b/pw_sale_total_qty/__init__.py deleted file mode 100644 index 03c48c1..0000000 --- a/pw_sale_total_qty/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import models diff --git a/pw_sale_total_qty/__manifest__.py b/pw_sale_total_qty/__manifest__.py deleted file mode 100644 index eba0aa7..0000000 --- a/pw_sale_total_qty/__manifest__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -{ - "name": "Sale Order Total Quantity", - 'version': '16.0.1.0.1', - 'author': 'Preway IT Solutions', - 'category': 'Sales', - 'depends': ['sale'], - 'summary': 'This module helps you to show total qty, delivered qty, invoiced qty and remaining qty on sale order | Sale Order Total Quantity | Sale Total Qty | Total Quantity Of Sale Order Line', - 'description': """ -- Sale Order Total Quantity - """, - 'data': [ - "views/sale_order_view.xml", - ], - 'price': 3.0, - 'currency': "EUR", - 'application': True, - 'installable': True, - "license": "LGPL-3", - "images":["static/description/Banner.png"], -} diff --git a/pw_sale_total_qty/i18n/fr.po b/pw_sale_total_qty/i18n/fr.po deleted file mode 100644 index 8522be0..0000000 --- a/pw_sale_total_qty/i18n/fr.po +++ /dev/null @@ -1,61 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * pw_sale_total_qty -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-31 13:03+0000\n" -"PO-Revision-Date: 2024-12-31 13:03+0000\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_remaining_delivery -msgid "Pending Delivery Qty" -msgstr "Quantités à livrer" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_remaining_invoice -msgid "Pending Invoice Qty" -msgstr "Quantités à facturer" - -#. module: pw_sale_total_qty -#: model:ir.model,name:pw_sale_total_qty.model_sale_order -msgid "Sales Order" -msgstr "Bon de commande" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_total_qty_delivered -msgid "Total Delivered Qty" -msgstr "Total quantités livrées" - -#. module: pw_sale_total_qty -#: model_terms:ir.ui.view,arch_db:pw_sale_total_qty.view_order_form_inherit_pw_total_qty -msgid "Total Deliverted" -msgstr "Total quantités" - -#. module: pw_sale_total_qty -#: model_terms:ir.ui.view,arch_db:pw_sale_total_qty.view_order_form_inherit_pw_total_qty -msgid "Total Demand" -msgstr " Total commandé" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_total_product_uom_qty -msgid "Total Demand Qty" -msgstr " Total quantités commandées" - -#. module: pw_sale_total_qty -#: model_terms:ir.ui.view,arch_db:pw_sale_total_qty.view_order_form_inherit_pw_total_qty -msgid "Total Invoiced" -msgstr "Total facturé" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_total_qty_invoiced -msgid "Total Invoiced Qty" -msgstr "Total quantités facturées" diff --git a/pw_sale_total_qty/i18n/pw_sale_total_qty.pot b/pw_sale_total_qty/i18n/pw_sale_total_qty.pot deleted file mode 100644 index 9884208..0000000 --- a/pw_sale_total_qty/i18n/pw_sale_total_qty.pot +++ /dev/null @@ -1,61 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * pw_sale_total_qty -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 16.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-12-31 13:03+0000\n" -"PO-Revision-Date: 2024-12-31 13:03+0000\n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_remaining_delivery -msgid "Pending Delivery Qty" -msgstr "" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_remaining_invoice -msgid "Pending Invoice Qty" -msgstr "" - -#. module: pw_sale_total_qty -#: model:ir.model,name:pw_sale_total_qty.model_sale_order -msgid "Sales Order" -msgstr "" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_total_qty_delivered -msgid "Total Delivered Qty" -msgstr "" - -#. module: pw_sale_total_qty -#: model_terms:ir.ui.view,arch_db:pw_sale_total_qty.view_order_form_inherit_pw_total_qty -msgid "Total Deliverted" -msgstr "" - -#. module: pw_sale_total_qty -#: model_terms:ir.ui.view,arch_db:pw_sale_total_qty.view_order_form_inherit_pw_total_qty -msgid "Total Demand" -msgstr "" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_total_product_uom_qty -msgid "Total Demand Qty" -msgstr "" - -#. module: pw_sale_total_qty -#: model_terms:ir.ui.view,arch_db:pw_sale_total_qty.view_order_form_inherit_pw_total_qty -msgid "Total Invoiced" -msgstr "" - -#. module: pw_sale_total_qty -#: model:ir.model.fields,field_description:pw_sale_total_qty.field_sale_order__pw_total_qty_invoiced -msgid "Total Invoiced Qty" -msgstr "" diff --git a/pw_sale_total_qty/models/__init__.py b/pw_sale_total_qty/models/__init__.py deleted file mode 100644 index 0226d76..0000000 --- a/pw_sale_total_qty/models/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import sale_order diff --git a/pw_sale_total_qty/models/sale_order.py b/pw_sale_total_qty/models/sale_order.py deleted file mode 100644 index 9ccfcca..0000000 --- a/pw_sale_total_qty/models/sale_order.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -from odoo import models, fields, api, _ -from odoo.exceptions import UserError, ValidationError - - -class SaleOrder(models.Model): - _inherit = 'sale.order' - - pw_total_product_uom_qty = fields.Float(string="Total Demand Qty", compute='_compute_pw_total_product_uom_qty') - pw_total_qty_delivered = fields.Float(string="Total Delivered Qty", compute='_compute_pw_total_qty_delivered') - pw_total_qty_invoiced = fields.Float(string="Total Invoiced Qty", compute='_compute_pw_total_qty_invoiced') - pw_remaining_delivery = fields.Float(string="Pending Delivery Qty", compute="_compute_pw_remaining_delivery") - pw_remaining_invoice = fields.Float(string="Pending Invoice Qty", compute="_compute_pw_remaining_invoice") - - @api.depends('order_line.product_uom_qty') - def _compute_pw_total_product_uom_qty(self): - for order in self: - order.pw_total_product_uom_qty = sum(order.order_line.mapped('product_uom_qty')) - - @api.depends('order_line.qty_delivered') - def _compute_pw_total_qty_delivered(self): - for order in self: - order.pw_total_qty_delivered = sum(order.order_line.mapped('qty_delivered')) - - @api.depends('order_line.qty_invoiced') - def _compute_pw_total_qty_invoiced(self): - for order in self: - order.pw_total_qty_invoiced = sum(order.order_line.mapped('qty_invoiced')) - - @api.depends('order_line.product_uom_qty', 'order_line.qty_delivered') - def _compute_pw_remaining_delivery(self): - for order in self: - delivery_qty = sum(order.order_line.filtered(lambda x: x.product_id.type != 'service').mapped('product_uom_qty')) - delivered_qty = sum(order.order_line.mapped('qty_delivered')) - order.pw_remaining_delivery = delivery_qty - delivered_qty - - @api.depends('pw_total_product_uom_qty', 'pw_total_qty_invoiced') - def _compute_pw_remaining_invoice(self): - for order in self: - order.pw_remaining_invoice = order.pw_total_product_uom_qty - order.pw_total_qty_invoiced diff --git a/pw_sale_total_qty/static/description/Banner.png b/pw_sale_total_qty/static/description/Banner.png deleted file mode 100644 index 372a766..0000000 Binary files a/pw_sale_total_qty/static/description/Banner.png and /dev/null differ diff --git a/pw_sale_total_qty/static/description/icon.png b/pw_sale_total_qty/static/description/icon.png deleted file mode 100644 index d1a3fcc..0000000 Binary files a/pw_sale_total_qty/static/description/icon.png and /dev/null differ diff --git a/pw_sale_total_qty/static/description/index.html b/pw_sale_total_qty/static/description/index.html deleted file mode 100644 index e872605..0000000 --- a/pw_sale_total_qty/static/description/index.html +++ /dev/null @@ -1,45 +0,0 @@ -
-
-
-

Sale Order Total Quantity

-

This module helps you to show total qty, delivered qty, invoiced qty and remaining qty on sale order -

-
-
-
-

- -
-
- App Features -
-
    -
  • Show Total Demand Qty, Delivered and Invoiced Quantity on Sale Order
  • -
  • Show Remaining Delivery and Invoice Quantity on Sale Order
  • -
  • Also compatible with community and enterprise
  • -
-
- Sale Order Total Quantity -
-
Total Demand, Delivered, Invoiced, Pending Delivery and Pending Invoiced Quanatity on sale order. (Service product not count in pending delivery)
- -
- -
-
-
-
-

-
-

- Contact US -

-

Email : prewayit@gmail.com

-
-
-

Note: We give free support incase any bug or issue in our apps (Except data recovery).

-
-
-
diff --git a/pw_sale_total_qty/static/description/pw_logo.png b/pw_sale_total_qty/static/description/pw_logo.png deleted file mode 100644 index 3809ff5..0000000 Binary files a/pw_sale_total_qty/static/description/pw_logo.png and /dev/null differ diff --git a/pw_sale_total_qty/static/description/sale1.png b/pw_sale_total_qty/static/description/sale1.png deleted file mode 100644 index 26fe920..0000000 Binary files a/pw_sale_total_qty/static/description/sale1.png and /dev/null differ diff --git a/pw_sale_total_qty/views/sale_order_view.xml b/pw_sale_total_qty/views/sale_order_view.xml deleted file mode 100644 index c4487cd..0000000 --- a/pw_sale_total_qty/views/sale_order_view.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - sale.order.form.inherit.pw.total.qty - sale.order - - - - - - - - - - - - - Total Demand - - - Total Deliverted - - - Total Invoiced - - - - -