Browse Source

[ADD] Inital commit 'product_to_invoice'

pull/179/head
Ajmal Cybro 4 years ago
parent
commit
56076b52f7
  1. 38
      product_to_invoice/README.rst
  2. 24
      product_to_invoice/__init__.py
  3. 48
      product_to_invoice/__manifest__.py
  4. 7
      product_to_invoice/doc/RELEASE_NOTES.md
  5. 24
      product_to_invoice/models/__init__.py
  6. 38
      product_to_invoice/models/account_move.py
  7. 123
      product_to_invoice/models/product_product.py
  8. 3
      product_to_invoice/security/ir.model.access.csv
  9. BIN
      product_to_invoice/static/description/assets/icons/check.png
  10. BIN
      product_to_invoice/static/description/assets/icons/chevron.png
  11. BIN
      product_to_invoice/static/description/assets/icons/cogs.png
  12. BIN
      product_to_invoice/static/description/assets/icons/consultation.png
  13. BIN
      product_to_invoice/static/description/assets/icons/ecom-black.png
  14. BIN
      product_to_invoice/static/description/assets/icons/education-black.png
  15. BIN
      product_to_invoice/static/description/assets/icons/hotel-black.png
  16. BIN
      product_to_invoice/static/description/assets/icons/license.png
  17. BIN
      product_to_invoice/static/description/assets/icons/lifebuoy.png
  18. BIN
      product_to_invoice/static/description/assets/icons/logo.png
  19. BIN
      product_to_invoice/static/description/assets/icons/manufacturing-black.png
  20. BIN
      product_to_invoice/static/description/assets/icons/pos-black.png
  21. BIN
      product_to_invoice/static/description/assets/icons/puzzle.png
  22. BIN
      product_to_invoice/static/description/assets/icons/restaurant-black.png
  23. BIN
      product_to_invoice/static/description/assets/icons/service-black.png
  24. BIN
      product_to_invoice/static/description/assets/icons/trading-black.png
  25. BIN
      product_to_invoice/static/description/assets/icons/training.png
  26. BIN
      product_to_invoice/static/description/assets/icons/update.png
  27. BIN
      product_to_invoice/static/description/assets/icons/user.png
  28. BIN
      product_to_invoice/static/description/assets/icons/wrench.png
  29. BIN
      product_to_invoice/static/description/assets/modules/approval_image.png
  30. BIN
      product_to_invoice/static/description/assets/modules/budget_image.png
  31. BIN
      product_to_invoice/static/description/assets/modules/export_image.png
  32. BIN
      product_to_invoice/static/description/assets/modules/magento_image.png
  33. BIN
      product_to_invoice/static/description/assets/modules/pos_image.png
  34. BIN
      product_to_invoice/static/description/assets/modules/shopify_image.png
  35. BIN
      product_to_invoice/static/description/assets/screenshots/hero.gif
  36. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice1.png
  37. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice2.png
  38. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice3.png
  39. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice4.png
  40. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice5.png
  41. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice6.png
  42. BIN
      product_to_invoice/static/description/assets/screenshots/product_to_invoice7.png
  43. BIN
      product_to_invoice/static/description/banner.png
  44. BIN
      product_to_invoice/static/description/icon.png
  45. 673
      product_to_invoice/static/description/index.html
  46. 18
      product_to_invoice/views/account_move_views.xml
  47. 55
      product_to_invoice/views/product_views.xml
  48. 23
      product_to_invoice/wizard/__init__.py
  49. 92
      product_to_invoice/wizard/invoice_product_details.py
  50. 68
      product_to_invoice/wizard/invoice_product_details_views.xml

38
product_to_invoice/README.rst

@ -0,0 +1,38 @@
Add Multiple Products to Invoice/Bill
=====================================
Easily add multiple products to a customer invoice or vendor bill directly from product kanban, list and from views.
Configuration
=============
No additional configuration is needed to use this module.
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.odoo.com/documentation/user/14.0/legal/licenses/licenses.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developers: Midilaj V K @ cybrosys
Contacts
--------
* Mail Contact : odoo@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
==========
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

