diff --git a/vendor_purchase_discount/README.rst b/vendor_purchase_discount/README.rst new file mode 100644 index 000000000..8876b9c9d --- /dev/null +++ b/vendor_purchase_discount/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Vendor Purchase Discount +======================== +Helps to manage vendor purchase discounts for products and default discount for vendors. + +Configuration +============= +* No additional configurations needed + +License +------- +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V16) Ajmunnisa KP, 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/vendor_purchase_discount/__init__.py b/vendor_purchase_discount/__init__.py new file mode 100644 index 000000000..2c04e1448 --- /dev/null +++ b/vendor_purchase_discount/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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/vendor_purchase_discount/__manifest__.py b/vendor_purchase_discount/__manifest__.py new file mode 100644 index 000000000..19468df88 --- /dev/null +++ b/vendor_purchase_discount/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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': 'Vendor Purchase Discount', + 'version': '16.0.1.0.0', + 'category': 'Purchases', + 'summary': """This module helps you to manage vendor purchase discounts + for products and default discount for vendors.""", + 'description': """It is possible to provide each vendor a default + discount percentage using this module. This default discount will be + applied each time a vendor is added to a product. The percentage of the + discount will be applied to the total amount when we create a purchase + order for the product from the vendor.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['purchase'], + 'data': [ + 'views/res_partner_views.xml', + 'views/product_supplierinfo_views.xml', + 'views/purchase_order_views.xml', + 'report/purchase_order_templates.xml' + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/vendor_purchase_discount/doc/RELEASE_NOTES.md b/vendor_purchase_discount/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..2d453b0e2 --- /dev/null +++ b/vendor_purchase_discount/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.12.2023 +#### Version 16.0.1.0.0 +##### ADD +- Initial Commit for Vendor Purchase Discount diff --git a/vendor_purchase_discount/models/__init__.py b/vendor_purchase_discount/models/__init__.py new file mode 100644 index 000000000..82f9014b6 --- /dev/null +++ b/vendor_purchase_discount/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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 product_supplier +from . import purchase_order +from . import purchase_order_line +from . import res_partner diff --git a/vendor_purchase_discount/models/product_supplier.py b/vendor_purchase_discount/models/product_supplier.py new file mode 100644 index 000000000..fd831a6d4 --- /dev/null +++ b/vendor_purchase_discount/models/product_supplier.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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 api, fields, models + + +class ProductSupplierInfo(models.Model): + """Inherits the model to include function to update the discount when + partner id is changed.""" + _inherit = "product.supplierinfo" + + discount = fields.Float(string="Discount (%)", help="Discount for the " + "supplier in " + "percentage") + _sql_constraints = [ + ( + "maximum_discount", + "CHECK (discount <= 100.0)", + "Discount must be lower than 100%.", + ) + ] + + @api.onchange("partner_id") + def _onchange_partner_id(self): + """Updates discount when partner id is changed. """ + for supplier in self.filtered("partner_id"): + supplier.write({'discount': supplier.partner_id.default_discount}) diff --git a/vendor_purchase_discount/models/purchase_order.py b/vendor_purchase_discount/models/purchase_order.py new file mode 100644 index 000000000..2e83033d0 --- /dev/null +++ b/vendor_purchase_discount/models/purchase_order.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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 api, models + + +class PurchaseOrder(models.Model): + """Inherits the purchase. order model to include the function to + recompute discount and prices when the partner is changed.""" + _inherit = 'purchase.order' + + @api.onchange('partner_id') + def _onchange_partner_id(self): + """Calls the calculate_discount_percentage function to compute the + prices when the partner is changed.""" + self.order_line._onchange_product_id() diff --git a/vendor_purchase_discount/models/purchase_order_line.py b/vendor_purchase_discount/models/purchase_order_line.py new file mode 100644 index 000000000..a17051c01 --- /dev/null +++ b/vendor_purchase_discount/models/purchase_order_line.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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 api, fields, models + + +class PurchaseOrderLine(models.Model): + """Inherits the purchase.order.line model to include functions to recompute + discount, total price etc """ + _inherit = 'purchase.order.line' + + discount = fields.Float(string="Discount (%)", help="Vendor's discount " + "for the product.") + _sql_constraints = [ + ( + "maximum_discount", + "CHECK (discount <= 100.0)", + "Discount must be lower than 100%.", + ) + ] + + @api.depends('product_qty', 'price_unit', 'taxes_id', 'discount') + def _compute_price_subtotal(self): + """ + Overrides the existing _compute_amount function to recompute the prices + when discount is changed + """ + for line in self: + tax_results = self.env['account.tax']. \ + _compute_taxes([line._convert_to_tax_base_line_dict()]) + totals = list(tax_results['totals'].values())[0] + amount_untaxed = totals['amount_untaxed'] + amount_tax = totals['amount_tax'] + line.update({ + 'price_subtotal': amount_untaxed, + 'price_tax': amount_tax, + 'price_total': amount_untaxed + amount_tax, + }) + + @api.onchange('product_id') + def _onchange_product_id(self): + """ + Compute the discount percentage when the product is changed + """ + for line in self: + for rec in line.product_id.product_tmpl_id.seller_ids: + if rec.partner_id == self.order_id.partner_id: + if rec.discount: + line.write({'discount': rec.discount}) + else: + if rec.partner_id.default_discount: + line.update( + {'discount': rec.partner_id.default_discount}) + else: + self.write({'discount': None}) + + def _prepare_account_move_line(self, move=False): + """Method for updating the discount amount in account move line""" + res = super()._prepare_account_move_line(move=False) + res.update({'discount': self.discount}) + return res + + def _get_discounted_price(self): + """ + Compute the price per unit after applying the discount + """ + self.ensure_one() + if self.discount: + return self.price_unit * (1 - self.discount / 100) + return self.price_unit + + def _convert_to_tax_base_line_dict(self): + """Overrides the existing _convert_to_tax_base_line_dict method to + compute the price_unit based on discount. Convert the current record + to a dictionary in order to use the generic taxes computation method + defined on account.tax. + :return: A python dictionary. + """ + self.ensure_one() + return self.env['account.tax']._convert_to_tax_base_line_dict( + self, + partner=self.order_id.partner_id, + currency=self.order_id.currency_id, + product=self.product_id, + taxes=self.taxes_id, + price_unit=self._get_discounted_price(), + quantity=self.product_qty, + price_subtotal=self.price_subtotal, + ) diff --git a/vendor_purchase_discount/models/res_partner.py b/vendor_purchase_discount/models/res_partner.py new file mode 100644 index 000000000..975470ba9 --- /dev/null +++ b/vendor_purchase_discount/models/res_partner.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ajmunnisa KP (odoo@cybrosys.com) +# +# 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 ResPartner(models.Model): + """ + Inherits the res. partner model to include default discount field + """ + _inherit = 'res.partner' + + default_discount = fields.Float(string='Discount(%)', help='Default ' + 'discount in ' + 'percentage.') + _sql_constraints = [ + ( + "maximum_discount", + "CHECK (discount <= 100.0)", + "Discount must be lower than 100%.", + ) + ] diff --git a/vendor_purchase_discount/report/purchase_order_templates.xml b/vendor_purchase_discount/report/purchase_order_templates.xml new file mode 100644 index 000000000..d9de26cfd --- /dev/null +++ b/vendor_purchase_discount/report/purchase_order_templates.xml @@ -0,0 +1,19 @@ + + + + + diff --git a/vendor_purchase_discount/static/description/assets/icons/check.png b/vendor_purchase_discount/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/check.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/chevron.png b/vendor_purchase_discount/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/chevron.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/cogs.png b/vendor_purchase_discount/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/cogs.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/consultation.png b/vendor_purchase_discount/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/consultation.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/ecom-black.png b/vendor_purchase_discount/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/ecom-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/education-black.png b/vendor_purchase_discount/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/education-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/hotel-black.png b/vendor_purchase_discount/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/hotel-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/license.png b/vendor_purchase_discount/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/license.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/lifebuoy.png b/vendor_purchase_discount/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/lifebuoy.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/logo.png b/vendor_purchase_discount/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/logo.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/manufacturing-black.png b/vendor_purchase_discount/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/manufacturing-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/pos-black.png b/vendor_purchase_discount/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/pos-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/puzzle.png b/vendor_purchase_discount/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/puzzle.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/restaurant-black.png b/vendor_purchase_discount/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/restaurant-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/service-black.png b/vendor_purchase_discount/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/service-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/trading-black.png b/vendor_purchase_discount/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/trading-black.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/training.png b/vendor_purchase_discount/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/training.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/update.png b/vendor_purchase_discount/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/update.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/user.png b/vendor_purchase_discount/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/user.png differ diff --git a/vendor_purchase_discount/static/description/assets/icons/wrench.png b/vendor_purchase_discount/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/icons/wrench.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/categories.png b/vendor_purchase_discount/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/categories.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/check-box.png b/vendor_purchase_discount/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/check-box.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/compass.png b/vendor_purchase_discount/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/compass.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/corporate.png b/vendor_purchase_discount/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/corporate.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/customer-support.png b/vendor_purchase_discount/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/customer-support.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/cybrosys-logo.png b/vendor_purchase_discount/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/cybrosys-logo.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/features.png b/vendor_purchase_discount/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/features.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/logo.png b/vendor_purchase_discount/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/logo.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/pictures.png b/vendor_purchase_discount/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/pictures.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/pie-chart.png b/vendor_purchase_discount/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/pie-chart.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/right-arrow.png b/vendor_purchase_discount/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/right-arrow.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/star.png b/vendor_purchase_discount/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/star.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/support.png b/vendor_purchase_discount/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/support.png differ diff --git a/vendor_purchase_discount/static/description/assets/misc/whatsapp.png b/vendor_purchase_discount/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/misc/whatsapp.png differ diff --git a/vendor_purchase_discount/static/description/assets/modules/1.png b/vendor_purchase_discount/static/description/assets/modules/1.png new file mode 100644 index 000000000..2917fdb13 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/1.png differ diff --git a/vendor_purchase_discount/static/description/assets/modules/2.png b/vendor_purchase_discount/static/description/assets/modules/2.png new file mode 100644 index 000000000..684f79115 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/2.png differ diff --git a/vendor_purchase_discount/static/description/assets/modules/3.png b/vendor_purchase_discount/static/description/assets/modules/3.png new file mode 100644 index 000000000..ea1c5e10b Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/3.png differ diff --git a/vendor_purchase_discount/static/description/assets/modules/4.gif b/vendor_purchase_discount/static/description/assets/modules/4.gif new file mode 100644 index 000000000..beb106101 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/4.gif differ diff --git a/vendor_purchase_discount/static/description/assets/modules/4.png b/vendor_purchase_discount/static/description/assets/modules/4.png new file mode 100644 index 000000000..191497755 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/4.png differ diff --git a/vendor_purchase_discount/static/description/assets/modules/5.png b/vendor_purchase_discount/static/description/assets/modules/5.png new file mode 100644 index 000000000..a345dc982 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/5.png differ diff --git a/vendor_purchase_discount/static/description/assets/modules/6.png b/vendor_purchase_discount/static/description/assets/modules/6.png new file mode 100644 index 000000000..965b50588 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/modules/6.png differ diff --git a/vendor_purchase_discount/static/description/assets/screenshots/Screenshot1.png b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..3b5a5a02f Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot1.png differ diff --git a/vendor_purchase_discount/static/description/assets/screenshots/Screenshot2.png b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..c4730fb5e Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot2.png differ diff --git a/vendor_purchase_discount/static/description/assets/screenshots/Screenshot3.png b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..349185d88 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot3.png differ diff --git a/vendor_purchase_discount/static/description/assets/screenshots/Screenshot4.png b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot4.png new file mode 100644 index 000000000..d3ad3af78 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/screenshots/Screenshot4.png differ diff --git a/vendor_purchase_discount/static/description/assets/screenshots/hero.gif b/vendor_purchase_discount/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7c3ec7a06 Binary files /dev/null and b/vendor_purchase_discount/static/description/assets/screenshots/hero.gif differ diff --git a/vendor_purchase_discount/static/description/banner.jpg b/vendor_purchase_discount/static/description/banner.jpg new file mode 100644 index 000000000..357109f30 Binary files /dev/null and b/vendor_purchase_discount/static/description/banner.jpg differ diff --git a/vendor_purchase_discount/static/description/icon.png b/vendor_purchase_discount/static/description/icon.png new file mode 100644 index 000000000..574d1e971 Binary files /dev/null and b/vendor_purchase_discount/static/description/icon.png differ diff --git a/vendor_purchase_discount/static/description/index.html b/vendor_purchase_discount/static/description/index.html new file mode 100644 index 000000000..a6e913565 --- /dev/null +++ b/vendor_purchase_discount/static/description/index.html @@ -0,0 +1,613 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+ +

+ Vendor Purchase Discount

+

+ This Module Helps You to Manage Vendor Purchase Discounts + for + Products and Default Discount for Vendors. + .

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

+ Explore This + Module

+
+ + + +
+
+ +
+

+ Overview +

+
+
+
+ Using this module, it is possible to offer each vendor a default + discount percentage. Every time a vendor is added to a product, + this default discount will be applied. When we create a purchase + order for the item from the seller, the percentage of the + discount will be applied to the overall amount. +
+
+ + +
+
+ +
+

+ Features +

+
+
+
+
+ + Default Discount can be added to Vendors. +
+
+ + Discount percentage will be available in vendor details + of a Product. +
+
+ + Discount applied when a Product purchased from the Vendor. +
+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Add Discount(%) for the Vendor.

+ +
+
+

+ Discount (%) automatically added for the Vendor of the + Product +

+ +
+
+

+ Discount (%) in purchase order line.

+

+ The Discount (%) will automatically be filled when + establishing a Purchase Order for a Product from a Vendor who is + offering a Purchase Discount. +

+ +
+
+

+ Discount(%) in Printed Purchase Order. +

+ +
+
+
+ + +
+
+ +
+

+ 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/vendor_purchase_discount/views/product_supplierinfo_views.xml b/vendor_purchase_discount/views/product_supplierinfo_views.xml new file mode 100644 index 000000000..655b2bb22 --- /dev/null +++ b/vendor_purchase_discount/views/product_supplierinfo_views.xml @@ -0,0 +1,31 @@ + + + + + + product.supplierinfo.view.tree.inherit.vendor.purchase.discount + + product.supplierinfo + + + + + + + + + + + product.supplierinfo.view.form.inherit.vendor.purchase.discount + + product.supplierinfo + + + + + + + + diff --git a/vendor_purchase_discount/views/purchase_order_views.xml b/vendor_purchase_discount/views/purchase_order_views.xml new file mode 100644 index 000000000..ebae5b9a5 --- /dev/null +++ b/vendor_purchase_discount/views/purchase_order_views.xml @@ -0,0 +1,17 @@ + + + + + + purchase.order.view.form.inherit.vendor.purchase.discount + + purchase.order + + + + + + + + diff --git a/vendor_purchase_discount/views/res_partner_views.xml b/vendor_purchase_discount/views/res_partner_views.xml new file mode 100644 index 000000000..9f587ba85 --- /dev/null +++ b/vendor_purchase_discount/views/res_partner_views.xml @@ -0,0 +1,17 @@ + + + + + + res.partner.view.form.inherit.vendor.purchase.discount + + res.partner + + + + + + + +