diff --git a/website_sale_address_management/README.rst b/website_sale_address_management/README.rst new file mode 100644 index 000000000..289c0bd7c --- /dev/null +++ b/website_sale_address_management/README.rst @@ -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 + +Website Sale Address Management +=============================== +This Module Helps You to Filter Fields in Address Form and Show or Hide Fields by Switching on/off Toggles. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 (AGPL v3) +( https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developers: (Version 16) Rahul Rajeev @cybrosys , Jumana Jabin MP @cybrosys, + (Version 17) Sabeel B @cybrosys +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/website_sale_address_management/__init__.py b/website_sale_address_management/__init__.py new file mode 100644 index 000000000..7de116c51 --- /dev/null +++ b/website_sale_address_management/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sabeel B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import controllers, models diff --git a/website_sale_address_management/__manifest__.py b/website_sale_address_management/__manifest__.py new file mode 100644 index 000000000..89a509711 --- /dev/null +++ b/website_sale_address_management/__manifest__.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sabeel B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': "Website Sale Address Management", + 'version': '17.0.1.0.0', + 'category': 'Website', + 'summary': """This module helps you to show or hide fields by switching + on/off toggles,set fields as mandatory or not and set default country.""", + 'description': """This module helps you to show or hide fields by switching + on/off toggles.You can set fields as mandatory or not and also set default + country.All of these features can be changed from configuration settings + of Website module.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['website_sale'], + 'data': [ + 'views/res_config_settings_views.xml', + 'views/website_sale_templates.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'website_sale_address_management/static/src/css/' + 'address_management.css', + ], + }, + 'images': [ + 'static/description/banner.jpg', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/website_sale_address_management/controllers/__init__.py b/website_sale_address_management/controllers/__init__.py new file mode 100644 index 000000000..1cd0bc8df --- /dev/null +++ b/website_sale_address_management/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sabeel B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import website_sale_address_management diff --git a/website_sale_address_management/controllers/website_sale_address_management.py b/website_sale_address_management/controllers/website_sale_address_management.py new file mode 100644 index 000000000..1fe653940 --- /dev/null +++ b/website_sale_address_management/controllers/website_sale_address_management.py @@ -0,0 +1,194 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sabeel B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import http, tools, _ +from odoo.exceptions import ValidationError +from odoo.http import request +from odoo.addons.website_sale.controllers.main import WebsiteSale + + +class WebsiteSale(http.Controller): + """class used to monkey patch functions in class WebsiteSale""" + + def checkout_form_validate(self, mode, all_form_values, data): + """function to monkey patch function checkout_form_validate and + remove not required fields from list required_fields""" + # mode: tuple ('new|edit', 'billing|shipping') + # all_form_values: all values before preprocess + # data: values after preprocess + error = dict() + error_message = [] + if not data.get('country_id'): + default_country_id = request.env[ + 'ir.config_parameter'].sudo().get_param('default_country_id') + if default_country_id: + data['country_id'] = int(default_country_id) + # prevent name change if invoices exist + if data.get('partner_id'): + partner = request.env['res.partner'].browse(int(data['partner_id'])) + if partner.exists() and partner.name and \ + not partner.sudo().can_edit_vat() and 'name' in data and ( + data['name'] or False) != (partner.name or False): + error['name'] = 'error' + error_message.append( + _('Changing your name is not allowed once invoices ' + 'have been issued for your account. Please contact us ' + 'directly for this operation.')) + # Required fields from form + required_fields = [f for f in + (all_form_values.get('field_required') or '').split( + ',') if f] + # Required fields from mandatory field function + country_id = int(data.get('country_id', False)) + required_fields += mode[ + 1] == 'shipping' and \ + self._get_mandatory_fields_shipping(country_id) or \ + self._get_mandatory_fields_billing(country_id) + if mode[1] == 'shipping': + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_phone_is_required'): + if 'phone' in required_fields: + required_fields.remove('phone') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_zip_code_is_required'): + if 'zip' in required_fields: + required_fields.remove('zip') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_street_is_required'): + if 'street' in required_fields: + required_fields.remove('street') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_city_is_required'): + if 'city' in required_fields: + required_fields.remove('city') + elif mode[1] == 'billing': + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_phone_is_required'): + if 'phone' in required_fields: + required_fields.remove('phone') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_zip_code_is_required'): + if 'zip' in required_fields: + required_fields.remove('zip') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_street_is_required'): + if 'street' in required_fields: + required_fields.remove('street') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_city_is_required'): + if 'city' in required_fields: + required_fields.remove('city') + # error message for empty required fields + for field_name in required_fields: + if not data.get(field_name): + error[field_name] = 'missing' + # email validation + if data.get('email') and not tools.single_email_re.match( + data.get('email')): + error["email"] = 'error' + error_message.append( + _('Invalid Email! Please enter a valid email address.')) + # vat validation + partner = request.env['res.partner'] + if data.get("vat") and hasattr(partner, "check_vat"): + if country_id: + data["vat"] = partner.fix_eu_vat_number(country_id, + data.get("vat")) + partner_dummy = partner.new(self._get_vat_validation_fields(data)) + try: + partner_dummy.check_vat() + except ValidationError as exception: + error["vat"] = 'error' + error_message.append(exception.args[0]) + + if [err for err in error.values() if err == 'missing']: + error_message.append(_('Some required fields are empty.')) + return error, error_message + + def _get_mandatory_fields_billing(self, country_id=False): + """function to monkey patch function _get_mandatory_fields_billing and + remove not required fields from list req""" + req = ["name", "email", "street", "city", "country_id", "phone"] + if country_id: + country = request.env['res.country'].browse(country_id) + if country.state_required: + req += ['state_id'] + if country.zip_required: + req += ['zip'] + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_phone_is_required'): + req.remove('phone') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_zip_code_is_required'): + if "zip" in req: + req.remove('zip') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_street_is_required'): + req.remove('street') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_billing_city_is_required'): + req.remove('city') + return req + + def _get_mandatory_fields_shipping(self, country_id=False): + """function to monkey patch function _get_mandatory_fields_shipping and + remove not required fields from list req""" + req = ["name", "street", "city", "country_id", "phone"] + if country_id: + country = request.env['res.country'].browse(country_id) + if country.state_required: + req += ['state_id'] + if country.zip_required: + req += ['zip'] + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_phone_is_required'): + req.remove('phone') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_zip_code_is_required'): + if "zip" in req: + req.remove('zip') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_street_is_required'): + req.remove('street') + if not request.env['ir.config_parameter'].sudo().get_param( + 'website_sale_address_management.' + 'is_shipping_city_is_required'): + req.remove('city') + return req + + WebsiteSale.checkout_form_validate = checkout_form_validate + WebsiteSale._get_mandatory_fields_billing = _get_mandatory_fields_billing + WebsiteSale._get_mandatory_fields_shipping = _get_mandatory_fields_shipping diff --git a/website_sale_address_management/doc/RELEASE_NOTES.md b/website_sale_address_management/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..f2d6dc8b5 --- /dev/null +++ b/website_sale_address_management/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 20.02.2024 +#### Version 17.0.1.0.0 +#### ADD + - Initial Commit for Website Sale Address Management diff --git a/website_sale_address_management/models/__init__.py b/website_sale_address_management/models/__init__.py new file mode 100644 index 000000000..f4f6b3b67 --- /dev/null +++ b/website_sale_address_management/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sabeel B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import res_config_settings diff --git a/website_sale_address_management/models/res_config_settings.py b/website_sale_address_management/models/res_config_settings.py new file mode 100644 index 000000000..a4a6a7da7 --- /dev/null +++ b/website_sale_address_management/models/res_config_settings.py @@ -0,0 +1,145 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Sabeel B (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import api, fields, models + + +class ResConfigSettings(models.TransientModel): + """Inheriting ResConfigSettings Model. + This class extends the functionality of the 'res.config.settings' + model.It allows customizing and managing configuration settings + for the module """ + _inherit = 'res.config.settings' + + is_billing_phone = fields.Boolean( + string="Billing Phone", + config_parameter='website_sale_address_management.is_billing_phone', + help="Enable or disable the option for billing phone") + is_billing_phone_is_required = fields.Boolean( + string="Billing Phone Required", + config_parameter='website_sale_address_management' + '.is_billing_phone_is_required', + help="Specify whether billing phone is required") + is_billing_street = fields.Boolean( + string="Billing Street", + config_parameter='website_sale_address_management.is_billing_street', + help="Enable or disable the option for billing street") + is_billing_street_is_required = fields.Boolean( + string="Billing Street Is Required", + config_parameter='website_sale_address_management.' + 'is_billing_street_is_required', + help="Specify whether billing street is required") + is_billing_street2 = fields.Boolean( + string="Billing Street 2", + config_parameter='website_sale_address_management.is_billing_street2', + help="Enable or disable the option for billing street 2") + is_billing_city = fields.Boolean( + string="Billing City", + config_parameter='website_sale_address_management.is_billing_city', + help="Enable or disable the option for billing city") + is_billing_city_is_required = fields.Boolean( + string="Billing City Is Required", + config_parameter='website_sale_address_management' + '.is_billing_city_is_required', + help="Specify whether billing city is required") + billing_country_id = fields.Many2one('res.country', + config_parameter='billing_country', + string="Default Billing Country", + help="Specify default billing country") + is_billing_zip_code = fields.Boolean( + string="Billing ZIP Code", + config_parameter='website_sale_address_management.is_billing_zip_code', + help="Enable or disable the option for billing ZIP code") + is_billing_zip_code_is_required = fields.Boolean( + string="Billing ZIP Code Is Required", + config_parameter='website_sale_address_management.' + 'is_billing_zip_code_is_required', + help="Specify whether billing ZIP code is required") + is_shipping_phone = fields.Boolean( + string="Shipping Phone", + config_parameter='website_sale_address_management.is_shipping_phone', + help="Enable or disable the option for shipping phone") + is_shipping_phone_is_required = fields.Boolean( + string="Shipping Phone Is Required", + config_parameter='website_sale_address_management.' + 'is_shipping_phone_is_required', + help="Specify whether shipping phone is required") + is_shipping_street = fields.Boolean( + string="Shipping Street", + config_parameter='website_sale_address_management.is_shipping_street', + help="Enable or disable the option for shipping street") + is_shipping_street_is_required = fields.Boolean( + string="Shipping Street Is Required", + config_parameter='website_sale_address_management.' + 'is_shipping_street_is_required', + help="Specify whether shipping street is required") + is_shipping_street2 = fields.Boolean( + string="Shipping Street 2", + config_parameter='website_sale_address_management.is_shipping_street2', + help="Enable or disable the option for shipping street 2") + is_shipping_city = fields.Boolean( + string="Shipping City", + config_parameter='website_sale_address_management.is_shipping_city', + help="Enable or disable the option for shipping city") + is_shipping_city_is_required = fields.Boolean( + string="Shipping City Is Required", + config_parameter='website_sale_address_management.' + 'is_shipping_city_is_required', + help="Specify whether shipping city is required") + shipping_country_id = fields.Many2one('res.country', + config_parameter='shipping_country', + string="Default Shipping Country", + help="Specify the default " + "shipping country") + is_shipping_zip_code = fields.Boolean( + string="Shipping ZIP Code", + config_parameter='website_sale_address_management.is_shipping_zip_code', + help="Enable or disable the option for shipping ZIP code") + is_shipping_zip_code_is_required = fields.Boolean( + string="Shipping ZIP Code Is Required", + config_parameter='website_sale_address_management.' + 'is_shipping_zip_code_is_required', + help="Specify whether shipping ZIP code is required") + + @api.onchange('is_billing_phone', 'is_billing_street', + 'is_billing_city', 'is_billing_zip_code', 'is_shipping_phone', + 'is_shipping_street', 'is_shipping_city', + 'is_shipping_zip_code') + def _onchange_fields(self): + """This method is triggered when any of the specified fields + are changed. It updates the corresponding required fields based on + the user's input.""" + if not self.is_billing_phone: + self.is_billing_phone_is_required = False + if not self.is_billing_street: + self.is_billing_street_is_required = False + if not self.is_billing_city: + self.is_billing_city_is_required = False + if not self.is_billing_zip_code: + self.is_billing_zip_code_is_required = False + if not self.is_shipping_phone: + self.is_shipping_phone_is_required = False + if not self.is_shipping_street: + self.is_shipping_street_is_required = False + if not self.is_shipping_city: + self.is_shipping_city_is_required = False + if not self.is_shipping_zip_code: + self.is_shipping_zip_code_is_required = False diff --git a/website_sale_address_management/static/description/assets/icons/capture (1).png b/website_sale_address_management/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/capture (1).png differ diff --git a/website_sale_address_management/static/description/assets/icons/check.png b/website_sale_address_management/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/check.png differ diff --git a/website_sale_address_management/static/description/assets/icons/chevron.png b/website_sale_address_management/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/chevron.png differ diff --git a/website_sale_address_management/static/description/assets/icons/cogs.png b/website_sale_address_management/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/cogs.png differ diff --git a/website_sale_address_management/static/description/assets/icons/consultation.png b/website_sale_address_management/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/consultation.png differ diff --git a/website_sale_address_management/static/description/assets/icons/ecom-black.png b/website_sale_address_management/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/ecom-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/education-black.png b/website_sale_address_management/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/education-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/hotel-black.png b/website_sale_address_management/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/hotel-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/img.png b/website_sale_address_management/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/img.png differ diff --git a/website_sale_address_management/static/description/assets/icons/license.png b/website_sale_address_management/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/license.png differ diff --git a/website_sale_address_management/static/description/assets/icons/lifebuoy.png b/website_sale_address_management/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/lifebuoy.png differ diff --git a/website_sale_address_management/static/description/assets/icons/manufacturing-black.png b/website_sale_address_management/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/photo-capture.png b/website_sale_address_management/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/photo-capture.png differ diff --git a/website_sale_address_management/static/description/assets/icons/pos-black.png b/website_sale_address_management/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/pos-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/puzzle.png b/website_sale_address_management/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/puzzle.png differ diff --git a/website_sale_address_management/static/description/assets/icons/restaurant-black.png b/website_sale_address_management/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/restaurant-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/service-black.png b/website_sale_address_management/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/service-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/trading-black.png b/website_sale_address_management/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/trading-black.png differ diff --git a/website_sale_address_management/static/description/assets/icons/training.png b/website_sale_address_management/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/training.png differ diff --git a/website_sale_address_management/static/description/assets/icons/update.png b/website_sale_address_management/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/update.png differ diff --git a/website_sale_address_management/static/description/assets/icons/user.png b/website_sale_address_management/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/user.png differ diff --git a/website_sale_address_management/static/description/assets/icons/wrench.png b/website_sale_address_management/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_sale_address_management/static/description/assets/icons/wrench.png differ diff --git a/website_sale_address_management/static/description/assets/misc/Cybrosys R.png b/website_sale_address_management/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/Cybrosys R.png differ diff --git a/website_sale_address_management/static/description/assets/misc/email.svg b/website_sale_address_management/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_sale_address_management/static/description/assets/misc/phone.svg b/website_sale_address_management/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/website_sale_address_management/static/description/assets/misc/star (1) 2.svg b/website_sale_address_management/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_sale_address_management/static/description/assets/misc/support (1) 1.svg b/website_sale_address_management/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_sale_address_management/static/description/assets/misc/support-email.svg b/website_sale_address_management/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/website_sale_address_management/static/description/assets/misc/tick-mark.svg b/website_sale_address_management/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/website_sale_address_management/static/description/assets/misc/whatsapp 1.svg b/website_sale_address_management/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/website_sale_address_management/static/description/assets/misc/whatsapp.svg b/website_sale_address_management/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/website_sale_address_management/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_sale_address_management/static/description/assets/modules/1.png b/website_sale_address_management/static/description/assets/modules/1.png new file mode 100644 index 000000000..ba1058c42 Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/1.png differ diff --git a/website_sale_address_management/static/description/assets/modules/2.png b/website_sale_address_management/static/description/assets/modules/2.png new file mode 100644 index 000000000..6949185dd Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/2.png differ diff --git a/website_sale_address_management/static/description/assets/modules/3.png b/website_sale_address_management/static/description/assets/modules/3.png new file mode 100644 index 000000000..4e506f79b Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/3.png differ diff --git a/website_sale_address_management/static/description/assets/modules/4.png b/website_sale_address_management/static/description/assets/modules/4.png new file mode 100644 index 000000000..e78427938 Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/4.png differ diff --git a/website_sale_address_management/static/description/assets/modules/5.png b/website_sale_address_management/static/description/assets/modules/5.png new file mode 100755 index 000000000..272ec20f9 Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/5.png differ diff --git a/website_sale_address_management/static/description/assets/modules/6.png b/website_sale_address_management/static/description/assets/modules/6.png new file mode 100644 index 000000000..7d5c3154f Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/6.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/hero.gif b/website_sale_address_management/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..a44c894b9 Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/hero.gif differ diff --git a/website_sale_address_management/static/description/assets/screenshots/scrnshot-1.png b/website_sale_address_management/static/description/assets/screenshots/scrnshot-1.png new file mode 100644 index 000000000..c0327b505 Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/scrnshot-1.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/scrnshot-2.png b/website_sale_address_management/static/description/assets/screenshots/scrnshot-2.png new file mode 100644 index 000000000..3d5d4d69f Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/scrnshot-2.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/scrnshot-3.png b/website_sale_address_management/static/description/assets/screenshots/scrnshot-3.png new file mode 100644 index 000000000..d8cded8ea Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/scrnshot-3.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/scrnshot-4.png b/website_sale_address_management/static/description/assets/screenshots/scrnshot-4.png new file mode 100644 index 000000000..05c2036cf Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/scrnshot-4.png differ diff --git a/website_sale_address_management/static/description/banner.jpg b/website_sale_address_management/static/description/banner.jpg new file mode 100644 index 000000000..73e78a2c0 Binary files /dev/null and b/website_sale_address_management/static/description/banner.jpg differ diff --git a/website_sale_address_management/static/description/icon.png b/website_sale_address_management/static/description/icon.png new file mode 100644 index 000000000..38197d0b3 Binary files /dev/null and b/website_sale_address_management/static/description/icon.png differ diff --git a/website_sale_address_management/static/description/index.html b/website_sale_address_management/static/description/index.html new file mode 100644 index 000000000..d0b860a37 --- /dev/null +++ b/website_sale_address_management/static/description/index.html @@ -0,0 +1,585 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Website Sale Address Management

+

+ This Module Helps You to Show or Hide Fields by Switching + on/off Toggles, + Set Fields as Mandatory or not and Set Default Country. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Show or Hide Fields by Switching on/off Toggles.

+
+
+
+
+
+
+ +
+
+

Set Default Country.

+ +
+
+
+
+
+
+ +
+
+

Set Fields as Mandatory or not.

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

+ From Configuration Settings Choose the Fields You Need and Also + Set Default Country.

+
+
+
+
+
+
+ +
+
+

+ Then Go and Edit Billing Address .

+
+
+
+
+
+
+ +
+
+

+ Also, Edit the Shipping Address.

+
+
+
+
+
+
+ +
+
+

+ In Payment Page , You Can See the Edited Billing Address and + Shipping Address with Default Country.

+
+
+
+ + + +
+
+
+
    +
  • + Show or Hide Fields by Switching on/off Toggles. +
  • +
  • + Set Default Country. +
  • +
  • + Set Fields as Mandatory or not. +
  • + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:20th February 2024 +
+

+ + Initial Commit for Website Sale Address Management.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Licensing Consultancy

+
+
+
+
+
+
+

Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

Education

+

A platform for educational management

+
+
+
+
+ +

Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service Management

+

Keep track of services and invoice

+
+
+
+
+ +

Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to us on WhatsApp!

+
+91 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/website_sale_address_management/static/src/css/address_management.css b/website_sale_address_management/static/src/css/address_management.css new file mode 100644 index 000000000..5a839ca01 --- /dev/null +++ b/website_sale_address_management/static/src/css/address_management.css @@ -0,0 +1,16 @@ +@media (min-width: 768px){ +.o_setting_right_pane .o_field_widget:not(.o_field_boolean) { + width: auto !important; + padding: 0px 8px !important; + } + } +.address_head{ + margin-left: 30px; + margin-bottom: 22px; +} +#billing_country_id{ + width: 58%; +} +#shipping_country_id{ + width: 58%; +} diff --git a/website_sale_address_management/views/res_config_settings_views.xml b/website_sale_address_management/views/res_config_settings_views.xml new file mode 100644 index 000000000..a5a7462c9 --- /dev/null +++ b/website_sale_address_management/views/res_config_settings_views.xml @@ -0,0 +1,129 @@ + + + + + + res.config.settings.view.form.inherit.website.sale.address.management + + res.config.settings + + + +

ECommerce Address

+
+
+

Billing Address

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

Shipping Address

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website_sale_address_management/views/website_sale_templates.xml b/website_sale_address_management/views/website_sale_templates.xml new file mode 100644 index 000000000..0af4f0a9d --- /dev/null +++ b/website_sale_address_management/views/website_sale_templates.xml @@ -0,0 +1,363 @@ + + + +