24
product_to_invoice/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import wizard

48
product_to_invoice/__manifest__.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Add Multiple Products to Invoice/Bill',
'version': '14.0.1.0.0',
'category': 'Extra Tools',
'summary': 'Easily add multiple products to a invoice/bill directly from the product views',
'description': """This module allow you to add multiple products to the corresponding invoice/bill.
You can see all products in kanban, list and form view.You can also view the recent invoice/bill
history of the selected product along with the option to update the quantity, Change price,
Add Multiple Products""",
'author': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'depends': ['base', 'account'],
'data': [
'security/ir.model.access.csv',
'views/account_move_views.xml',
'views/product_views.xml',
'wizard/invoice_product_details_views.xml'
],
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,
'application': False,
'auto_install': False
}

7
product_to_invoice/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <products_to_invoice>
#### 16.08.2021
#### Version 14.0.1.0.0
##### ADD
- Initial commit for Add Multiple Products to Invoice/Bill

24
product_to_invoice/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import account_move
from . import product_product

38
product_to_invoice/models/account_move.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, _
class AccountMove(models.Model):
_inherit = 'account.move'
def action_add_product(self):
self.ensure_one()
return {
'name': _('Product Variants'),
'type': 'ir.actions.act_window',
'res_model': 'product.product',
'view_mode': 'kanban,list,form',
'target': 'current',
'context': {'add_to_invoice': True},
}

123
product_to_invoice/models/product_product.py

@ -0,0 +1,123 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, fields, _
class ProductProduct(models.Model):
_inherit = 'product.product'
def _compute_add_to_invoice(self):
context = self.env.context
for rec in self:
if context.get('add_to_invoice'):
rec.add_to_invoice = True
else:
rec.add_to_invoice = False
add_to_invoice = fields.Boolean(compute=_compute_add_to_invoice, help='To show add to invoice button in tree view')
def _get_invoice_taxes(self, move_id, account_id):
"""
return taxes of selected product
:param move_id:
:param account_id:
:return:
"""
self.ensure_one()
if move_id.move_type == 'out_invoice':
# Out invoice.
if self.taxes_id:
tax_ids = self.taxes_id.filtered(lambda tax: tax.company_id == move_id.company_id)
elif account_id.tax_ids:
tax_ids = account_id.tax_ids
else:
tax_ids = self.env['account.tax']
if not tax_ids:
tax_ids = move_id.company_id.account_sale_tax_id
elif move_id.move_type == 'in_invoice':
# In invoice.
if self.supplier_taxes_id:
tax_ids = self.supplier_taxes_id.filtered(lambda tax: tax.company_id == move_id.company_id)
elif account_id.tax_ids:
tax_ids = account_id.tax_ids
else:
tax_ids = self.env['account.tax']
if not tax_ids:
tax_ids = move_id.company_id.account_purchase_tax_id
else:
tax_ids = account_id.tax_ids
if self.company_id and tax_ids:
tax_ids = tax_ids.filtered(lambda tax: tax.company_id == self.company_id)
return tax_ids
def _get_invoice_account(self, move_id):
"""
return income/expense account of selected product
:param move_id:
:return:
"""
self.ensure_one()
self = self.with_company(move_id.journal_id.company_id)
fiscal_position = move_id.fiscal_position_id
accounts = self.product_tmpl_id.get_product_accounts(fiscal_pos=fiscal_position)
if move_id.move_type == 'out_invoice':
# Out invoice.
return accounts['income']
elif move_id.move_type == 'in_invoice':
# In invoice.
return accounts['expense']
def action_add_to_invoice(self):
active_id = self._context.get('active_id')
invoice_id = self.env['account.move'].browse(active_id)
account_id = self._get_invoice_account(invoice_id)
tax_ids = self._get_invoice_taxes(invoice_id, account_id)
invoice_id.write({
'invoice_line_ids': [(0, 0, {
'product_id': self.id,
'product_uom_id': self.uom_id.id,
'quantity': 1,
'price_unit': self.lst_price if invoice_id.move_type == 'out_invoice' else self.standard_price,
'account_id': account_id,
'tax_ids': tax_ids
})]
})
def action_change_qty(self):
active_id = self._context.get('active_id')
invoice_id = self.env['account.move'].browse(active_id)
return {
'name': _('Product Details'),
'type': 'ir.actions.act_window',
'res_model': 'invoice.product.details.wizard',
'view_mode': 'form',
'target': 'new',
'context': {
'default_account_move_id': invoice_id.id,
'default_product_id': self.id,
'default_price_unit': self.lst_price if invoice_id.move_type == 'out_invoice' else self.standard_price,
},
}

