diff --git a/sale_purchase_previous_product_cost/README.rst b/sale_purchase_previous_product_cost/README.rst new file mode 100644 index 000000000..288563f20 --- /dev/null +++ b/sale_purchase_previous_product_cost/README.rst @@ -0,0 +1,47 @@ +Previous Sale/Purchase Product Rates V15 +======================================== +This module enables a view to see all previous sale/purchase product rates of selected customer. + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Nilamr Shereef @cybrosys, odoo@cybrosys.com, + V11 Niyas Raphy @cybrosys, odoo@cybrosys.com, + V12 Vinaya S B odoo@cybrosys.com, + V13 Mehjabin Farsana P @cybrosys,odoo@cybrosys.com, + V14 Minhaj T @cybrosys,odoo@cybrosys.com, + V15 Midilaj V K @cybrosys,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/sale_purchase_previous_product_cost/__init__.py b/sale_purchase_previous_product_cost/__init__.py new file mode 100644 index 000000000..f2c5a4636 --- /dev/null +++ b/sale_purchase_previous_product_cost/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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/sale_purchase_previous_product_cost/__manifest__.py b/sale_purchase_previous_product_cost/__manifest__.py new file mode 100644 index 000000000..3f41fbac0 --- /dev/null +++ b/sale_purchase_previous_product_cost/__manifest__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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": "Previous Sale/Purchase Product Rates", + 'version': '15.0.1.0.0', + "summary": """Provide Product's Previous Sale & Purchase Price History for Partner.""", + "description": """Provide product's previous prices in product master.""", + "category": "Sales", + 'author': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + "depends": ['sale', 'sale_management', 'purchase'], + "data": ['views/sale_order_view.xml'], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/sale_purchase_previous_product_cost/doc/RELEASE_NOTES.md b/sale_purchase_previous_product_cost/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..ce6788b14 --- /dev/null +++ b/sale_purchase_previous_product_cost/doc/RELEASE_NOTES.md @@ -0,0 +1,9 @@ +## Module + +#### 30.11.2021 +#### Version 15.0.1.0.0 +#### ADD +Initial Commit Previous Sale/Purchase Product Rates + + + diff --git a/sale_purchase_previous_product_cost/models/__init__.py b/sale_purchase_previous_product_cost/models/__init__.py new file mode 100644 index 000000000..1595f8816 --- /dev/null +++ b/sale_purchase_previous_product_cost/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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 sale_order diff --git a/sale_purchase_previous_product_cost/models/sale_order.py b/sale_purchase_previous_product_cost/models/sale_order.py new file mode 100644 index 000000000..c77b742b4 --- /dev/null +++ b/sale_purchase_previous_product_cost/models/sale_order.py @@ -0,0 +1,113 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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 models, api, fields +from odoo.exceptions import UserError + + +class SaleOrderLine(models.Model): + _inherit = 'sale.order.line' + + sale_date = fields.Datetime(comodel_name='sale.order', string='Sale Date', + related='order_id.date_order', store=True) + + def get_product_form(self): + self.product_id.order_partner_id = self.order_id.partner_id.id + return { + 'name': self.product_id.name, + 'view_mode': 'form', + 'res_model': 'product.product', + 'type': 'ir.actions.act_window', + 'target': 'current', + 'res_id': self.product_id.id + } + + +class PurchaseOrderLine(models.Model): + _inherit = 'purchase.order.line' + + purchase_date = fields.Datetime(comodel_name='purchase.order', string='Purchase Date', + related='order_id.date_order', store=True) + + def get_product_form(self): + self.product_id.order_partner_id = self.order_id.partner_id.id + return { + 'name': self.product_id.name, + 'view_mode': 'form', + 'res_model': 'product.product', + 'type': 'ir.actions.act_window', + 'target': 'current', + 'res_id': self.product_id.id + } + + +class ProductTemplate(models.Model): + _inherit = "product.product" + + order_partner_id = fields.Many2one('res.partner', string="Partner") + + def action_sale_product_prices(self): + rel_view_id = self.env.ref( + 'sale_purchase_previous_product_cost.last_sale_product_prices_view') + if self.order_partner_id.id: + sale_lines = self.env['sale.order.line'].search([('product_id', '=', self.id), + ('order_partner_id', '=', self.order_partner_id.id)], + order='create_date DESC').mapped('id') + else: + sale_lines = self.env['sale.order.line'].search([('product_id', '=', self.id)], + order='create_date DESC').mapped('id') + if not sale_lines: + raise UserError("No sales history found.!") + else: + return { + 'domain': [('id', 'in', sale_lines)], + 'views': [(rel_view_id.id, 'tree')], + 'name': 'Sales History', + 'res_model': 'sale.order.line', + 'view_id': False, + 'type': 'ir.actions.act_window', + } + + def action_purchase_product_prices(self): + rel_view_id = self.env.ref( + 'sale_purchase_previous_product_cost.last_sale_product_purchase_prices_view') + if self.order_partner_id.id: + purchase_lines = self.env['purchase.order.line'].search([('product_id', '=', self.id), + ('partner_id', '=', self.order_partner_id.id)], + order='create_date DESC').mapped('id') + else: + purchase_lines = self.env['purchase.order.line'].search([('product_id', '=', self.id)], + order='create_date DESC').mapped('id') + if not purchase_lines: + raise UserError("No purchase history found.!") + else: + return { + 'domain': [('id', 'in', purchase_lines)], + 'views': [(rel_view_id.id, 'tree')], + 'name': 'Purchase History', + 'res_model': 'purchase.order.line', + 'view_id': False, + 'type': 'ir.actions.act_window', + } + + + + diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/check.png b/sale_purchase_previous_product_cost/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/check.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/chevron.png b/sale_purchase_previous_product_cost/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/chevron.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/cogs.png b/sale_purchase_previous_product_cost/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/cogs.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/consultation.png b/sale_purchase_previous_product_cost/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/consultation.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/ecom-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/ecom-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/education-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/education-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/hotel-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/hotel-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/license.png b/sale_purchase_previous_product_cost/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/license.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/lifebuoy.png b/sale_purchase_previous_product_cost/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/lifebuoy.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/logo (1).png b/sale_purchase_previous_product_cost/static/description/assets/icons/logo (1).png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/logo (1).png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/manufacturing-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/manufacturing-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/pos-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/pos-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/puzzle.png b/sale_purchase_previous_product_cost/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/puzzle.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/restaurant-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/restaurant-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/service-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/service-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/trading-black.png b/sale_purchase_previous_product_cost/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/trading-black.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/training.png b/sale_purchase_previous_product_cost/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/training.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/update.png b/sale_purchase_previous_product_cost/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/update.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/user.png b/sale_purchase_previous_product_cost/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/user.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/icons/wrench.png b/sale_purchase_previous_product_cost/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/icons/wrench.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/1.png b/sale_purchase_previous_product_cost/static/description/assets/modules/1.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/1.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/2.png b/sale_purchase_previous_product_cost/static/description/assets/modules/2.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/2.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/3.png b/sale_purchase_previous_product_cost/static/description/assets/modules/3.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/3.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/4.png b/sale_purchase_previous_product_cost/static/description/assets/modules/4.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/4.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/5.png b/sale_purchase_previous_product_cost/static/description/assets/modules/5.png new file mode 100644 index 000000000..cfb5be33c Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/5.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/6.png b/sale_purchase_previous_product_cost/static/description/assets/modules/6.png new file mode 100644 index 000000000..f01b10060 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/6.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/approval_image.png b/sale_purchase_previous_product_cost/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/approval_image.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/dynamic_image.png b/sale_purchase_previous_product_cost/static/description/assets/modules/dynamic_image.png new file mode 100644 index 000000000..f55c47e0f Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/dynamic_image.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/list_view_image.png b/sale_purchase_previous_product_cost/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..510d36ae9 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/list_view_image.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/multiple_ref_image.png b/sale_purchase_previous_product_cost/static/description/assets/modules/multiple_ref_image.png new file mode 100644 index 000000000..3fe90e552 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/multiple_ref_image.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/print_image.png b/sale_purchase_previous_product_cost/static/description/assets/modules/print_image.png new file mode 100644 index 000000000..b470725a1 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/print_image.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/modules/product_return_image.png b/sale_purchase_previous_product_cost/static/description/assets/modules/product_return_image.png new file mode 100644 index 000000000..3afc14722 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/modules/product_return_image.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/hero.gif b/sale_purchase_previous_product_cost/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c27fc1d43 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/hero.gif differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot1.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..4cf820cd4 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot1.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot2.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..8af48222e Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot2.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot3.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..2eeca67dd Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot3.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot4.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..9740e11d6 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot4.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot5.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..20fc53f85 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot5.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot6.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..8dedad9f3 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot6.png differ diff --git a/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot7.png b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..353429071 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/assets/screenshots/screenshot7.png differ diff --git a/sale_purchase_previous_product_cost/static/description/banner.png b/sale_purchase_previous_product_cost/static/description/banner.png new file mode 100644 index 000000000..c4b3a2088 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/banner.png differ diff --git a/sale_purchase_previous_product_cost/static/description/icon.png b/sale_purchase_previous_product_cost/static/description/icon.png new file mode 100644 index 000000000..74c0273d8 Binary files /dev/null and b/sale_purchase_previous_product_cost/static/description/icon.png differ diff --git a/sale_purchase_previous_product_cost/static/description/index.html b/sale_purchase_previous_product_cost/static/description/index.html new file mode 100644 index 000000000..91800f738 --- /dev/null +++ b/sale_purchase_previous_product_cost/static/description/index.html @@ -0,0 +1,614 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+ +
+
+
+

+ Previous Sale/Purchase Product Rates

+

+ Provide Product's Previous Sale & Purchase Price History +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module enables a view to see all previous sale/purchase product rates of selected customer. + It will help you to manage your orders according to these price history. You can see these option from + sale/purchase form.

+ +
+
+ +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Previous sale price history

+
+
+ +
+
+ +
+
+

+ Previous purchase price history

+
+
+ +
+
+ +
+
+

+ Provide product's previous prices in product page

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+ +
+

+ Sale/Purchase order form view

+

+ Go to Sale/Purchase Order Form, add products and by clicking the external icon button user can open the + product form view in full window.

+ + + + +
+ +
+

+ Product form view

+

+ In product form you can see a new tab named "Previous Price History". + In this tab 'Partner' field already filled with the partner name which you are selected in sale/purchase + form. + You have also an option to change this 'Partner'. +

+ + +
+ +
+

+ Sales History

+

+ To see previous sale price history please click on the button name 'Previous Sale Rates'. +

+ + + +
+ +
+

+ Purchase History

+

+ To see previous purchase price history please click on the button name 'Previous Purchase Rates'. +

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

Suggested 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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/sale_purchase_previous_product_cost/views/sale_order_view.xml b/sale_purchase_previous_product_cost/views/sale_order_view.xml new file mode 100644 index 000000000..5bbdad668 --- /dev/null +++ b/sale_purchase_previous_product_cost/views/sale_order_view.xml @@ -0,0 +1,92 @@ + + + + + last.product.prices.view + sale.order.line + + + + + + + + + + + + + + + + last.product.purchase_prices.view + purchase.order.line + + + + + + + + + + + + + + + + product_extended.product.form.view + product.product + 3 + + + + + + + + + + + +