diff --git a/amount_currency_purchase/README.rst b/amount_currency_purchase/README.rst new file mode 100755 index 000000000..b724280cd --- /dev/null +++ b/amount_currency_purchase/README.rst @@ -0,0 +1,32 @@ +Company Currency Total in Purchase V11 +====================================== +This module will show you the total amount of the purchase order in company currency in the tree view + +Features +======== + +* Total amount in company currency in purchase order, RFQ, vendor bill and in creadit note + +Tech +==== +* [Python] - Models +* [XML] - Odoo views + +Installation +============ +- www.odoo.com/documentation/11.0/setup/install.html +- Install our custom addon + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + + +Developer: Tintuk Tomin @ cybrosys, odoo@cybrosys.com + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/amount_currency_purchase/__init__.py b/amount_currency_purchase/__init__.py new file mode 100644 index 000000000..cef8e7e09 --- /dev/null +++ b/amount_currency_purchase/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import models \ No newline at end of file diff --git a/amount_currency_purchase/__manifest__.py b/amount_currency_purchase/__manifest__.py new file mode 100644 index 000000000..6f7c6310f --- /dev/null +++ b/amount_currency_purchase/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies (). +# Authors: Tintuk Tomin () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': 'Company Currency Total in Purchase', + 'version': '11.0.1.0.0', + 'summary': 'View the total amount in company currency in Purchase', + 'description': 'amount in company currency ', + 'category': 'Purchases', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': [ + 'base', + 'account', + 'purchase', + ], + 'website': 'https://www.cybrosys.com', + 'data': [ + 'views/purchase_view.xml' + ], + 'qweb': [], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/amount_currency_purchase/doc/RELEASE_NOTES.md b/amount_currency_purchase/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..63bb07729 --- /dev/null +++ b/amount_currency_purchase/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.06.2019 +#### Version 11.0.1.0.0 +##### ADD +- Initial commit diff --git a/amount_currency_purchase/models/__init__.py b/amount_currency_purchase/models/__init__.py new file mode 100644 index 000000000..f9049af93 --- /dev/null +++ b/amount_currency_purchase/models/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import purchase \ No newline at end of file diff --git a/amount_currency_purchase/models/purchase.py b/amount_currency_purchase/models/purchase.py new file mode 100644 index 000000000..f1ea3561e --- /dev/null +++ b/amount_currency_purchase/models/purchase.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +import re + +from odoo import api, models, fields, _ + +class PurchaseCurrency(models.Model): + _inherit = 'purchase.order' + + company_currency_amount = fields.Float(string='Company Currency Total', compute='find_amount') + + def find_amount(self): + for this in self: + price = self.env['res.currency']._compute(this.currency_id, this.company_id.currency_id, this.amount_total) + this.company_currency_amount = price + diff --git a/amount_currency_purchase/static/description/amount-currency-purchase-cybrosys-1.png b/amount_currency_purchase/static/description/amount-currency-purchase-cybrosys-1.png new file mode 100644 index 000000000..062cc8997 Binary files /dev/null and b/amount_currency_purchase/static/description/amount-currency-purchase-cybrosys-1.png differ diff --git a/amount_currency_purchase/static/description/amount-currency-purchase-cybrosys-2.png b/amount_currency_purchase/static/description/amount-currency-purchase-cybrosys-2.png new file mode 100644 index 000000000..bbc573520 Binary files /dev/null and b/amount_currency_purchase/static/description/amount-currency-purchase-cybrosys-2.png differ diff --git a/amount_currency_purchase/static/description/banner.png b/amount_currency_purchase/static/description/banner.png new file mode 100644 index 000000000..d9026d01b Binary files /dev/null and b/amount_currency_purchase/static/description/banner.png differ diff --git a/amount_currency_purchase/static/description/icon.png b/amount_currency_purchase/static/description/icon.png new file mode 100644 index 000000000..07abbe89a Binary files /dev/null and b/amount_currency_purchase/static/description/icon.png differ diff --git a/amount_currency_purchase/static/description/index.html b/amount_currency_purchase/static/description/index.html new file mode 100644 index 000000000..59465d6a0 --- /dev/null +++ b/amount_currency_purchase/static/description/index.html @@ -0,0 +1,347 @@ +
+
+

+ Company Currency Total in Purchase +

+

+ Shows Total Amount in Company Currency +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies
+
+
+
+
+
+

+ Overview +

+

+ Do you have International Customers? + Are you getting confused among the vendor currency and your local company currency? + Here is the solution for you. + This app will give a view over the total amount of a single Purchase Order in your default company currency. +

+
+
+

+ Configuration +

+

+ No additional configuration required +

+
+
+ +
+
+

+ Features +

+

+ + Total purchase amount in company currency of the purchase quotation tree view. +

+

+ + Total purchase amount in company currency of the purchase order tree view. +

+ + Total purchase amount in company currency of the vendor bill tree view. +

+

+ + Total purchase amount in company currency of the vendor credit note tree view.

+
+
+
+
+

+ Screenshots +

+

+ + Purchase order tree view +

+
+ +
+

+ + Purchase Invoice tree view +