3
product_to_invoice/security/ir.model.access.csv

@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_invoice_product_details_wizard,access.invoice.product.details.wizard,model_invoice_product_details_wizard,,1,1,1,1
access_product_invoice_history,access.product.invoice.history,model_product_invoice_history,,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_invoice_product_details_wizard access.invoice.product.details.wizard model_invoice_product_details_wizard 1 1 1 1
3 access_product_invoice_history access.product.invoice.history model_product_invoice_history 1 1 1 1

BIN
product_to_invoice/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
product_to_invoice/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
product_to_invoice/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
product_to_invoice/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
product_to_invoice/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
product_to_invoice/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
product_to_invoice/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
product_to_invoice/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
product_to_invoice/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
product_to_invoice/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
product_to_invoice/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
product_to_invoice/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
product_to_invoice/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
product_to_invoice/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
product_to_invoice/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
product_to_invoice/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
product_to_invoice/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
product_to_invoice/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
product_to_invoice/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
product_to_invoice/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
product_to_invoice/static/description/assets/modules/approval_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
product_to_invoice/static/description/assets/modules/budget_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
product_to_invoice/static/description/assets/modules/export_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
product_to_invoice/static/description/assets/modules/magento_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
product_to_invoice/static/description/assets/modules/pos_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
product_to_invoice/static/description/assets/modules/shopify_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
product_to_invoice/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 882 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
product_to_invoice/static/description/assets/screenshots/product_to_invoice7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
product_to_invoice/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
product_to_invoice/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

673
product_to_invoice/static/description/index.html

@ -0,0 +1,673 @@
<div class="container" style="padding: 1rem !important; margin-bottom: 1rem !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between"
style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
</div>
</div>
<div class="container" style="padding: 0rem 1.5rem 4rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Add Multiple Products to Invoice/Bill</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Add Multiple Products to Custome Invoice or Vendor Bill
</p>
<img src="./assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
Add Multiple Products to Invoice/Bill module provides an easy way to add multiple products to the
corresponding customer invoice or vendor bill. Moreover, you can see all the products in list, kanban and also in the
form view. Furthermore, you can see the recent invoice/bill history of the selected product.</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Smart button in customer invoice and vendor bill form view to select products.</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
A definite Smart button in the form view of the customer invoice and vendor bill helps you to select multiple
products to be directly added to the invoice or bill.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Displays products in multiple views.</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Displays every products which have been defined in your platform in Kanban, List and Form view.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Displays Recent Invoice and Bill History.</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Displays recent customer invoice and vendor bill history of the selected product in the wizard window.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Option to filter out the Invoice/Bill History.</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Option to view recent invoice/billing history based on the date selected.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Provision to Add Product Details.</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Provision to add product details such as quantity of the product to be invoiced/billed from the selected
product wizard.</p>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Smart Button in Customer Invoice and Vendor Bill form view</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Smart button in invoice and vendor bill form view to select multiple products directly to the invoice/bill.
Moreover, the button will be visible only for invoice or bill in the draft state</p>
<img src="assets/screenshots/product_to_invoice1.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
<img src="assets/screenshots/product_to_invoice2.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Display Products in Kanban View</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Add to Invoice/Bill and Update Quantity button in the Kanban view.
Click Add to Invoice/Bill to add the product directly to the invoice/bill with one quantity and default price.
Click Change Quantity to add the product to the invoice/bill via changing price and quantity. A wizard window will appear in the screen to change price and quantity.
</p>
<img src="assets/screenshots/product_to_invoice3.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Display Products in List view</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
A plus icon to add the product directly to the invoice/bill with one quantity and default price.
A list icon to add the product to the invoice/bill via changing price and quantity. A wizard window will appear in the screen to change price and quantity.
</p>
<img src="assets/screenshots/product_to_invoice4.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Product Form View</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Press the button "Add to Invoice/Bill" to add the product directly to the invoice/bill.
Press the list icon to add the product to the invoice/bill by changing price and quantity.
</p>
<img src="assets/screenshots/product_to_invoice5.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Update Quantity Wizard</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Where User Can Change Price and Quantity.
The wizard window also shows the previous invoice/bill history of the selected product.
You can choose the from date of the previous invoice/bill history.
You can decide how many rows (sequence) of invoice/bill history should be shown.
</p>
<img src="assets/screenshots/product_to_invoice6.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
</div>
<div class="col-lg-12 my-3">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Products Added to Invoice/Bill</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Selected products will be inserted to the move lines of opened invoice/bill.
</p>
<img src="assets/screenshots/product_to_invoice7.png" class="img-responsive img-thumbnail border"
width="100%" height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/export_stockinfo_xls/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/export_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/dashboard_pos/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/pos_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/product_approval_management/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/approval_image.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/base_account_budget/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/budget_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/shopify_odoo_connector/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/shopify_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/odoo11_magento2/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/magento_image.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a
class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-whatsapp mr-2"></i>WhatsApp</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

