diff --git a/cancel_landed_cost_odoo/README.rst b/cancel_landed_cost_odoo/README.rst new file mode 100755 index 000000000..9b7bd52b1 --- /dev/null +++ b/cancel_landed_cost_odoo/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Cancel Landed Cost +======================= +This module helps to cancel Landed Costs and allows you to cancel multiple Landed Costs from the tree view. There are three ways in which you can cancel the Landed Costs. + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: ANFAS FAISAL K, 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: ``__ diff --git a/cancel_landed_cost_odoo/__init__.py b/cancel_landed_cost_odoo/__init__.py new file mode 100644 index 000000000..f03fb2c25 --- /dev/null +++ b/cancel_landed_cost_odoo/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Anfas Faisal K (odoo@cybrosys.info) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models diff --git a/cancel_landed_cost_odoo/__manifest__.py b/cancel_landed_cost_odoo/__manifest__.py new file mode 100644 index 000000000..58620f06b --- /dev/null +++ b/cancel_landed_cost_odoo/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Anfas Faisal K (odoo@cybrosys.info) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': "Cancel Landed Cost", + 'version': "16.0.1.0.0", + 'category': 'Purchases,Accounting,Warehouse', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'summary': 'This module helps to cancel landed costs', + 'description': 'This module helps to cancel Landed Costs and allows you ' + 'to cancel multiple Landed Costs from the tree view. There ' + 'are three ways in which you can cancel the Landed Costs' + 'Cancel Only, Cancel and Reset to Draft,Cancel and Delete', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['account', 'purchase', 'stock_landed_costs'], + 'data': [ + 'security/cancel_landed_cost_odoo_groups.xml', + 'data/stock_landed_cost_data.xml', + 'views/stock_landed_cost_views.xml', + 'views/res_config_settings_views.xml', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/cancel_landed_cost_odoo/data/stock_landed_cost_data.xml b/cancel_landed_cost_odoo/data/stock_landed_cost_data.xml new file mode 100644 index 000000000..2e922fc03 --- /dev/null +++ b/cancel_landed_cost_odoo/data/stock_landed_cost_data.xml @@ -0,0 +1,38 @@ + + + + + Cancel + + + + list,form + code + action = records.action_landed_cost_cancel() + + + + Cancel and Reset Draft + + + + list,form + code + action = records.action_landed_cost_reset_and_cancel() + + + + + Cancel and Delete + + + + list,form + code + action = records.action_landed_cost_cancel_and_delete() + + + diff --git a/cancel_landed_cost_odoo/doc/RELEASE_NOTES.md b/cancel_landed_cost_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..423016dbd --- /dev/null +++ b/cancel_landed_cost_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 15.11.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Cancel Landed Cost diff --git a/cancel_landed_cost_odoo/models/__init__.py b/cancel_landed_cost_odoo/models/__init__.py new file mode 100644 index 000000000..363b25915 --- /dev/null +++ b/cancel_landed_cost_odoo/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Anfas Faisal K (odoo@cybrosys.info) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import res_config_settings +from . import stock_landed_cost diff --git a/cancel_landed_cost_odoo/models/res_config_settings.py b/cancel_landed_cost_odoo/models/res_config_settings.py new file mode 100644 index 000000000..36046ab77 --- /dev/null +++ b/cancel_landed_cost_odoo/models/res_config_settings.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Anfas Faisal K (odoo@cybrosys.info) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """Model for managing the configuration settings for canceling landed + costs.""" + + _inherit = "res.config.settings" + + land_cost_cancel_modes = fields.Selection([ + ('cancel', 'Cancel'), + ('cancel_draft', 'Cancel and Reset to Draft'), + ('cancel_delete', 'Cancel and Delete'), + ], string='Operation Type', default='cancel', + help="Select the operation to perform when canceling a landed cost.", + config_parameter='cancel_landed_cost_odoo.land_cost_cancel_modes') diff --git a/cancel_landed_cost_odoo/models/stock_landed_cost.py b/cancel_landed_cost_odoo/models/stock_landed_cost.py new file mode 100644 index 000000000..15a681dcf --- /dev/null +++ b/cancel_landed_cost_odoo/models/stock_landed_cost.py @@ -0,0 +1,232 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Anfas Faisal K (odoo@cybrosys.info) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class StockLandedCost(models.Model): + """Inherits 'stock.landed.cost' model to add additional functionality + related to cancelling and resetting landed cost records. + + Methods: + action_landed_cost_cancel: Cancels the landed cost record by deleting + its associated accounting entries, stock valuation, and changes state + to 'cancelled. + + action_landed_cost_reset_and_cancel: Resets the landed cost record by + deleting its associated accounting entries and stock valuation. + It changes the state back to 'draft'. + + action_landed_cost_cancel_and_delete: Deletes the landed cost record by + deleting its associated accounting entries and stock valuation. It also + deletes the Landed cost record. + + action_landed_cost_cancel_form: Cancels the landed cost record and + deletes its associated accounting entries and stock valuation. + It also creates two entries to revert back to the original cost price, + which are also deleted in the process. + + """ + _inherit = 'stock.landed.cost' + + is_cancel = fields.Boolean(string='Cancel', default=False, + help='If the user clicks the "Cancel" button' + 'once, it will hide the button and make' + 'it invisible.') + + def action_landed_cost_cancel(self): + """Cancels the landed cost record by deleting its associated + accounting entries, stock valuation, and changes state to 'cancelled'. + + Additionally, it reverts the original cost price by creating two + entries, which are also deleted in the process. + """ + for rec in self: + for line in rec.valuation_adjustment_lines.filtered( + lambda line: line.move_id): + product = line.move_id.product_id + if product.cost_method == 'average': + original_price = product.standard_price + new_price = product.standard_price - line.additional_landed_cost + product.write({'standard_price': new_price}) + stock_valuation_layer = self.env['stock.valuation.layer'] \ + .search([('product_id', '=', product.id), + ('description', '=', f'Product value manually ' + f'modified (from {original_price} to {new_price})')], + limit=1) + if stock_valuation_layer: + stock_valuation_layer.account_move_id.button_draft() + stock_valuation_layer.account_move_id.sudo().unlink() + stock_valuation_layer.sudo().unlink() + if rec.account_move_id: + account_id = rec.account_move_id + account_move_ids = account_id.line_ids + if account_move_ids: + account_id.sudo().write( + {'state': 'draft', 'name': 'Delete Sequence Number'}) + account_move_ids.sudo().unlink() + account_id.sudo().unlink() + if rec.valuation_adjustment_lines: + rec.valuation_adjustment_lines.unlink() + if rec.stock_valuation_layer_ids: + rec.stock_valuation_layer_ids.sudo().unlink() + rec.write({'state': 'cancel'}) + + def action_landed_cost_reset_and_cancel(self): + """Resets the landed cost record by deleting its associated accounting + entries and stock valuation. It changes the state back to 'draft'. + + Additionally, it reverts the original cost price by creating two entries, + which are also deleted in the process. + """ + for rec in self: + for line in rec.valuation_adjustment_lines.filtered( + lambda line: line.move_id): + product = line.move_id.product_id + if product.cost_method == 'average': + original_price = product.standard_price + new_price = product.standard_price - line.additional_landed_cost + product.write({'standard_price': new_price}) + stock_valuation_layer = self.env['stock.valuation.layer'] \ + .search([('product_id', '=', product.id), + ('description', '=', f'Product value manually ' + f'modified (from {original_price} to {new_price})')], + limit=1) + if stock_valuation_layer: + stock_valuation_layer.account_move_id.button_draft() + stock_valuation_layer.account_move_id.sudo().unlink() + stock_valuation_layer.sudo().unlink() + if rec.account_move_id: + account_id = rec.account_move_id + account_move_ids = account_id.line_ids + if account_move_ids: + account_id.sudo().write( + {'state': 'draft', 'name': 'Delete Sequence Number'}) + account_move_ids.sudo().unlink() + account_id.sudo().unlink() + if rec.valuation_adjustment_lines: + rec.valuation_adjustment_lines.unlink() + if rec.stock_valuation_layer_ids: + rec.sudo().stock_valuation_layer_ids.unlink() + rec.write({'state': 'draft'}) + + def action_landed_cost_cancel_and_delete(self): + """Deletes the landed cost record by deleting its associated accounting + entries and stock valuation. It also deletes the Landed cost record. + + Additionally, it reverts the original cost price by creating two + entries, which are also deleted in the process. + """ + for rec in self: + for line in rec.valuation_adjustment_lines.filtered( + lambda line: line.move_id): + product = line.move_id.product_id + if product.cost_method == 'average': + original_price = product.standard_price + new_price = product.standard_price - line.additional_landed_cost + product.write({'standard_price': new_price}) + stock_valuation_layer = self.env['stock.valuation.layer'] \ + .search([('product_id', '=', product.id), + ('description', '=', f'Product value manually ' + f'modified (from {original_price} to {new_price})')], + limit=1) + if stock_valuation_layer: + stock_valuation_layer.account_move_id.button_draft() + stock_valuation_layer.account_move_id.sudo().unlink() + stock_valuation_layer.sudo().unlink() + if rec.account_move_id: + account_id = rec.account_move_id + account_move_ids = account_id.line_ids + if account_move_ids: + account_id.sudo().write( + {'state': 'draft', 'name': 'Delete Sequence Number'}) + account_move_ids.sudo().unlink() + account_id.sudo().unlink() + if rec.valuation_adjustment_lines: + rec.valuation_adjustment_lines.unlink() + if rec.stock_valuation_layer_ids: + rec.sudo().stock_valuation_layer_ids.unlink() + rec.write({'state': 'cancel'}) + rec.unlink() + + def action_landed_cost_cancel_form(self): + """Cancels the landed cost record and deletes its associated + accounting entries and stock valuation. It also creates two entries + to revert back to the original cost price, which are also deleted in + the process. + + The specific action performed depends on the value of the + 'cancel_landed_cost_odoo.land_cost_cancel_modes' + configuration parameter: + - 'cancel': Changes the landed cost state to 'cancel' and sets + the 'is_cancel' flag to True. + - 'cancel_draft': Changes the landed cost state to 'draft' + and sets the 'is_cancel' flag to False. + - 'cancel_delete': Deletes the landed cost record and returns an + action to open the Landed Cost tree view. + """ + for rec in self: + for line in rec.valuation_adjustment_lines.filtered( + lambda line: line.move_id): + product = line.move_id.product_id + if product.cost_method == 'average': + original_price = product.standard_price + new_price = product.standard_price - line.additional_landed_cost + product.write({'standard_price': new_price}) + stock_valuation_layer = self.env['stock.valuation.layer'] \ + .search([('product_id', '=', product.id), + ('description', '=', f'Product value manually ' + f'modified (from {original_price} to {new_price})')], + limit=1) + if stock_valuation_layer: + stock_valuation_layer.account_move_id.button_draft() + stock_valuation_layer.account_move_id.sudo().unlink() + stock_valuation_layer.sudo().unlink() + if self.account_move_id: + account_id = self.account_move_id + account_move_ids = account_id.line_ids + if account_move_ids: + account_id.sudo().write( + {'state': 'draft', 'name': 'Delete Sequence Number'}) + account_move_ids.sudo().unlink() + account_id.sudo().unlink() + if self.valuation_adjustment_lines: + self.valuation_adjustment_lines.unlink() + if self.stock_valuation_layer_ids: + self.sudo().stock_valuation_layer_ids.unlink() + landed_mode = self.env['ir.config_parameter'].sudo().get_param( + 'cancel_landed_cost_odoo.land_cost_cancel_modes') + if landed_mode == 'cancel': + self.write({'state': 'cancel'}) + self.is_cancel = True + if landed_mode == 'cancel_draft': + self.write({'state': 'draft'}) + self.is_cancel = False + if landed_mode == 'cancel_delete': + self.write({'state': 'cancel'}) + self.unlink() + return { + 'name': 'Landed Cost', + 'type': 'ir.actions.act_window', + 'res_model': 'stock.landed.cost', + 'view_mode': 'tree,form', + 'target': 'current' + } diff --git a/cancel_landed_cost_odoo/security/cancel_landed_cost_odoo_groups.xml b/cancel_landed_cost_odoo/security/cancel_landed_cost_odoo_groups.xml new file mode 100644 index 000000000..4098d7d09 --- /dev/null +++ b/cancel_landed_cost_odoo/security/cancel_landed_cost_odoo_groups.xml @@ -0,0 +1,8 @@ + + + + + Landed Cost Cancel Features + + + diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/check.png b/cancel_landed_cost_odoo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/check.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/chevron.png b/cancel_landed_cost_odoo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/chevron.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/cogs.png b/cancel_landed_cost_odoo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/cogs.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/consultation.png b/cancel_landed_cost_odoo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/consultation.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/ecom-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/education-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/education-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/hotel-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/license.png b/cancel_landed_cost_odoo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/license.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/lifebuoy.png b/cancel_landed_cost_odoo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/manufacturing-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/pos-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/pos-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/puzzle.png b/cancel_landed_cost_odoo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/puzzle.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/restaurant-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/service-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/service-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/trading-black.png b/cancel_landed_cost_odoo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/trading-black.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/training.png b/cancel_landed_cost_odoo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/training.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/update.png b/cancel_landed_cost_odoo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/update.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/user.png b/cancel_landed_cost_odoo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/user.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/icons/wrench.png b/cancel_landed_cost_odoo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/icons/wrench.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/categories.png b/cancel_landed_cost_odoo/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/categories.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/check-box.png b/cancel_landed_cost_odoo/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/check-box.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/compass.png b/cancel_landed_cost_odoo/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/compass.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/corporate.png b/cancel_landed_cost_odoo/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/corporate.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/customer-support.png b/cancel_landed_cost_odoo/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/customer-support.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/cybrosys-logo.png b/cancel_landed_cost_odoo/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/cybrosys-logo.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/features.png b/cancel_landed_cost_odoo/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/features.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/logo.png b/cancel_landed_cost_odoo/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/logo.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/pictures.png b/cancel_landed_cost_odoo/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/pictures.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/pie-chart.png b/cancel_landed_cost_odoo/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/pie-chart.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/right-arrow.png b/cancel_landed_cost_odoo/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/right-arrow.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/star.png b/cancel_landed_cost_odoo/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/star.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/support.png b/cancel_landed_cost_odoo/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/support.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/misc/whatsapp.png b/cancel_landed_cost_odoo/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/misc/whatsapp.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/modules/1.png b/cancel_landed_cost_odoo/static/description/assets/modules/1.png new file mode 100644 index 000000000..6cc0986f2 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/modules/1.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/modules/2.png b/cancel_landed_cost_odoo/static/description/assets/modules/2.png new file mode 100644 index 000000000..7b0ac4b33 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/modules/2.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/modules/3.png b/cancel_landed_cost_odoo/static/description/assets/modules/3.png new file mode 100644 index 000000000..ae32f480b Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/modules/3.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/modules/4.png b/cancel_landed_cost_odoo/static/description/assets/modules/4.png new file mode 100644 index 000000000..d9374733c Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/modules/4.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/modules/5.png b/cancel_landed_cost_odoo/static/description/assets/modules/5.png new file mode 100644 index 000000000..c3a620a56 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/modules/5.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/modules/6.png b/cancel_landed_cost_odoo/static/description/assets/modules/6.png new file mode 100644 index 000000000..a29119785 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/modules/6.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/.gif.zip b/cancel_landed_cost_odoo/static/description/assets/screenshots/.gif.zip new file mode 100644 index 000000000..86c278389 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/.gif.zip differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/10.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..deabeba70 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/10.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/11.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..36d5bdc65 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/11.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/12.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..2f8306924 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/12.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/13.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..67ca047b1 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/13.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/14.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..4219cff61 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/14.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/15.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/15.png new file mode 100644 index 000000000..b6519456b Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/15.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/16.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/16.png new file mode 100644 index 000000000..94cab5d30 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/16.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/17.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/17.png new file mode 100644 index 000000000..9ca5fa29f Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/17.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/18.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/18.png new file mode 100644 index 000000000..042a3e100 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/18.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/19.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/19.png new file mode 100644 index 000000000..99f124c74 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/19.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/2.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..c94c3d411 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/2.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/20.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/20.png new file mode 100644 index 000000000..892fefdf0 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/20.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/21.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/21.png new file mode 100644 index 000000000..c349b3d3f Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/21.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/22.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/22.png new file mode 100644 index 000000000..fea24ce1e Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/22.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/23.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/23.png new file mode 100644 index 000000000..87734620d Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/23.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/24.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/24.png new file mode 100644 index 000000000..e31f51228 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/24.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/3.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..b7592e066 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/3.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/4.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..9990e6cb7 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/4.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/5.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..90927b133 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/5.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/6.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..9ae800e66 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/6.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/7.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..cb492a194 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/7.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/8.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..08fe6d5f0 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/8.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/9.png b/cancel_landed_cost_odoo/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..422bb28bc Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/9.png differ diff --git a/cancel_landed_cost_odoo/static/description/assets/screenshots/cancel-landed-cost-odoo-gif.gif b/cancel_landed_cost_odoo/static/description/assets/screenshots/cancel-landed-cost-odoo-gif.gif new file mode 100644 index 000000000..3a71ab0cb Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/assets/screenshots/cancel-landed-cost-odoo-gif.gif differ diff --git a/cancel_landed_cost_odoo/static/description/banner.png b/cancel_landed_cost_odoo/static/description/banner.png new file mode 100644 index 000000000..c49c24d8d Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/banner.png differ diff --git a/cancel_landed_cost_odoo/static/description/icon.png b/cancel_landed_cost_odoo/static/description/icon.png new file mode 100644 index 000000000..8180c3c05 Binary files /dev/null and b/cancel_landed_cost_odoo/static/description/icon.png differ diff --git a/cancel_landed_cost_odoo/static/description/index.html b/cancel_landed_cost_odoo/static/description/index.html new file mode 100644 index 000000000..ee514056a --- /dev/null +++ b/cancel_landed_cost_odoo/static/description/index.html @@ -0,0 +1,842 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Cancel Landed Cost +

+

+ This Module Allows You To Cancel Multiple Landed Costs From The Tree View And Provides Three Ways In Which You Can Cancel The Landed Costs +

+ + +
+
+
+
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module helps to cancel Landed Costs and allows you to cancel + multiple Landed Costs from the tree view. There are three ways in which + you can cancel the Landed Costs. +
    +
  • + 1) Cancel Only: When you Cancel the Landed cost then the landed + cost is cancelled and the state is changed to Cancelled. +
  • +
  • + 2) Cancel and Reset to Draft: When you cancel landed costs, + First Landed Costs is Cancelled and then Reset to the Draft + state. +
  • +
  • + 3) Cancel and Delete: When you Cancel the Landed costs then + First Landed Cost is Cancelled and then Landed Cost will be + deleted. +
  • +
+ + + + +
+
+ +
+

+ Features +

+
+
+
+ + This module helps to cancel Landed Costs and allows you to cancel multiple Landed Costs from the tree view. + There are three ways in which you can cancel the Landed Costs. + +
+
+ + Deleting landed costs entirely can be helpful in cases of error or irrelevance. +
+ +
+ + Resetting landed costs to draft status enables changes to be made and resubmission for review. + +
+ +
+ + Canceling landed costs with journal entries ensures accurate accounting record-keeping. + + + + +
+ +
+ + These features help businesses streamline inventory and expense management. + + + + +
+ +
+ + Accurate tracking of landed costs can improve inventory management. + + +
+
+
+ + +
+ + + +
+
+ +
+

+ Screenshots +

+
+ + +
+
+ +
+

+ Tick The "Landed Cost Cancel Features" To Cancel The + Landed cost. +

+ +
+ +
+

+ To Cancel The Landed Costs, Select Your Preferred Cancellation Method For The Landed Cost Option, And Then Save The Changes. +

+ +
+
+

+ Landed Cost Creation(Odoo Standard). +

+ +
+ +
+

+ Stock Valuation Of Product When Landed Cost Is Created. +

+ +
+ + +
+

+ The Journal Entry Of The Landed Cost(Odoo Standard). +

+ + +
+ +
+

+ Press The "CANCEL" Button To Cancel Landed Costs. +

+ +
+ +
+

+ When You Cancel The Landed Costs Then The Landed Cost Is + Cancelled And The State Is Changed To "CANCELLED" And + Valuation Adjustments Lines Are Deleted. +

+ +
+ +
+

+ Corresponding Stock Valuation Is Deleted From The + Records. +

+ +
+ +
+

+ Corresponding Journal Entries Are Deleted. +

+ +
+ +
+

+ When You Want To Cancel The Landed Costs And Reset To + The Draft State Tick "Cancel and Reset to Draft". +

+ +
+
+

+ Press The "CANCEL" Button To Cancel Landed Costs " . + +

+
+ + +
+

+ When You Cancel The Landed Costs Then The Landed Cost Is + Reset And The State Is Changed Back To "DRAFT". +

+ +
+ +
+

+ When You Want To Cancel & Delete The Landed Costs Then + Choose The "Cancel and Delete" Option. +

+ +
+ +
+

+ Press The "CANCEL" Button To Cancel Landed Costs. +

+ +
+
+

+ After The "CANCEL" The Corresponding Landed Cost Will Be + Deleted. +

+ +
+
+

+ We Can Cancel Multiple Landed Costs From The Tree View. +

+ +
+ +
+

+ Select The Landed Cost You Want To Cancel And Click + "Cancel" Button. +

+ +
+ +
+

+ All Selected Landed Costs Are Cancelled. +

+ +
+
+

+ Select The Landed Cost You Want To Cancel&Reset And + Click "Cancel and Reset Draft" Button. +

+ +
+ +
+

+ All Selected Landed Costs Changed to Draft State. +

+ +
+ +
+

+ Select the Landed Cost You Want To Cancel&Delete and + Click "Cancel and Delete" Button. +

+ +
+ +
+

+ All Landed Costs Will Be Deleted After Cancelled. +

+ +
+ +
+
+ + + +
+
+ +
+

+ Related + Products +

+
+
+
+ +
+
+ + + + +
+
+ +
+

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need + help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on + WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+
+
+ + \ No newline at end of file diff --git a/cancel_landed_cost_odoo/views/res_config_settings_views.xml b/cancel_landed_cost_odoo/views/res_config_settings_views.xml new file mode 100644 index 000000000..83c2276aa --- /dev/null +++ b/cancel_landed_cost_odoo/views/res_config_settings_views.xml @@ -0,0 +1,37 @@ + + + + + + res.config.settings.view.form.inherit.cancel.landed.cost.odoo + + res.config.settings + + + +

+ Landed Cost Cancel Configuration +

+
+
+
+
+ Operation type: +
+ Options to Cancel Landed Cost +
+
+
+ +
+
+
+
+
+
+
+
+
+
diff --git a/cancel_landed_cost_odoo/views/stock_landed_cost_views.xml b/cancel_landed_cost_odoo/views/stock_landed_cost_views.xml new file mode 100644 index 000000000..184a935a1 --- /dev/null +++ b/cancel_landed_cost_odoo/views/stock_landed_cost_views.xml @@ -0,0 +1,24 @@ + + + + + + stock.landed.cost.view.form.inherit.cancel.landed.cost.odoo + + stock.landed.cost + + + +