+
+ +
+
+
+ +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
\ No newline at end of file diff --git a/amount_currency_purchase/views/purchase_view.xml b/amount_currency_purchase/views/purchase_view.xml new file mode 100644 index 000000000..8c9306f7a --- /dev/null +++ b/amount_currency_purchase/views/purchase_view.xml @@ -0,0 +1,27 @@ + + + + + purchase.inherit.tree + purchase.order + + + + + + + + + account.vendor.invoice.inherit.tree + account.invoice + + + + + + + + + diff --git a/amount_currency_sale/README.rst b/amount_currency_sale/README.rst new file mode 100755 index 000000000..c18a3b60c --- /dev/null +++ b/amount_currency_sale/README.rst @@ -0,0 +1,32 @@ +Company Currency Total in Sale V11 +================================== +This module will show you the total amount of the sale order in company currency in the tree view + +Features +======== + +* Total amount in company currency in sale order, invoice and in creadit note + +Tech +==== +* [Python] - Models +* [XML] - Odoo views + +Installation +============ +- www.odoo.com/documentation/11.0/setup/install.html +- Install our custom addon + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + + +Developer: Tintuk Tomin @ cybrosys, odoo@cybrosys.com + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/amount_currency_sale/__init__.py b/amount_currency_sale/__init__.py new file mode 100644 index 000000000..cef8e7e09 --- /dev/null +++ b/amount_currency_sale/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import models \ No newline at end of file diff --git a/amount_currency_sale/__manifest__.py b/amount_currency_sale/__manifest__.py new file mode 100644 index 000000000..f7d7ffefd --- /dev/null +++ b/amount_currency_sale/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies (). +# Authors: Tintuk Tomin () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': 'Company Currency Total in Sale', + 'version': '11.0.1.0.0', + 'summary': 'View the total amount in company currency in Sale', + 'description': 'amount in company currency amount total in company currency total', + 'category': 'Sales', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': [ + 'base', + 'account', + 'sale_management', + ], + 'website': 'https://www.cybrosys.com', + 'data': [ + 'views/sale_view.xml' + ], + 'qweb': [], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/amount_currency_sale/doc/RELEASE_NOTES.md b/amount_currency_sale/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..63ecd728c --- /dev/null +++ b/amount_currency_sale/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.06.2019 +#### Version 11.0.1.0.0 +##### ADD +- Initial commit diff --git a/amount_currency_sale/models/__init__.py b/amount_currency_sale/models/__init__.py new file mode 100644 index 000000000..b8b1315ef --- /dev/null +++ b/amount_currency_sale/models/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import sale \ No newline at end of file diff --git a/amount_currency_sale/models/sale.py b/amount_currency_sale/models/sale.py new file mode 100644 index 000000000..8b8e736d7 --- /dev/null +++ b/amount_currency_sale/models/sale.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +import re + +from odoo import api, models, fields, _ + +class PurchaseCurrency(models.Model): + _inherit = 'sale.order' + + company_currency_amount = fields.Float(string='Company Currency Total', compute='find_amount') + + def find_amount(self): + print("In function") + for this in self: + price = self.env['res.currency']._compute(this.currency_id, this.company_id.currency_id, this.amount_total) + this.company_currency_amount = price + diff --git a/amount_currency_sale/static/description/amount-currency-sale-cybrosys-1.png b/amount_currency_sale/static/description/amount-currency-sale-cybrosys-1.png new file mode 100644 index 000000000..fbf1e59d0 Binary files /dev/null and b/amount_currency_sale/static/description/amount-currency-sale-cybrosys-1.png differ diff --git a/amount_currency_sale/static/description/amount-currency-sale-cybrosys-2.png b/amount_currency_sale/static/description/amount-currency-sale-cybrosys-2.png new file mode 100644 index 000000000..a5baf4846 Binary files /dev/null and b/amount_currency_sale/static/description/amount-currency-sale-cybrosys-2.png differ diff --git a/amount_currency_sale/static/description/banner.png b/amount_currency_sale/static/description/banner.png new file mode 100644 index 000000000..6153ed719 Binary files /dev/null and b/amount_currency_sale/static/description/banner.png differ diff --git a/amount_currency_sale/static/description/icon.png b/amount_currency_sale/static/description/icon.png new file mode 100644 index 000000000..8c5af3d57 Binary files /dev/null and b/amount_currency_sale/static/description/icon.png differ diff --git a/amount_currency_sale/static/description/index.html b/amount_currency_sale/static/description/index.html new file mode 100644 index 000000000..1aedc75f5 --- /dev/null +++ b/amount_currency_sale/static/description/index.html @@ -0,0 +1,347 @@ +
+
+

+ Company Currency Total in Sale +

+

+ Shows Total Amount in Company Currency +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies
+
+
+
+
+
+

+ Overview +

+

+ Do you have International Customers? Are you getting confused among the customer currency and your local company currency? + Here is the solution for you. + This app will give a view over the total amount of a single Sale Order in your default company currency. +

+
+
+

+ Configuration +

+

+ No additional configuration required +

+
+
+ +
+
+

+ Features +

+

+ + Total sale amount in company currency of the sales quotation tree view. +

+

+ + Total sale amount in company currency of the sale order tree view. +

+ + Total sale amount in company currency of the customer invoice tree view. +

+

+ + Total sale amount in company currency of the customer credit note tree view.

+
+
+
+
+

+ Screenshots +

+

+ + Sale order tree view +

+
+ +
+

+ + Customer Invoice tree view +

+
+ +
+
+ +
+ +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
\ No newline at end of file diff --git a/amount_currency_sale/views/sale_view.xml b/amount_currency_sale/views/sale_view.xml new file mode 100644 index 000000000..2bc14ede7 --- /dev/null +++ b/amount_currency_sale/views/sale_view.xml @@ -0,0 +1,39 @@ + + + + + sale.inherit.tree + sale.order + + + + + + + + + sale.inherit.tree + sale.order + + + + + + + + + account.invoice.inherit.tree + account.invoice + + + + + + + + + +