18
product_to_invoice/views/account_move_views.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_account_move_form_inherit" model="ir.ui.view">
<field name="name">account.move.form.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button name="action_add_product" type="object" class="oe_stat_button" icon="fa-plus" attrs="{'invisible': ['|', ('state', '!=', 'draft'), ('move_type', 'not in', ('in_invoice', 'out_invoice'))]}">
<span>Add Products</span>
</button>
</xpath>
</field>
</record>
</odoo>

55
product_to_invoice/views/product_views.xml

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_product_tree_inherit" model="ir.ui.view">
<field name="name">product.product.tree.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='default_code']" position="before">
<button class="o_field_cell" name="action_add_to_invoice" type="object" icon="fa-plus" attrs="{'invisible': [('add_to_invoice', '=', False)]}"/>
<button name="action_change_qty" type="object" icon="fa-list" attrs="{'invisible': [('add_to_invoice', '=', False)]}"/>
<field name="add_to_invoice" invisible="1"/>
</xpath>
</field>
</record>
<record id="view_product_kanban_inherit" model="ir.ui.view">
<field name="name">product.product.kanban.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_kanban_view"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_kanban_details')]" position="after">
<t t-if="context.add_to_invoice">
<div class="o_kanban_record_bottom" style="width: 100%;">
<div class="oe_kanban_bottom_left">
<a name="action_add_to_invoice" type="object">
<i class="fa fa-plus"/>Add to Invoice/Bill
</a>
</div>
<div class="oe_kanban_bottom_right">
<a name="action_change_qty" type="object">
<i class="fa fa-list"/>Change Quantity
</a>
</div>
</div>
</t>
</xpath>
</field>
</record>
<record id="view_product_form_inherit" model="ir.ui.view">
<field name="name">product.product.view.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//header" position="inside">
<button name="action_add_to_invoice" type="object" string="Add to Invoice/Bill" class="oe_highlight"
icon="fa-plus" invisible="not context.get('add_to_invoice')"/>
<button name="action_change_qty" type="object" icon="fa-list" help="Update Quantity" invisible="not context.get('add_to_invoice')"/>
</xpath>
</field>
</record>
</odoo>

23
product_to_invoice/wizard/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import invoice_product_details

92
product_to_invoice/wizard/invoice_product_details.py

