@ -0,0 +1,48 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
Purchase Down Payment |
||||
|
======================= |
||||
|
This module helps to register down payment against the purchase order. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
No additional configuration |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
======= |
||||
|
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: V16 - Aswathi PN |
||||
|
V17 - Gayathri V |
||||
|
Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,21 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V(odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
from . import models |
||||
|
from . import wizard |
@ -0,0 +1,45 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################### |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V (<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
{ |
||||
|
'name': 'Purchase Down Payment', |
||||
|
'version': '17.0.1.0.0', |
||||
|
'summary': """Down payment with purchase order""", |
||||
|
'description': 'This module provides easy feature to register down payment' |
||||
|
'against the purchase order. User will be able to register ' |
||||
|
'downpayment in percentage and amount that would deduct from' |
||||
|
'vendor bill.', |
||||
|
'category': 'Purchase', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['purchase', 'sale'], |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'wizard/purchase_order_advance_payment_views.xml', |
||||
|
'views/purchase_order_views.xml', |
||||
|
'views/res_config_settings_views.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
## Module <purchase_down_payment> |
||||
|
|
||||
|
#### 11.01.2024 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
#### ADD |
||||
|
|
||||
|
- Initial commit for Purchase Down Payment |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
from . import purchase_order |
||||
|
from . import purchase_order_line |
||||
|
from . import res_config_settings |
@ -0,0 +1,198 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V(odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
from odoo import api, models, _ |
||||
|
from odoo.tools import float_is_zero |
||||
|
from itertools import groupby |
||||
|
from odoo.exceptions import UserError |
||||
|
|
||||
|
|
||||
|
class PurchaseOrder(models.Model): |
||||
|
""" |
||||
|
This class is created for inherited model Purchase Order. |
||||
|
|
||||
|
Methods: _nothing_to_invoice_error(self): Function for showing the |
||||
|
user error while there is no products are received for the purchase |
||||
|
order. |
||||
|
|
||||
|
_deduct_payment(self): This function is for deducting the down |
||||
|
payment amount from next down payment invoice. |
||||
|
|
||||
|
_prepare_down_payment_section_line(self): Function for creating |
||||
|
dict of values to create a new purchase down payment section. |
||||
|
|
||||
|
_get_invoiceable_lines(self): |
||||
|
Function for returning the orders invoiceable lines. |
||||
|
|
||||
|
""" |
||||
|
_inherit = 'purchase.order' |
||||
|
|
||||
|
@api.model |
||||
|
def _nothing_to_invoice_error(self): |
||||
|
"""Function to showing user error while there is no products are |
||||
|
received for the purchase order""" |
||||
|
return UserError(_( |
||||
|
"There is nothing to bill!\n\n" |
||||
|
"Reason(s) of this behavior could be:\n" |
||||
|
"- You should recieve your products before billing them: Click on the \"truck\" icon " |
||||
|
"(top-right of your screen) and follow instructions.\n" |
||||
|
"- You should modify the control policy of your product: Open the product, go to the " |
||||
|
"\"Purchase\" tab and modify control policy from \"On received " |
||||
|
"quantities\" to \"On ordered" |
||||
|
"quantities\"." |
||||
|
)) |
||||
|
|
||||
|
def _deduct_payment(self, grouped=False, final=False, date=None): |
||||
|
""" |
||||
|
Create the Bill associated to the PO. |
||||
|
:returns: list of created invoices |
||||
|
""" |
||||
|
invoice_vals_list = [] |
||||
|
invoice_item_sequence = 0 # Incremental sequencing to keep the lines |
||||
|
# order on the invoice. |
||||
|
for order in self: |
||||
|
order = order.with_company(order.company_id) |
||||
|
invoice_vals = order._prepare_invoice() |
||||
|
invoiceable_lines = order._get_invoiceable_lines(final) |
||||
|
if not any(not line.display_type for line in invoiceable_lines): |
||||
|
continue |
||||
|
invoice_line_vals = [] |
||||
|
down_payment_section_added = False |
||||
|
for line in invoiceable_lines: |
||||
|
if not down_payment_section_added and line.is_downpayment: |
||||
|
invoice_line_vals.append( |
||||
|
(0, 0, order._prepare_down_payment_section_line( |
||||
|
sequence=invoice_item_sequence, |
||||
|
)), |
||||
|
) |
||||
|
down_payment_section_added = True |
||||
|
invoice_item_sequence += 1 |
||||
|
invoice_line_vals.append( |
||||
|
(0, 0, line._prepare_invoice_line( |
||||
|
sequence=invoice_item_sequence, |
||||
|
)), |
||||
|
) |
||||
|
invoice_item_sequence += 1 |
||||
|
invoice_vals['invoice_line_ids'] += invoice_line_vals |
||||
|
invoice_vals_list.append(invoice_vals) |
||||
|
if not invoice_vals_list: |
||||
|
raise self._nothing_to_invoice_error() |
||||
|
if not grouped: |
||||
|
new_invoice_vals_list = [] |
||||
|
invoice_grouping_keys = self._get_invoice_grouping_keys() |
||||
|
invoice_vals_list = sorted( |
||||
|
invoice_vals_list, |
||||
|
key=lambda x: [ |
||||
|
x.get(grouping_key) for grouping_key in |
||||
|
invoice_grouping_keys |
||||
|
] |
||||
|
) |
||||
|
for grouping_keys, invoices in groupby(invoice_vals_list, |
||||
|
key=lambda x: [ |
||||
|
x.get(grouping_key) for |
||||
|
grouping_key in |
||||
|
invoice_grouping_keys]): |
||||
|
origins = set() |
||||
|
payment_refs = set() |
||||
|
refs = set() |
||||
|
ref_invoice_vals = None |
||||
|
for invoice_vals in invoices: |
||||
|
if not ref_invoice_vals: |
||||
|
ref_invoice_vals = invoice_vals |
||||
|
else: |
||||
|
ref_invoice_vals['invoice_line_ids'] += invoice_vals[ |
||||
|
'invoice_line_ids'] |
||||
|
origins.add(invoice_vals['invoice_origin']) |
||||
|
payment_refs.add(invoice_vals['payment_reference']) |
||||
|
refs.add(invoice_vals['ref']) |
||||
|
ref_invoice_vals.update({ |
||||
|
'ref': ', '.join(refs)[:2000], |
||||
|
'invoice_origin': ', '.join(origins), |
||||
|
'payment_reference': len( |
||||
|
payment_refs) == 1 and payment_refs.pop() or False, |
||||
|
}) |
||||
|
new_invoice_vals_list.append(ref_invoice_vals) |
||||
|
invoice_vals_list = new_invoice_vals_list |
||||
|
if len(invoice_vals_list) < len(self): |
||||
|
PurchaseOrderLine = self.env['purchase.order.line'] |
||||
|
for invoice in invoice_vals_list: |
||||
|
sequence = 1 |
||||
|
for line in invoice['invoice_line_ids']: |
||||
|
line[2][ |
||||
|
'sequence'] = PurchaseOrderLine._get_invoice_line_sequence( |
||||
|
new=sequence, |
||||
|
old=line[2]['sequence']) |
||||
|
sequence += 1 |
||||
|
moves = self.env['account.move'].sudo().with_context( |
||||
|
default_move_type='out_invoice').create(invoice_vals_list) |
||||
|
return moves |
||||
|
|
||||
|
@api.model |
||||
|
def _prepare_down_payment_section_line(self, **optional_values): |
||||
|
""" |
||||
|
Prepare the dict of values to create a new down payment section for a |
||||
|
purchase order line. :param optional_values: any parameter that |
||||
|
should be added to the returned down payment section |
||||
|
""" |
||||
|
context = {'lang': self.partner_id.lang} |
||||
|
down_payments_section_line = { |
||||
|
'display_type': 'line_section', |
||||
|
'name': _('Down Payments'), |
||||
|
'product_id': False, |
||||
|
'product_uom_id': False, |
||||
|
'quantity': 0, |
||||
|
'discount': 0, |
||||
|
'price_unit': 0, |
||||
|
'account_id': False |
||||
|
} |
||||
|
del context |
||||
|
if optional_values: |
||||
|
down_payments_section_line.update(optional_values) |
||||
|
return down_payments_section_line |
||||
|
|
||||
|
def _get_invoice_grouping_keys(self): |
||||
|
"""Return invoice grouping keys""" |
||||
|
return ['company_id', 'partner_id', 'currency_id'] |
||||
|
|
||||
|
def _get_invoiceable_lines(self, final=False): |
||||
|
"""Return the invoiceable lines for order `self`.""" |
||||
|
down_payment_line_ids = [] |
||||
|
invoiceable_line_ids = [] |
||||
|
pending_section = None |
||||
|
precision = self.env['decimal.precision'].precision_get( |
||||
|
'Product Unit of Measure') |
||||
|
for line in self.order_line: |
||||
|
line.display_type = '' |
||||
|
if line.display_type == 'line_section': |
||||
|
pending_section = line |
||||
|
continue |
||||
|
if line.display_type != 'line_note' and float_is_zero( |
||||
|
line.qty_to_invoice, precision_digits=precision): |
||||
|
continue |
||||
|
if line.qty_to_invoice > 0 or ( |
||||
|
line.qty_to_invoice < 0 and final) or line.display_type == 'line_note': |
||||
|
if line.is_downpayment: |
||||
|
down_payment_line_ids.append(line.id) |
||||
|
continue |
||||
|
if pending_section: |
||||
|
invoiceable_line_ids.append(pending_section.id) |
||||
|
pending_section = None |
||||
|
invoiceable_line_ids.append(line.id) |
||||
|
return self.env['purchase.order.line'].browse( |
||||
|
invoiceable_line_ids + down_payment_line_ids) |
@ -0,0 +1,61 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V(odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class PurchaseOrderLine(models.Model): |
||||
|
""" |
||||
|
The class is created for inherited the model purchase.order.line. |
||||
|
|
||||
|
Methods: |
||||
|
_prepare_invoice_line(): |
||||
|
Function to add the invoice lines of down payment |
||||
|
""" |
||||
|
_inherit = 'purchase.order.line' |
||||
|
|
||||
|
is_downpayment = fields.Boolean( |
||||
|
string="Is a down payment", help="Down payments are made when " |
||||
|
"creating Bills from a purchase order." |
||||
|
"They are not copied when " |
||||
|
"duplicating a purchase order.") |
||||
|
|
||||
|
def _prepare_invoice_line(self, **optional_values): |
||||
|
""" |
||||
|
Prepare the dict of values to create the new bill line for a purchase |
||||
|
order line. :param qty: float quantity to bill :param |
||||
|
optional_values: any parameter that should be added to the returned |
||||
|
bill line |
||||
|
""" |
||||
|
self.ensure_one() |
||||
|
res = { |
||||
|
'display_type': 'product', |
||||
|
'sequence': self.sequence, |
||||
|
'name': self.name, |
||||
|
'product_id': self.product_id.id, |
||||
|
'product_uom_id': self.product_uom.id, |
||||
|
'quantity': self.qty_to_invoice, |
||||
|
'price_unit': self.price_unit, |
||||
|
'purchase_line_id': self.id, |
||||
|
} |
||||
|
if optional_values: |
||||
|
res.update(optional_values) |
||||
|
if self.display_type: |
||||
|
res['account_id'] = False |
||||
|
return res |
@ -0,0 +1,32 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
"""The class is to created for inherited the model Res Config Settings""" |
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
po_deposit_default_product_id = fields.Many2one( |
||||
|
'product.product', |
||||
|
'PO Deposit Product', |
||||
|
domain="[('type', '=', 'service')]", |
||||
|
config_parameter='purchase_down_payment.po_deposit_default_product_id', |
||||
|
help='Default product used for payment advances in purchase order') |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 1.8 MiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 173 KiB |
After Width: | Height: | Size: 101 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 303 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,800 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
|
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Odoo App 3 Index</title> |
||||
|
<!-- Bootstrap CSS --> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
||||
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
||||
|
crossorigin="anonymous"> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
||||
|
rel="stylesheet"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<section> |
||||
|
<div class="container" |
||||
|
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
||||
|
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
||||
|
<div class="my-3"> |
||||
|
<img src="assets/misc/Cybrosys R.png" |
||||
|
style="width:auto !important; height:40px !important"> |
||||
|
</div> |
||||
|
<div class="my-3 d-flex align-items-center"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
||||
|
style="margin: 80px 0px !important;"> |
||||
|
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
||||
|
#1A202C;"> |
||||
|
Purchase Down Payment</h1> |
||||
|
<p class="my-3 mb-4" |
||||
|
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
||||
|
Down Payment with Purchase Order. |
||||
|
</p> |
||||
|
<div style="width: 80%; margin-top: 3rem;"> |
||||
|
<img src="assets/screenshots/hero.gif" |
||||
|
class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5 mb-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#714b67 !important"> |
||||
|
Key Highlights |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="row py-4"> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Provides easy feature to register down payment |
||||
|
against the purchase order.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
User will be able to register down payment in |
||||
|
percentage and amount that would deduct from |
||||
|
vendor bill.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container rounded"> |
||||
|
<ul class="nav nav-tabs d-flex" |
||||
|
style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
class="active show" data-toggle="tab" href="#tab1" |
||||
|
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
||||
|
<i class="fa-regular fa-image pr-2" |
||||
|
style="color: #fff;"></i> |
||||
|
Screenshots</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
data-toggle="tab" href="#tab2" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
||||
|
class="fa-solid fa-star pr-2" |
||||
|
style="color: #fff;"></i>Features</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
data-toggle="tab" href="#tab3" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
||||
|
class="fa-solid fa-book-open pr-2" |
||||
|
style="color: #fff;"></i>Released Notes</a></li> |
||||
|
</ul> |
||||
|
<div class="tab-content" |
||||
|
style="background-color: rgba(121, 113, 119, 0.04);"> |
||||
|
<div id="tab1" class="tab-pane fade in active show"> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/1.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Down Payment product on the settings</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/2.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Button For Creating Vendor Bill in Purchase Order.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/3.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Options For Creating Vendor Bill.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/4.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Down Payment with fixed amount.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/5.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Detailed View of Down Payment(Fixed price).</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/6.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Down Payment With Percentage .</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/7.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Detailed View of Down Payment(Percentage).</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/8.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Down Payment Deduction.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/9.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Vendor Bill After Down payment Deduction.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/10.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Vendor Bill For Regular Payment.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab2" class="tab-pane fade"> |
||||
|
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
||||
|
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span> We can easily |
||||
|
manage the down payment with purchase order. |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span> You can choose |
||||
|
whether to deduct the down payment from the |
||||
|
invoice or not. |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span>A bill can be |
||||
|
created in three ways: with percentages, with |
||||
|
fixed amounts, or with regular amounts. |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span>Available in |
||||
|
Odoo Community and Enterprise. |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab3" class="tab-pane fade"> |
||||
|
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
||||
|
<div class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="d-flex mb-3" |
||||
|
style="font-size: 0.8rem; font-weight: 500;"><span>Version |
||||
|
17.0.1.0.0</span><span |
||||
|
class="px-2">|</span><span |
||||
|
style="color: #714B67;font-weight: 600;">Released on:11th Jan 2024</span> |
||||
|
</div> |
||||
|
<p class="m-0" |
||||
|
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
||||
|
|
||||
|
Initial Commit for Purchase Down Payment.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Related Products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/manufacturing_reports/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/1.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Manufacturing Reports</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/mrp_work_order_print/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/2.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Print Work Order Details</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/bom_total_cost/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/3.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Show Total Cost On BOM</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/simple_mrp_order/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/4.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Simple Manufacturing Orders</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/bom_multiple_product/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/5.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
BOM Multiple Product Selection</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/cw_mrp/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/6.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Catch Weight Management: |
||||
|
Manufacturing</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<a class="carousel-control-prev" href="#myCarousel" |
||||
|
data-slide="prev" style="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="#myCarousel" |
||||
|
data-slide="next" style="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 class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Our Services</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row py-3"> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/cogs.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Customization</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/wrench.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/lifebuoy.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/user.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Hire |
||||
|
Odoo Developer</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
|
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/puzzle.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Integration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/update.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Migration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/consultation.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/training.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/license.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Licensing Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Our Industries</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container"> |
||||
|
<div class="row my-5 py-4"> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100 " |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/trading-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
||||
|
<p>Easily procure and sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/pos-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
||||
|
<p>Easy configuration and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
||||
|
<img src="assets/icons/education-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Education</p> |
||||
|
<p>A platform for educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/manufacturing-black.png" |
||||
|
width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Manufacturing</p> |
||||
|
<p>Plan, track and schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/ecom-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & |
||||
|
Website</p> |
||||
|
<p>Mobile friendly, awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/service-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Service |
||||
|
Management</p> |
||||
|
<p>Keep track of services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/restaurant-black.png" |
||||
|
width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Restaurant</p> |
||||
|
<p>Run your bar or restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/hotel-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Hotel |
||||
|
Management</p> |
||||
|
<p>An all-inclusive hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row" style="background-color: #FFFAFE;"> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
||||
|
style="border-right: 1px solid #D9D9D9;"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/support (1) 1.svg" alt="" |
||||
|
width="60px" style="margin-right: 12px;"> |
||||
|
<div style="padding: 0px 8px;"> |
||||
|
<span |
||||
|
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
||||
|
Help?</span> |
||||
|
<p class="m-0" style="color:#718096;">Got |
||||
|
questions or need help? Get in touch.</p> |
||||
|
<div style="font-weight: 400;"><span><img |
||||
|
src="assets/misc/support-email.svg" |
||||
|
alt="" |
||||
|
width="18px" |
||||
|
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/whatsapp 1.svg" alt="" |
||||
|
width="60px" style="margin-right: 12px;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
||||
|
<p class="m-0" style="color:#718096;">Say hi to |
||||
|
us on WhatsApp!</p> |
||||
|
<div style="font-weight: 400; font-size: 16px;"><span><img |
||||
|
src="assets/misc/phone.svg" |
||||
|
alt="" width="14px" |
||||
|
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
||||
|
99456767686 |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- Optional JavaScript --> |
||||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,20 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Inherited the Purchase Order form view to add a new button --> |
||||
|
<record id="purchase_order_form" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
purchase.order.view.form.inherit.purchase.down.payment |
||||
|
</field> |
||||
|
<field name="model">purchase.order</field> |
||||
|
<field name="inherit_id" ref="purchase.purchase_order_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//header/button[@name='action_create_invoice']" |
||||
|
position="replace"> |
||||
|
<button name="%(purchase_down_payment.purchase_order_advance_payment_action)d" |
||||
|
string="Create Bill" |
||||
|
invisible="state not in ('purchase', 'done') or invoice_status in ('no', 'invoiced')" |
||||
|
type="action" data-hotkey="w"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,28 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Inherited the Res Config Settings to add new field on it--> |
||||
|
<record id="res_config_settings_view_form_purchase" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
res.config.settings.view.form.inherit.purchase.down.payment |
||||
|
</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="priority" eval="95"/> |
||||
|
<field name="inherit_id" ref="purchase.res_config_settings_view_form_purchase"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//block[@name='invoicing_settings_container']" position="inside"> |
||||
|
<div class="col-12 col-lg-6 o_setting_box"> |
||||
|
<div class="o_setting_left_pane"/> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<span class="o_form_label">Down Payment</span> |
||||
|
<div class="text-muted"> |
||||
|
Product used for down payments in purchase bill |
||||
|
</div> |
||||
|
<div class="text-muted"> |
||||
|
<field name="po_deposit_default_product_id"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V(odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
from . import purchase_order_advance_payment |
@ -0,0 +1,236 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Gayathri V (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
############################################################################## |
||||
|
import time |
||||
|
from datetime import datetime |
||||
|
|
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo.exceptions import UserError |
||||
|
from odoo.fields import Command |
||||
|
|
||||
|
|
||||
|
class PurchaseOrderAdvancePayment(models.TransientModel): |
||||
|
"""The class is created to creating a new model purchase order advance |
||||
|
payment.""" |
||||
|
_name = 'purchase.order.advance.payment' |
||||
|
_description = 'Purchase Order Advance Payment Bill' |
||||
|
|
||||
|
@api.model |
||||
|
def _default_product_id(self): |
||||
|
"""Function to fetch the purchase down payment default product""" |
||||
|
product_id = self.env['ir.config_parameter'].sudo().get_param( |
||||
|
'purchase_down_payment.po_deposit_default_product_id') |
||||
|
return self.env['product.product'].browse(int(product_id)).exists() |
||||
|
|
||||
|
@api.model |
||||
|
def _default_currency_id(self): |
||||
|
"""Function to fetch the currency_id from purchase order""" |
||||
|
if self._context.get( |
||||
|
'active_model') == 'purchase.order' and self._context.get( |
||||
|
'active_id', False): |
||||
|
purchase_order = self.env['purchase.order'].browse( |
||||
|
self._context.get('active_id')) |
||||
|
return purchase_order.currency_id |
||||
|
|
||||
|
@api.model |
||||
|
def _default_has_down_payment(self): |
||||
|
"""Function to check the Purchase order has down payment or not""" |
||||
|
if self._context.get( |
||||
|
'active_model') == 'purchase.order' and self._context.get( |
||||
|
'active_id', False): |
||||
|
purchase_order = self.env['purchase.order'].browse( |
||||
|
self._context.get('active_id')) |
||||
|
return purchase_order.order_line.filtered( |
||||
|
lambda purchase_order_line: purchase_order_line.is_downpayment |
||||
|
) |
||||
|
return False |
||||
|
|
||||
|
advance_payment_method = fields.Selection([ |
||||
|
('delivered', 'Regular bill'), |
||||
|
('percentage', 'Down payment (percentage)'), |
||||
|
('fixed', 'Down payment (fixed amount)') |
||||
|
], string='Create Bill', default='delivered', required=True, |
||||
|
help="A standard bill is issued with all the order lines ready for billing, \ |
||||
|
according to their billing policy (based on ordered or delivered quantity).") |
||||
|
has_down_payments = fields.Boolean(string='Has down payments', |
||||
|
default=_default_has_down_payment, |
||||
|
readonly=True, |
||||
|
help='To check the invoice in down ' |
||||
|
'payment or not') |
||||
|
product_id = fields.Many2one('product.product', |
||||
|
string='Down Payment Product', |
||||
|
domain=[('type', '=', 'service')], |
||||
|
default=_default_product_id, |
||||
|
help='To add the down payment product') |
||||
|
deduct_down_payments = fields.Boolean(string='Deduct down payments', |
||||
|
default=False, |
||||
|
help='To mention the down payment ' |
||||
|
'amount deduct to next invoice') |
||||
|
amount = fields.Float(string='Down Payment Amount', digits='Account', |
||||
|
help="The percentage of amount to be bill in " |
||||
|
"advance, taxes excluded.") |
||||
|
currency_id = fields.Many2one('res.currency', string='Currency', |
||||
|
default=_default_currency_id, |
||||
|
help='Default company currency') |
||||
|
fixed_amount = fields.Monetary(string='Down Payment Amount (Fixed)', |
||||
|
help="The fixed amount to be bill in " |
||||
|
"advance, taxes excluded.") |
||||
|
deposit_account_id = fields.Many2one('account.account', |
||||
|
string="Income Account", |
||||
|
domain=[('deprecated', '=', False)], |
||||
|
help="Account used for deposits") |
||||
|
deposit_taxes_ids = fields.Many2many('account.tax', |
||||
|
string="Customer Taxes", |
||||
|
domain=[ |
||||
|
('type_tax_use', '=', 'purchase')], |
||||
|
help="Taxes used for deposits") |
||||
|
|
||||
|
def _get_advance_details(self, order): |
||||
|
"""Function to find get the down payment amount and purchase order""" |
||||
|
if self.advance_payment_method == 'percentage': |
||||
|
if all(self.product_id.taxes_id.mapped('price_include')): |
||||
|
amount = order.amount_total * self.amount / 100 |
||||
|
else: |
||||
|
amount = order.amount_untaxed * self.amount / 100 |
||||
|
name = _("Down payment of %s%%") % (self.amount) |
||||
|
else: |
||||
|
amount = self.fixed_amount |
||||
|
name = _('Down Payment') |
||||
|
context = {'lang': order.partner_id.lang} |
||||
|
del context |
||||
|
return amount, name |
||||
|
|
||||
|
def _prepare_po_line(self, order, tax_ids, amount): |
||||
|
"""Function to getting the purchase order line data""" |
||||
|
context = {'lang': order.partner_id.lang} |
||||
|
po_values = { |
||||
|
'name': _('Down Payment: %s / %s') % ( |
||||
|
time.strftime('%m-%Y-%d'), order.name), |
||||
|
'price_unit': amount, |
||||
|
'product_uom_qty': 0.0, |
||||
|
'product_qty': 0.0, |
||||
|
'order_id': order.id, |
||||
|
'product_uom': self.product_id.uom_id.id, |
||||
|
'product_id': self.product_id.id, |
||||
|
'taxes_id': [(6, 0, tax_ids)], |
||||
|
'is_downpayment': True, |
||||
|
'sequence': order.order_line and order.order_line[ |
||||
|
-1].sequence + 1 or 10, |
||||
|
'date_planned': datetime.today(), |
||||
|
} |
||||
|
del context |
||||
|
return po_values |
||||
|
|
||||
|
def _prepare_invoice_values(self, order, name, amount, so_line): |
||||
|
"""Function for take invoice values""" |
||||
|
invoice_vals = { |
||||
|
'ref': order.partner_ref or '', |
||||
|
'move_type': 'in_invoice', |
||||
|
'invoice_origin': order.name, |
||||
|
'invoice_user_id': order.user_id.id, |
||||
|
'narration': order.notes, |
||||
|
'partner_id': order.partner_id.id, |
||||
|
'fiscal_position_id': ( |
||||
|
order.fiscal_position_id or order.fiscal_position_id._get_fiscal_position( |
||||
|
order.partner_id)).id, |
||||
|
'currency_id': order.currency_id.id, |
||||
|
'payment_reference': order.partner_ref or '', |
||||
|
'invoice_payment_term_id': order.payment_term_id.id, |
||||
|
'partner_bank_id': order.company_id.partner_id.bank_ids[:1].id, |
||||
|
'invoice_line_ids': [(0, 0, { |
||||
|
'name': name, |
||||
|
'price_unit': amount, |
||||
|
'quantity': 1.0, |
||||
|
'product_id': self.product_id.id, |
||||
|
'purchase_line_id': so_line.id, |
||||
|
'product_uom_id': so_line.product_uom.id, |
||||
|
})], |
||||
|
} |
||||
|
return invoice_vals |
||||
|
|
||||
|
def _create_bill(self, order, so_line, amount): |
||||
|
"""Function for creating the purchase bill""" |
||||
|
if ( |
||||
|
self.advance_payment_method == 'percentage' and self.amount <= 0.00) or ( |
||||
|
self.advance_payment_method == 'fixed' and self.fixed_amount <= 0.00): |
||||
|
raise UserError( |
||||
|
_('The value of the down payment amount must be positive.')) |
||||
|
amount, name = self._get_advance_details(order) |
||||
|
invoice_vals = self._prepare_invoice_values(order, name, amount, |
||||
|
so_line) |
||||
|
if order.fiscal_position_id: |
||||
|
invoice_vals['fiscal_position_id'] = order.fiscal_position_id.id |
||||
|
invoice = self.env['account.move'].with_company(order.company_id) \ |
||||
|
.sudo().create(invoice_vals).with_user(self.env.uid) |
||||
|
return invoice |
||||
|
|
||||
|
def _prepare_down_payment_product_values(self): |
||||
|
return { |
||||
|
'name': _('Down payment'), |
||||
|
'type': 'service', |
||||
|
'invoice_policy': 'order', |
||||
|
'company_id': False, |
||||
|
'property_account_income_id': self.deposit_account_id.id, |
||||
|
'taxes_id': [Command.set(self.deposit_taxes_ids.ids)], |
||||
|
} |
||||
|
|
||||
|
def action_create_advance_bill(self): |
||||
|
"""Function for creating purchase down payment bill""" |
||||
|
purchase_order = self.env['purchase.order'].browse( |
||||
|
self._context.get('active_ids', [])) |
||||
|
if self.advance_payment_method == 'delivered': |
||||
|
if self.deduct_down_payments: |
||||
|
purchase_order._deduct_payment(final=self.deduct_down_payments) |
||||
|
else: |
||||
|
purchase_order.action_create_invoice() |
||||
|
else: |
||||
|
if not self.product_id: |
||||
|
vals = self._prepare_down_payment_product_values() |
||||
|
self.product_id = self.env['product.product'].create(vals) |
||||
|
self.env['ir.config_parameter'].sudo().set_param( |
||||
|
'purchase_down_payment.po_deposit_default_product_id', |
||||
|
self.product_id.id) |
||||
|
purchase_line_obj = self.env['purchase.order.line'] |
||||
|
for order in purchase_order: |
||||
|
amount, name = self._get_advance_details(order) |
||||
|
if self.product_id.invoice_policy != 'order': |
||||
|
raise UserError( |
||||
|
_('The product used to invoice a down payment should ' |
||||
|
'have an invoice policy set to "Ordered ' |
||||
|
'quantities". Please update your deposit product to ' |
||||
|
'be able to create a deposit invoice.')) |
||||
|
if self.product_id.type != 'service': |
||||
|
raise UserError( |
||||
|
_("The product used to invoice a down payment should " |
||||
|
"be of type 'Service'. Please use another product " |
||||
|
"or update this product.")) |
||||
|
taxes = self.product_id.taxes_id.filtered( |
||||
|
lambda |
||||
|
r: not order.company_id or r.company_id == order.company_id) |
||||
|
tax_ids = order.fiscal_position_id.map_tax(taxes).ids |
||||
|
po_line_values = self._prepare_po_line(order, |
||||
|
tax_ids, amount) |
||||
|
po_line = purchase_line_obj.create(po_line_values) |
||||
|
self._create_bill(order, po_line, amount) |
||||
|
if self._context.get('open_invoices', False): |
||||
|
return purchase_order.action_view_invoice() |
||||
|
return {'type': 'ir.actions.act_window_close'} |
||||
|
if self._context.get('open_invoices', False): |
||||
|
return purchase_order.action_view_invoice() |
||||
|
return {'type': 'ir.actions.act_window_close'} |
@ -0,0 +1,71 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<!-- Purchase Order Advance Payment Wizard--> |
||||
|
<record id="purchase_order_advance_payment_view_form" model="ir.ui.view"> |
||||
|
<field name="name">purchase.order.advance.payment.view.form</field> |
||||
|
<field name="model">purchase.order.advance.payment</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Purchase Order Advance Bill"> |
||||
|
<p class="oe_grey"> |
||||
|
Bills will be created in draft so that you can review them |
||||
|
before validation. |
||||
|
</p> |
||||
|
<group> |
||||
|
<field name="advance_payment_method" class="oe_inline" |
||||
|
widget="radio"/> |
||||
|
<field name="has_down_payments" invisible="1"/> |
||||
|
<label for="deduct_down_payments" string="" |
||||
|
invisible="has_down_payments == False or advance_payment_method != 'delivered'"/> |
||||
|
<div invisible="has_down_payments == False or advance_payment_method != 'delivered'" |
||||
|
id="down_payment_details"> |
||||
|
<field name="deduct_down_payments" nolabel="1"/> |
||||
|
<label for="deduct_down_payments"/> |
||||
|
</div> |
||||
|
<label for="amount" |
||||
|
invisible="advance_payment_method not in ('fixed','percentage')"/> |
||||
|
<div invisible="advance_payment_method not in ('fixed','percentage')" |
||||
|
id="payment_method_details"> |
||||
|
<field name="currency_id" invisible="1"/> |
||||
|
<field name="fixed_amount" |
||||
|
required="advance_payment_method == 'fixed'" |
||||
|
invisible="advance_payment_method != 'fixed'" |
||||
|
class="oe_inline"/> |
||||
|
<field name="amount" |
||||
|
required="advance_payment_method == 'percentage'" |
||||
|
invisible="advance_payment_method != 'percentage'" |
||||
|
class="oe_inline"/> |
||||
|
<span |
||||
|
invisible="advance_payment_method != 'percentage'" |
||||
|
class="oe_inline">% |
||||
|
</span> |
||||
|
</div> |
||||
|
<field name="product_id" |
||||
|
context="{'default_invoice_policy': 'order'}" |
||||
|
class="oe_inline" |
||||
|
invisible="advance_payment_method not in ('fixed','percentage')"/> |
||||
|
</group> |
||||
|
<footer> |
||||
|
<button name="action_create_advance_bill" |
||||
|
string="Create and View Bill" type="object" |
||||
|
context="{'open_invoices': True}" |
||||
|
class="btn-primary" data-hotkey="q"/> |
||||
|
<button name="action_create_advance_bill" id="create_advance_bill" |
||||
|
string="Create Bill" type="object" |
||||
|
data-hotkey="w"/> |
||||
|
<button string="Cancel" class="btn-secondary" |
||||
|
special="cancel" data-hotkey="z"/> |
||||
|
</footer> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!--Purchase Order Advance Payment Wizard action--> |
||||
|
<record id="purchase_order_advance_payment_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Create Bill</field> |
||||
|
<field name="type">ir.actions.act_window</field> |
||||
|
<field name="res_model">purchase.order.advance.payment</field> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="target">new</field> |
||||
|
<field name="binding_model_id" ref="purchase.model_purchase_order"/> |
||||
|
<field name="binding_view_types">list</field> |
||||
|
</record> |
||||
|
</odoo> |