diff --git a/website_sale_address_management/README.rst b/website_sale_address_management/README.rst new file mode 100644 index 000000000..0149f4c41 --- /dev/null +++ b/website_sale_address_management/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/licence-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 +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..08a74bc5e --- /dev/null +++ b/website_sale_address_management/__init__.py @@ -0,0 +1,23 @@ +# -- coding: utf-8 -- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies () +# Author: Cybrosys () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +from . import controllers +from . import models diff --git a/website_sale_address_management/__manifest__.py b/website_sale_address_management/__manifest__.py new file mode 100644 index 000000000..103f4504f --- /dev/null +++ b/website_sale_address_management/__manifest__.py @@ -0,0 +1,54 @@ +# -- coding: utf-8 -- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +{ + 'name': "Website Sale Address Management", + 'version': '16.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': ['base', '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..c682e27e4 --- /dev/null +++ b/website_sale_address_management/controllers/__init__.py @@ -0,0 +1,22 @@ +# -- coding: utf-8 -- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies () +# Author: Cybrosys () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +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..faa42f81a --- /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) 2023-TODAY Cybrosys Technologies () +# Author: Cybrosys () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################ +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..6add4b552 --- /dev/null +++ b/website_sale_address_management/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 14.09.2023 +#### Version 16.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..73b42c509 --- /dev/null +++ b/website_sale_address_management/models/__init__.py @@ -0,0 +1,22 @@ +# -- coding: utf-8 -- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies () +# Author: Cybrosys () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +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..9706ae88f --- /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) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +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/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/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/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/categories.png b/website_sale_address_management/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/categories.png differ diff --git a/website_sale_address_management/static/description/assets/misc/check-box.png b/website_sale_address_management/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/check-box.png differ diff --git a/website_sale_address_management/static/description/assets/misc/compass.png b/website_sale_address_management/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/compass.png differ diff --git a/website_sale_address_management/static/description/assets/misc/corporate.png b/website_sale_address_management/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/corporate.png differ diff --git a/website_sale_address_management/static/description/assets/misc/customer-support.png b/website_sale_address_management/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/customer-support.png differ diff --git a/website_sale_address_management/static/description/assets/misc/cybrosys-logo.png b/website_sale_address_management/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_sale_address_management/static/description/assets/misc/features.png b/website_sale_address_management/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/features.png differ diff --git a/website_sale_address_management/static/description/assets/misc/logo.png b/website_sale_address_management/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/logo.png differ diff --git a/website_sale_address_management/static/description/assets/misc/pictures.png b/website_sale_address_management/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/pictures.png differ diff --git a/website_sale_address_management/static/description/assets/misc/pie-chart.png b/website_sale_address_management/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/pie-chart.png differ diff --git a/website_sale_address_management/static/description/assets/misc/right-arrow.png b/website_sale_address_management/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/right-arrow.png differ diff --git a/website_sale_address_management/static/description/assets/misc/star.png b/website_sale_address_management/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/star.png differ diff --git a/website_sale_address_management/static/description/assets/misc/support.png b/website_sale_address_management/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/support.png differ diff --git a/website_sale_address_management/static/description/assets/misc/whatsapp.png b/website_sale_address_management/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_sale_address_management/static/description/assets/misc/whatsapp.png differ diff --git a/website_sale_address_management/static/description/assets/modules/11.png b/website_sale_address_management/static/description/assets/modules/11.png new file mode 100644 index 000000000..e90228872 Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/11.png differ diff --git a/website_sale_address_management/static/description/assets/modules/12.png b/website_sale_address_management/static/description/assets/modules/12.png new file mode 100644 index 000000000..df65629bf Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/12.png differ diff --git a/website_sale_address_management/static/description/assets/modules/13.png b/website_sale_address_management/static/description/assets/modules/13.png new file mode 100644 index 000000000..7a9d3b1f6 Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/13.png differ diff --git a/website_sale_address_management/static/description/assets/modules/14.png b/website_sale_address_management/static/description/assets/modules/14.png new file mode 100644 index 000000000..6058f6c3b Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/14.png differ diff --git a/website_sale_address_management/static/description/assets/modules/15.png b/website_sale_address_management/static/description/assets/modules/15.png new file mode 100644 index 000000000..a44d454aa Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/15.png differ diff --git a/website_sale_address_management/static/description/assets/modules/16.png b/website_sale_address_management/static/description/assets/modules/16.png new file mode 100644 index 000000000..d9374733c Binary files /dev/null and b/website_sale_address_management/static/description/assets/modules/16.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/billing_address.png b/website_sale_address_management/static/description/assets/screenshots/billing_address.png new file mode 100644 index 000000000..a694526a3 Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/billing_address.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/config_setting.png b/website_sale_address_management/static/description/assets/screenshots/config_setting.png new file mode 100644 index 000000000..09219ce46 Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/config_setting.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..790279db9 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/payment_page.png b/website_sale_address_management/static/description/assets/screenshots/payment_page.png new file mode 100644 index 000000000..dcf810d61 Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/payment_page.png differ diff --git a/website_sale_address_management/static/description/assets/screenshots/shipping_address.png b/website_sale_address_management/static/description/assets/screenshots/shipping_address.png new file mode 100644 index 000000000..4d31db217 Binary files /dev/null and b/website_sale_address_management/static/description/assets/screenshots/shipping_address.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..11c097c4c 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..c227b2438 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..9066b862c --- /dev/null +++ b/website_sale_address_management/static/description/index.html @@ -0,0 +1,646 @@ +
+ +
+ +
+
+ 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.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

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

+ Features +

+
+
+
+
+ + Show or Hide Fields by Switching on/off Toggles. +
+
+ + Set Default Country. +
+
+
+
+ + Set Fields as Mandatory or not. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ 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

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

+ Related + Products +

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

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ 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..59118df80 --- /dev/null +++ b/website_sale_address_management/views/res_config_settings_views.xml @@ -0,0 +1,131 @@ + + + + + + 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 @@ + + + +