@ -0,0 +1,92 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Midilaj V K (<https://www.cybrosys.com>)
#
# 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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, fields, api
from datetime import timedelta
class InvoiceProductDetailsWizard(models.TransientModel):
_name = 'invoice.product.details.wizard'
_description = 'Invoice Product Details Wizard'
product_id = fields.Many2one('product.product', string='Product', readonly=True)
qty = fields.Float(string='Quantity', default=1)
account_move_id = fields.Many2one('account.move', readonly=True)
price_unit = fields.Float(string='Unit Price')
invoice_history_ids = fields.One2many('product.invoice.history', 'product_details_id', readonly=True)
date_from = fields.Date(default=fields.Date.today() - timedelta(days=30))
limit = fields.Integer(string='Limit', default=20)
@api.onchange('date_from', 'limit')
def _onchange_date_from(self):
invoice_lines = self.env['account.move.line'].search([('product_id', '=', self.product_id.id),
('move_id.state', '=', 'posted'),
('move_id.invoice_date', '>=', self.date_from),
('move_id.move_type', 'in',
('out_invoice', 'in_invoice')),
('exclude_from_invoice_tab', '=', False)],
limit=self.limit)
vals = [(5, 0, 0)]
for line in invoice_lines:
vals.append((0, 0, {
'date': line.move_id.invoice_date,
'partner_id': line.move_id.partner_id.id,
'qty': line.quantity,
'account_move_number': line.move_id.name,
'price_unit': line.price_unit,
'total': line.price_subtotal,
'type': line.move_id.move_type,
'move_id': line.move_id.id
}))
self.invoice_history_ids = vals
def add_to_invoice(self):
account_id = self.product_id._get_invoice_account(self.account_move_id)
tax_ids = self.product_id._get_invoice_taxes(self.account_move_id, account_id)
self.account_move_id.write({
'invoice_line_ids': [(0, 0, {
'product_id': self.product_id.id,
'product_uom_id': self.product_id.uom_id.id,
'quantity': self.qty,
'price_unit': self.price_unit,
'account_id': account_id,
'tax_ids': tax_ids
})]
})
class ProductInvoiceHistory(models.TransientModel):
_name = 'product.invoice.history'
_description = 'Product Invoice History'
product_details_id = fields.Many2one('invoice.product.details.wizard')
date = fields.Datetime(string='Date')
move_id = fields.Many2one('account.move', string='Invoice/Bill')
account_move_number = fields.Char(string='Invoice/Bill No')
partner_id = fields.Many2one('res.partner', string='Customer/vendor')
price_unit = fields.Float(string='Unit Price')
total = fields.Float(string='Total')
qty = fields.Float(string='Quantity')
type = fields.Selection([
('out_invoice', 'Customer Invoice'),
('in_invoice', 'Vendor Bill')
], string='Type')

68
product_to_invoice/wizard/invoice_product_details_views.xml

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_invoice_product_details_form" model="ir.ui.view">
<field name="name">invoice.product.details.view.form</field>
<field name="model">invoice.product.details.wizard</field>
<field name="arch" type="xml">
<form string="Product Details">
<group>
<group>
<field name="product_id"/>
<field name="qty"/>
</group>
<group>
<field name="account_move_id"/>
<field name="price_unit"/>
</group>
</group>
<group/>
<group string="Recent Invoice/Bill History"/>
<group>
<group>
<field name="date_from"/>
</group>
<group>
<field name="limit"/>
</group>
</group>
<group>
<field name="invoice_history_ids" widget="on2many" nolabel="1">
<tree>
<field name="type"/>
<field name="date"/>
<field name="account_move_number"/>
<field name="partner_id"/>
<field name="qty"/>
<field name="price_unit"/>
<field name="total"/>
</tree>
<form>
<group>
<group>
<field name="type" readonly="1"/>
<field name="move_id" readonly="1"/>
<field name="partner_id" readonly="1"/>
<field name="date" readonly="1"/>
</group>
<group>
<field name="qty" readonly="1"/>
<field name="price_unit" readonly="1"/>
<field name="total" readonly="1"/>
</group>
</group>
<footer>
<button string="Close" class="oe_highlight" special="cancel"/>
</footer>
</form>
</field>
</group>
<footer>
<button name="add_to_invoice" string="Add to Invoice" type="object" class="oe_highlight"/>
<button string="Cancel" special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>
Loading…
Cancel
Save