diff --git a/odex30_base/bi_sales_security/LICENSE b/odex30_base/bi_sales_security/LICENSE new file mode 100644 index 0000000..de7bcc6 --- /dev/null +++ b/odex30_base/bi_sales_security/LICENSE @@ -0,0 +1,28 @@ +Odoo Proprietary License v1.0 + +This software and associated files (the "Software") may only be used (executed, +modified, executed after modifications) if you have purchased a valid license +from the authors, typically via Odoo Apps, or if you have received a written +agreement from the authors of the Software (see the COPYRIGHT file). + +You may develop Odoo modules that use the Software as a library (typically +by depending on it, importing it and using its resources), but without copying +any source code or material from the Software. You may distribute those +modules under the license of your choice, provided that this license is +compatible with the terms of the Odoo Proprietary License (For example: +LGPL, MIT, or proprietary licenses similar to this one). + +It is forbidden to publish, distribute, sublicense, or sell copies of the Software +or modified copies of the Software. + +The above copyright notice and this permission notice must be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + diff --git a/odex30_base/bi_sales_security/ReadMe b/odex30_base/bi_sales_security/ReadMe new file mode 100644 index 0000000..1d42082 --- /dev/null +++ b/odex30_base/bi_sales_security/ReadMe @@ -0,0 +1,9 @@ +Date : 26-05-2021 +Fixes: + 1) Update record rules. (fix login issue and access issue) + 2) Update act window method + 3) Add new company partner access. + + +=> 14.0.0.2 : Update Access rule of sale partners + Update access for when not any group select in sale parterns diff --git a/odex30_base/bi_sales_security/__init__.py b/odex30_base/bi_sales_security/__init__.py new file mode 100644 index 0000000..c5ec4f5 --- /dev/null +++ b/odex30_base/bi_sales_security/__init__.py @@ -0,0 +1,8 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +from . import models +from . import wizard +from .hooks import post_init_hook + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/odex30_base/bi_sales_security/__manifest__.py b/odex30_base/bi_sales_security/__manifest__.py new file mode 100644 index 0000000..1facced --- /dev/null +++ b/odex30_base/bi_sales_security/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +{ + 'name' : 'Salesperson permission for Own Customer in Odoo ', + 'version' : '1.0', + 'category' : 'Sales', + 'summary' : 'Salesperson Own sale order Salesperson Own Customer Salesperson Own sales person own customer sale person own customer access own customer access by sales person own customer access by salesman customer based sales person permission saleperson own customer', + 'description' : """You can manage the + +odoo customer by grouping them in new group for better +Odoo sales access for salesperson own customers +odoo customer based on sales person permissions salesperson access permission salesperson restricted access +Odoo Salesperson Own Customer and Sale Orders sales person customerwise access +Odoo salesperson customer access +Odoo salesperson permission SalesPerson can view only customers +Allow you to set multiple sales person on customer form. +SalesPerson on Quote/Sales order can view his own customers only. +SalesPerson on Invoice/Bill can view his own customers only. +Own customers on sales order and invoice forms for sales person login. +Odoo Allow Sales person can see Own Customer Allow Salesperson can see Own Customer into sale order. +Odoo Allow Sales person can see Own Customer into Invoices Manager can assign multiple sales person to one customer +Odoo sales Person customer add many sales person for single customer +Odoo Add Multipe or one salesperson into salesperson field on customer form. +odoo own customer access by sales person own customer access by sales man +Odoo salesman own customer access + + + """, + 'author' : 'BrowseInfo', + 'website' : 'https://www.browseinfo.com', + "price": 9, + "currency": 'EUR', + 'depends' : ['base','sale_management'], + 'data' : [ + 'security/sales_person.xml', + 'security/ir.model.access.csv', + 'wizard/allow_customers_views.xml', + 'views/customer_views.xml', + ], + 'qweb': [ + ], + 'installable' : True, + 'auto_install' : False, + 'live_test_url' :'https://youtu.be/S3zDkfNT56Y', + "images":["static/description/Banner.png"], + +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/odex30_base/bi_sales_security/hooks.py b/odex30_base/bi_sales_security/hooks.py new file mode 100644 index 0000000..c162d53 --- /dev/null +++ b/odex30_base/bi_sales_security/hooks.py @@ -0,0 +1,9 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +def post_init_hook(env): + """ + website menu hide + """ + model_data = env['ir.model.data'] + model_data.search([('model', '=', 'ir.rule')]).write({'noupdate': False}) diff --git a/odex30_base/bi_sales_security/i18n/ar_001.po b/odex30_base/bi_sales_security/i18n/ar_001.po new file mode 100644 index 0000000..7851b00 --- /dev/null +++ b/odex30_base/bi_sales_security/i18n/ar_001.po @@ -0,0 +1,173 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * bi_sales_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-01 12:32+0000\n" +"PO-Revision-Date: 2021-04-01 12:32+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_manager +msgid "All Customers" +msgstr "كل العملاء" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner_allowed +msgid "Allow Partner to SalesPerson" +msgstr "السماح للشريك مندوب المبيعات" + +#. module: bi_sales_security +#: model:ir.actions.act_window,name:bi_sales_security.bi_allow_users_action +#: model:ir.actions.act_window,name:bi_sales_security.partner_user_sale_view +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__allowed_user_ids +msgid "Allow Users to Access Customers" +msgstr "السماح للمستخدمين بالوصول إلى العملاء" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_allowed_customer +msgid "Allowed Customers Only" +msgstr "العملاء المسموح لهم فقط" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner__allowed_user_ids +#: model:ir.model.fields,field_description:bi_sales_security.field_res_users__allowed_user_ids +msgid "Allowed Users" +msgstr "المستخدمون المسموح لهم" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Assign Users" +msgstr "تعيين المستخدمين" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Cancel" +msgstr "يلغي" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "" +"Cannot find a chart of accounts for this company, You should configure it. \n" +"Please go to Account Configuration." +msgstr "" +"لم نستطع العثور على دليل محاسبي لهذه المؤسسة، عليك ضبطه.\n" +"برجاء الذهاب لإعدادات ضبط الحساب." + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner +msgid "Contact" +msgstr "جهة الاتصال" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_uid +msgid "Created by" +msgstr "انشأ من قبل" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_date +msgid "Created on" +msgstr "تم إنشاؤها على" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__display_name +msgid "Display Name" +msgstr "اسم العرض" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Go to the configuration panel" +msgstr "الذهاب للوحة الإعدادات" + +#. module: bi_sales_security +#: model:ir.module.category,description:bi_sales_security.module_category_sale_customer_management +msgid "Helps you handle your customers by salespersons." +msgstr "يساعدك في التعامل مع عملائك عن طريق مندوبي المبيعات." + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__id +msgid "ID" +msgstr "هوية شخصية" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Import Invoice" +msgstr "فاتورة الاستيراد" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_account_move +msgid "Journal Entries" +msgstr "القيود اليومية" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed____last_update +msgid "Last Modified on" +msgstr "تاريخ آخر تعديل" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_uid +msgid "Last Updated by" +msgstr "آخر تحديث بواسطة" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_date +msgid "Last Updated on" +msgstr "آخر تحديث في" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_own_customer +msgid "Own Customers Only" +msgstr "عملاء خاصون فقط" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/wizard/allow_customers.py:0 +#, python-format +msgid "Please Select At least One User..!!!!" +msgstr "الرجاء تحديد مستخدم واحد على الأقل .. !!!!" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Please define an accounting sales journal for the company %s (%s)." +msgstr "الرجاء تحديد دفتر يومية مبيعات محاسبة للشركة ٪s (٪s)." + +#. module: bi_sales_security +#: model:ir.module.category,name:bi_sales_security.module_category_sale_customer_management +msgid "Sale Partners" +msgstr "شركاء البيع" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_sale_order +msgid "Sales Order" +msgstr "أمر البيع" + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_manager +msgid "The User have access of All the customers." +msgstr "يمكن للمستخدم الوصول إلى جميع العملاء." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_allowed_customer +msgid "The user will have access to all allowed customers." +msgstr "سيتمكن المستخدم من الوصول إلى جميع العملاء المسموح لهم." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_own_customer +msgid "The user will have access to to see his/her own customers." +msgstr "سيتمكن المستخدم من الوصول لرؤية عملائه." + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Warning for %s" +msgstr "تحذير لـ %s" diff --git a/odex30_base/bi_sales_security/i18n/es.po b/odex30_base/bi_sales_security/i18n/es.po new file mode 100644 index 0000000..31deed8 --- /dev/null +++ b/odex30_base/bi_sales_security/i18n/es.po @@ -0,0 +1,173 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * bi_sales_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-02 11:58+0000\n" +"PO-Revision-Date: 2021-04-02 11:58+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_manager +msgid "All Customers" +msgstr "Todas las clientas" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner_allowed +msgid "Allow Partner to SalesPerson" +msgstr "Permitir socio a SalesPerson" + +#. module: bi_sales_security +#: model:ir.actions.act_window,name:bi_sales_security.bi_allow_users_action +#: model:ir.actions.act_window,name:bi_sales_security.partner_user_sale_view +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__allowed_user_ids +msgid "Allow Users to Access Customers" +msgstr "Permitir a las usuarias acceder a las clientes" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_allowed_customer +msgid "Allowed Customers Only" +msgstr "Solo clientes permitidos" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner__allowed_user_ids +#: model:ir.model.fields,field_description:bi_sales_security.field_res_users__allowed_user_ids +msgid "Allowed Users" +msgstr "Usuarios permitidas" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Assign Users" +msgstr "Asignar usuarias" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Cancel" +msgstr "Cancelar" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "" +"Cannot find a chart of accounts for this company, You should configure it. \n" +"Please go to Account Configuration." +msgstr "" +"No se ha podido encontrar un árbol de cuentas de esta compañía, debería " +"configurar una. Por favor, diríjase a la configuración de cuentas." + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner +msgid "Contact" +msgstr "Contacto" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_date +msgid "Created on" +msgstr "Creado en" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__display_name +msgid "Display Name" +msgstr "Nombre para mostrar" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Go to the configuration panel" +msgstr "Ir al panel de configuración" + +#. module: bi_sales_security +#: model:ir.module.category,description:bi_sales_security.module_category_sale_customer_management +msgid "Helps you handle your customers by salespersons." +msgstr "Le ayuda a manejar a sus clientes por parte de los vendedores." + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__id +msgid "ID" +msgstr "IDENTIFICACIÓN" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Import Invoice" +msgstr "Importar factura" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_account_move +msgid "Journal Entries" +msgstr "Asientos contables" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_uid +msgid "Last Updated by" +msgstr "Actualizado por última vez por" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_date +msgid "Last Updated on" +msgstr "Ultima actualización en" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_own_customer +msgid "Own Customers Only" +msgstr "Solo para clientes propios" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/wizard/allow_customers.py:0 +#, python-format +msgid "Please Select At least One User..!!!!" +msgstr "Seleccione al menos un usuario .. !!!!" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Please define an accounting sales journal for the company %s (%s)." +msgstr "Defina un diario de ventas contables para la empresa. %s (%s)." + +#. module: bi_sales_security +#: model:ir.module.category,name:bi_sales_security.module_category_sale_customer_management +msgid "Sale Partners" +msgstr "Socios de venta" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_sale_order +msgid "Sales Order" +msgstr "Pedido de venta" + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_manager +msgid "The User have access of All the customers." +msgstr "El Usuario tiene acceso de Todos los clientes." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_allowed_customer +msgid "The user will have access to all allowed customers." +msgstr "El usuario tendrá acceso a todos los clientes permitidos." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_own_customer +msgid "The user will have access to to see his/her own customers." +msgstr "El usuario tendrá acceso para ver a sus propios clientes." + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Warning for %s" +msgstr "Aviso para %s" diff --git a/odex30_base/bi_sales_security/i18n/fr.po b/odex30_base/bi_sales_security/i18n/fr.po new file mode 100644 index 0000000..3cac4ab --- /dev/null +++ b/odex30_base/bi_sales_security/i18n/fr.po @@ -0,0 +1,174 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * bi_sales_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-02 08:03+0000\n" +"PO-Revision-Date: 2021-04-02 08:03+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_manager +msgid "All Customers" +msgstr "Tous les clients" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner_allowed +msgid "Allow Partner to SalesPerson" +msgstr "Autoriser le partenaire à devenir vendeur" + +#. module: bi_sales_security +#: model:ir.actions.act_window,name:bi_sales_security.bi_allow_users_action +#: model:ir.actions.act_window,name:bi_sales_security.partner_user_sale_view +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__allowed_user_ids +msgid "Allow Users to Access Customers" +msgstr "Autoriser les utilisateurs à accéder aux clients" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_allowed_customer +msgid "Allowed Customers Only" +msgstr "Clients autorisés uniquement" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner__allowed_user_ids +#: model:ir.model.fields,field_description:bi_sales_security.field_res_users__allowed_user_ids +msgid "Allowed Users" +msgstr "Utilisateurs autorisés" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Assign Users" +msgstr "Attribuer des utilisateurs" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Cancel" +msgstr "Annuler" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "" +"Cannot find a chart of accounts for this company, You should configure it. \n" +"Please go to Account Configuration." +msgstr "" +"Impossible de trouver un plan comptable pour cette société. Il vous faut le configurer.\n" +"Veuillez aller dans les configurations comptables" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner +msgid "Contact" +msgstr "Contacter" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_date +msgid "Created on" +msgstr "Créé sur" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__display_name +msgid "Display Name" +msgstr "Afficher un nom" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Go to the configuration panel" +msgstr "Aller sur le panneau de configuration" + +#. module: bi_sales_security +#: model:ir.module.category,description:bi_sales_security.module_category_sale_customer_management +msgid "Helps you handle your customers by salespersons." +msgstr "Vous aide à gérer vos clients par des vendeurs." + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__id +msgid "ID" +msgstr "identifiant" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Import Invoice" +msgstr "Importer une facture" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_account_move +msgid "Journal Entries" +msgstr "Pièces comptables" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_own_customer +msgid "Own Customers Only" +msgstr "Propres clients uniquement" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/wizard/allow_customers.py:0 +#, python-format +msgid "Please Select At least One User..!!!!" +msgstr "Veuillez sélectionner au moins un utilisateur .. !!!!" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Please define an accounting sales journal for the company %s (%s)." +msgstr "Veuillez définir un journal des ventes comptables pour la société %s (%s)." +"Veuillez définir un journal comptable des ventes pour l'entreprise %s (%s)." + +#. module: bi_sales_security +#: model:ir.module.category,name:bi_sales_security.module_category_sale_customer_management +msgid "Sale Partners" +msgstr "Partenaires de vente" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_sale_order +msgid "Sales Order" +msgstr "Bon de commande" + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_manager +msgid "The User have access of All the customers." +msgstr "L'utilisateur a accès à tous les clients." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_allowed_customer +msgid "The user will have access to all allowed customers." +msgstr "L'utilisateur aura accès à tous les clients autorisés." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_own_customer +msgid "The user will have access to to see his/her own customers." +msgstr "L'utilisateur aura accès à pour voir ses propres clients." + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Warning for %s" +msgstr "Avertissement pour %s" diff --git a/odex30_base/bi_sales_security/i18n/nl.po b/odex30_base/bi_sales_security/i18n/nl.po new file mode 100644 index 0000000..77a67cb --- /dev/null +++ b/odex30_base/bi_sales_security/i18n/nl.po @@ -0,0 +1,173 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * bi_sales_security +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-02 07:47+0000\n" +"PO-Revision-Date: 2021-04-02 07:47+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_manager +msgid "All Customers" +msgstr "Alle klanten" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner_allowed +msgid "Allow Partner to SalesPerson" +msgstr "Sta partner toe aan verkoper" + +#. module: bi_sales_security +#: model:ir.actions.act_window,name:bi_sales_security.bi_allow_users_action +#: model:ir.actions.act_window,name:bi_sales_security.partner_user_sale_view +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__allowed_user_ids +msgid "Allow Users to Access Customers" +msgstr "Geef gebruikers toegang tot klanten" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_allowed_customer +msgid "Allowed Customers Only" +msgstr "Alleen toegestane klanten" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner__allowed_user_ids +#: model:ir.model.fields,field_description:bi_sales_security.field_res_users__allowed_user_ids +msgid "Allowed Users" +msgstr "Toegestane gebruikers" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Assign Users" +msgstr "Wijs gebruikers toe" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Cancel" +msgstr "Annuleer" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "" +"Cannot find a chart of accounts for this company, You should configure it. \n" +"Please go to Account Configuration." +msgstr "" +"Kan geen grootboekschema vinden voor dit bedrijf. U dient dit in te stellen. \n" +"Ga alsjeblieft naar de instellingen." + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_res_partner +msgid "Contact" +msgstr "Contact" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_uid +msgid "Created by" +msgstr "Gemaakt door" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__create_date +msgid "Created on" +msgstr "Gemaakt op" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__display_name +msgid "Display Name" +msgstr "Weergavenaam" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Go to the configuration panel" +msgstr "Ga naar het configuratiepaneel" + +#. module: bi_sales_security +#: model:ir.module.category,description:bi_sales_security.module_category_sale_customer_management +msgid "Helps you handle your customers by salespersons." +msgstr "Helpt u bij het afhandelen van uw klanten door verkopers." + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__id +msgid "ID" +msgstr "ID kaart" + +#. module: bi_sales_security +#: model_terms:ir.ui.view,arch_db:bi_sales_security.allow_users_request_form +msgid "Import Invoice" +msgstr "Factuur importeren" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_account_move +msgid "Journal Entries" +msgstr "Boekingen" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed____last_update +msgid "Last Modified on" +msgstr "Laatst gewijzigd op" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_uid +msgid "Last Updated by" +msgstr "Laatst bijgewerkt door" + +#. module: bi_sales_security +#: model:ir.model.fields,field_description:bi_sales_security.field_res_partner_allowed__write_date +msgid "Last Updated on" +msgstr "Laatst geupdate op" + +#. module: bi_sales_security +#: model:res.groups,name:bi_sales_security.group_sales_security_own_customer +msgid "Own Customers Only" +msgstr "Alleen voor eigen klanten" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/wizard/allow_customers.py:0 +#, python-format +msgid "Please Select At least One User..!!!!" +msgstr "Selecteer ten minste één gebruiker .. !!!!" + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Please define an accounting sales journal for the company %s (%s)." +msgstr "Maak een verkoopdagboek voor dit bedrijf %s (%s)." + +#. module: bi_sales_security +#: model:ir.module.category,name:bi_sales_security.module_category_sale_customer_management +msgid "Sale Partners" +msgstr "Verkooppartners" + +#. module: bi_sales_security +#: model:ir.model,name:bi_sales_security.model_sale_order +msgid "Sales Order" +msgstr "Verkooporder" + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_manager +msgid "The User have access of All the customers." +msgstr "De gebruiker heeft toegang tot alle klanten." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_allowed_customer +msgid "The user will have access to all allowed customers." +msgstr "De gebruiker heeft toegang tot alle toegestane klanten." + +#. module: bi_sales_security +#: model:res.groups,comment:bi_sales_security.group_sales_security_own_customer +msgid "The user will have access to to see his/her own customers." +msgstr "De gebruiker krijgt toegang om zijn / haar eigen klanten te zien." + +#. module: bi_sales_security +#: code:addons/bi_sales_security/models/customer.py:0 +#, python-format +msgid "Warning for %s" +msgstr "Waarschuwing voor %s" diff --git a/odex30_base/bi_sales_security/models/__init__.py b/odex30_base/bi_sales_security/models/__init__.py new file mode 100644 index 0000000..6ef1ae0 --- /dev/null +++ b/odex30_base/bi_sales_security/models/__init__.py @@ -0,0 +1,6 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +from . import customer + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/odex30_base/bi_sales_security/models/customer.py b/odex30_base/bi_sales_security/models/customer.py new file mode 100644 index 0000000..fd6f65d --- /dev/null +++ b/odex30_base/bi_sales_security/models/customer.py @@ -0,0 +1,82 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, _ +from odoo.exceptions import UserError, ValidationError + +class ResPartner(models.Model): + _inherit = "res.partner" + + allowed_user_ids = fields.Many2many('res.users', 'res_partner_users_sale_rel', string="Allowed Users",default=lambda self: self.env.user) + is_company_user = fields.Boolean(string='Is Company Partner', compute="_compute_is_company_user", store=True) + company_id = fields.Many2one('res.company', 'Company', index=True, default=lambda self: self.env.company) + + @api.model + def default_get(self, vals): + result = super(ResPartner, self).default_get(vals) + + result.update({ + 'user_id' : self.env.user.id + }) + + return result + + @api.depends('company_type','is_company') + def _compute_is_company_user(self): + for partner in self: + company = self.env['res.company'].sudo().search([('partner_id','=',partner.id)]) + if company: + partner_company = True + else: + partner_company = False + + partner.update({ + 'is_company_user' : partner_company + }) + + @api.model + @api.readonly + @api.returns('self') + def search(self, domain, offset=0, limit=None, order=None): + allowed_access = self.env.user.has_group('bi_sales_security.group_sales_security_allowed_customer') + own_access = self.env.user.has_group('bi_sales_security.group_sales_security_own_customer') + all_access = self.env.user.has_group('bi_sales_security.group_sales_security_manager') + + + if allowed_access and not all_access: + domain += [('allowed_user_ids','in',[self.env.user.id])] + + elif own_access and not all_access : + domain += [('id','=',self.env.user.partner_id.id)] + + return super(ResPartner, self).search(domain, offset, limit, order) + + @api.model + def _name_search(self, name, domain=None, operator='ilike', limit=None, order=None): + context = dict(self.env.context) + allowed_access = self.env.user.has_group('bi_sales_security.group_sales_security_allowed_customer') + own_access = self.env.user.has_group('bi_sales_security.group_sales_security_own_customer') + all_access = self.env.user.has_group('bi_sales_security.group_sales_security_manager') + domain = domain or [] + if allowed_access and not all_access: + domain += [('allowed_user_ids','in',[self.env.user.id])] + + elif own_access and not all_access : + domain += [('id','=',self.env.user.partner_id.id)] + + return super(ResPartner, self.sudo().with_context(context))._name_search(name=name, domain=domain, operator=operator, limit=limit, order=order) + + +class ResCompany(models.Model): + _inherit = 'res.company' + + @api.model + def create(self, vals): + company = super(ResCompany, self).create(vals) + + if company.partner_id: + company.partner_id.write({ + 'is_company_user' : True + }) + + return company \ No newline at end of file diff --git a/odex30_base/bi_sales_security/security/ir.model.access.csv b/odex30_base/bi_sales_security/security/ir.model.access.csv new file mode 100644 index 0000000..689ee89 --- /dev/null +++ b/odex30_base/bi_sales_security/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_res_partner_user_sale,res.partner.user.sale,base.model_res_partner,bi_sales_security.group_sales_security_own_customer,1,1,0,0 +access_res_partner_user_sale_manager,res.partner.user.sale.manager,base.model_res_partner,bi_sales_security.group_sales_security_manager,1,1,1,1 +access_res_partner_allowed,res.partner.allowed,bi_sales_security.model_res_partner_allowed,,1,1,0,0 diff --git a/odex30_base/bi_sales_security/security/sales_person.xml b/odex30_base/bi_sales_security/security/sales_person.xml new file mode 100644 index 0000000..c63f029 --- /dev/null +++ b/odex30_base/bi_sales_security/security/sales_person.xml @@ -0,0 +1,34 @@ + + + + + + Sale Partners + Helps you handle your customers by salespersons. + 3 + + + + Own Customers Only + + The user will have access to to see his/her own customers. + + + + + Allowed Customers Only + + + The user will have access to all allowed customers. + + + + All Customers + The User have access of All the customers. + + + + + + + diff --git a/odex30_base/bi_sales_security/static/description/10_sale.png b/odex30_base/bi_sales_security/static/description/10_sale.png new file mode 100644 index 0000000..bf4d487 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/10_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/11_sale.png b/odex30_base/bi_sales_security/static/description/11_sale.png new file mode 100644 index 0000000..471a680 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/11_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/12_sale.png b/odex30_base/bi_sales_security/static/description/12_sale.png new file mode 100644 index 0000000..3047c02 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/12_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/13_sale.png b/odex30_base/bi_sales_security/static/description/13_sale.png new file mode 100644 index 0000000..657a005 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/13_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/14_sale.png b/odex30_base/bi_sales_security/static/description/14_sale.png new file mode 100644 index 0000000..1cdcea6 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/14_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/1_sale.png b/odex30_base/bi_sales_security/static/description/1_sale.png new file mode 100644 index 0000000..013e077 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/1_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/2_sale.png b/odex30_base/bi_sales_security/static/description/2_sale.png new file mode 100644 index 0000000..fe00c1e Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/2_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/3_sale.png b/odex30_base/bi_sales_security/static/description/3_sale.png new file mode 100644 index 0000000..445607b Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/3_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/4_sale.png b/odex30_base/bi_sales_security/static/description/4_sale.png new file mode 100644 index 0000000..bbe5b1b Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/4_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/5_sale.png b/odex30_base/bi_sales_security/static/description/5_sale.png new file mode 100644 index 0000000..e17b2fe Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/5_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/6_sale.png b/odex30_base/bi_sales_security/static/description/6_sale.png new file mode 100644 index 0000000..606a230 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/6_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/7_sale.png b/odex30_base/bi_sales_security/static/description/7_sale.png new file mode 100644 index 0000000..3302c19 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/7_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/8_sale.png b/odex30_base/bi_sales_security/static/description/8_sale.png new file mode 100644 index 0000000..260b78b Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/8_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/9_sale.png b/odex30_base/bi_sales_security/static/description/9_sale.png new file mode 100644 index 0000000..1fe353b Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/9_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/Banner.png b/odex30_base/bi_sales_security/static/description/Banner.png new file mode 100644 index 0000000..ea931f3 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/Banner.png differ diff --git a/odex30_base/bi_sales_security/static/description/bi_logo.png b/odex30_base/bi_sales_security/static/description/bi_logo.png new file mode 100644 index 0000000..e5d60b2 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/bi_logo.png differ diff --git a/odex30_base/bi_sales_security/static/description/demanded/all_in_one_pos.png b/odex30_base/bi_sales_security/static/description/demanded/all_in_one_pos.png new file mode 100644 index 0000000..e51fc57 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/demanded/all_in_one_pos.png differ diff --git a/odex30_base/bi_sales_security/static/description/demanded/bi_generic_import.png b/odex30_base/bi_sales_security/static/description/demanded/bi_generic_import.png new file mode 100644 index 0000000..785b657 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/demanded/bi_generic_import.png differ diff --git a/odex30_base/bi_sales_security/static/description/demanded/branch.png b/odex30_base/bi_sales_security/static/description/demanded/branch.png new file mode 100644 index 0000000..70209a6 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/demanded/branch.png differ diff --git a/odex30_base/bi_sales_security/static/description/demanded/customer_overdue.png b/odex30_base/bi_sales_security/static/description/demanded/customer_overdue.png new file mode 100644 index 0000000..b9efae2 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/demanded/customer_overdue.png differ diff --git a/odex30_base/bi_sales_security/static/description/demanded/generic_excel_reports.png b/odex30_base/bi_sales_security/static/description/demanded/generic_excel_reports.png new file mode 100644 index 0000000..4800329 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/demanded/generic_excel_reports.png differ diff --git a/odex30_base/bi_sales_security/static/description/demanded/sale_commision.png b/odex30_base/bi_sales_security/static/description/demanded/sale_commision.png new file mode 100644 index 0000000..145289f Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/demanded/sale_commision.png differ diff --git a/odex30_base/bi_sales_security/static/description/features/allowed_user.png b/odex30_base/bi_sales_security/static/description/features/allowed_user.png new file mode 100644 index 0000000..2fbcd2a Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/features/allowed_user.png differ diff --git a/odex30_base/bi_sales_security/static/description/features/customers.png b/odex30_base/bi_sales_security/static/description/features/customers.png new file mode 100644 index 0000000..450f670 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/features/customers.png differ diff --git a/odex30_base/bi_sales_security/static/description/features/mass_user.png b/odex30_base/bi_sales_security/static/description/features/mass_user.png new file mode 100644 index 0000000..42398f7 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/features/mass_user.png differ diff --git a/odex30_base/bi_sales_security/static/description/features/qwn_users.png b/odex30_base/bi_sales_security/static/description/features/qwn_users.png new file mode 100644 index 0000000..a9204d5 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/features/qwn_users.png differ diff --git a/odex30_base/bi_sales_security/static/description/icon.png b/odex30_base/bi_sales_security/static/description/icon.png new file mode 100644 index 0000000..ab0969d Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/icon.png differ diff --git a/odex30_base/bi_sales_security/static/description/index.html b/odex30_base/bi_sales_security/static/description/index.html new file mode 100644 index 0000000..31e1aa3 --- /dev/null +++ b/odex30_base/bi_sales_security/static/description/index.html @@ -0,0 +1,323 @@ +
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+

+ Sales Order Own Customer for Salesperson Odoo Apps +

+

+ This odoo app helps user to access only own customers, allowed customers and all customer based on configuration, User can see and create only own customers sales orders. User can assign sale person to customers or assign multiple allowed user who can access customer. +

+

Multi Language Translation Available

+

We have added Translation using google translate for English (US), Arabic, French / Français, Spanish / Español and Dutch / Nederlands, if you want to change translation terms or add new translation provide us translation, we will add that without any cost. +

+
+
+
+
+
+ English + Arabic + French + Spanish + Dutch +
+
+
+
+ +
+
+
+

Features

+
+
+
+
+
+ +
+
+

Salesperson can See Own Customer Only.

+ Sales person can see only own customers where partner added as salesperson in customer. +
+
+
+
+
+
+ +
+
+

Salesperson can See Allowed Customers Only.

+ Sales person can see only those customer where partner added as allowed users. +
+
+
+
+
+
+
+
+ +
+
+

Salesperson can See All Customers.

+ Salesperson can access all customers and his/her sales order. +
+
+
+
+
+
+ +
+
+

Assign Mass Allowed User to Multiple Customers.

+ User can add mass allowed user to multiple customer at a time. +
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+

Sales Partner Access : Allowed Customers Only

+

Under Settings > Users & Companies > Users menu select "Allowed Customers Only" under sale partners to see partner only allowed customers.

+ +
+
+
+ +
+
+
+

Add Allow Customers

+

Select customers and click "Allow Users to Access Customers" from action menu to add allow customers.

+ +

Select partners to access selected customers.

+ +

User can see selected partners added to customers in "Allowed Users".

+ +
+
+
+ +
+
+
+

Partner can see only allowed customers.

+ +

While creating sale order partner can create record only for allowed customers.

+ +
+
+
+ +
+
+
+

Sales Partner Access : Own Customers Only

+

Under Settings > Users & Companies > Users menu select "Own Customers Only" under sale partners to see partner only own customers.

+ +
+
+
+ +
+
+
+

User can see selected partners added to customers in "Allowed Users".

+ +

Customer Sales Order Tree View

+ + +
+
+
+ +
+
+
+

While creating sales order partner can access and create records for own customers.

+ +

Sales manager can see customers sales order

+ +
+
+
+ +
+
+
+

Sales Partner Access : All Customers

+

Under Settings > Users & Companies > Users menu select "All Customers" under sale partners to see partner all customers.

+ +

Partner can see all customers.

+ +

While creating sales order partner can access and create records for all customers.

+ +
+
+
+ +
+
+
+
+

Apps May You Like

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

Most Demanded Apps

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

Free Support

+

You will get 90 Days free support incase any bugs or issue (Except data recovery).

+

+ At BrowseInfo we offer end to end solution for Odoo services. Which includes analysis & consultation on the workflows and integration part. Please note that You're not allowed to distribute this module after purchase! Incase of any question regarding this module feel free to email us on ticket@browseinfo.in or raise a ticket on support. +

+
+
+
+ +
+
+
+
+ + + +
+
+ +
+
\ No newline at end of file diff --git a/odex30_base/bi_sales_security/static/description/languages/Arabic.png b/odex30_base/bi_sales_security/static/description/languages/Arabic.png new file mode 100644 index 0000000..d82390d Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/languages/Arabic.png differ diff --git a/odex30_base/bi_sales_security/static/description/languages/Dutch.png b/odex30_base/bi_sales_security/static/description/languages/Dutch.png new file mode 100644 index 0000000..b550f77 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/languages/Dutch.png differ diff --git a/odex30_base/bi_sales_security/static/description/languages/English.png b/odex30_base/bi_sales_security/static/description/languages/English.png new file mode 100644 index 0000000..65d8adc Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/languages/English.png differ diff --git a/odex30_base/bi_sales_security/static/description/languages/French.png b/odex30_base/bi_sales_security/static/description/languages/French.png new file mode 100644 index 0000000..0359a67 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/languages/French.png differ diff --git a/odex30_base/bi_sales_security/static/description/languages/Spanish.png b/odex30_base/bi_sales_security/static/description/languages/Spanish.png new file mode 100644 index 0000000..2899c0b Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/languages/Spanish.png differ diff --git a/odex30_base/bi_sales_security/static/description/related/bi_automated_sale_order.png b/odex30_base/bi_sales_security/static/description/related/bi_automated_sale_order.png new file mode 100644 index 0000000..a3223b9 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/related/bi_automated_sale_order.png differ diff --git a/odex30_base/bi_sales_security/static/description/related/bi_create_single_invoice.png b/odex30_base/bi_sales_security/static/description/related/bi_create_single_invoice.png new file mode 100644 index 0000000..0a7f877 Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/related/bi_create_single_invoice.png differ diff --git a/odex30_base/bi_sales_security/static/description/related/bi_mass_cancel_sale.png b/odex30_base/bi_sales_security/static/description/related/bi_mass_cancel_sale.png new file mode 100644 index 0000000..7f8f2fb Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/related/bi_mass_cancel_sale.png differ diff --git a/odex30_base/bi_sales_security/static/description/related/bi_sale_tripple_approval.png b/odex30_base/bi_sales_security/static/description/related/bi_sale_tripple_approval.png new file mode 100644 index 0000000..8c60ece Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/related/bi_sale_tripple_approval.png differ diff --git a/odex30_base/bi_sales_security/static/description/related/bi_sales_invoice_details.png b/odex30_base/bi_sales_security/static/description/related/bi_sales_invoice_details.png new file mode 100644 index 0000000..678d94b Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/related/bi_sales_invoice_details.png differ diff --git a/odex30_base/bi_sales_security/static/description/related/sale_account_invoice_discount.png b/odex30_base/bi_sales_security/static/description/related/sale_account_invoice_discount.png new file mode 100644 index 0000000..b71d06c Binary files /dev/null and b/odex30_base/bi_sales_security/static/description/related/sale_account_invoice_discount.png differ diff --git a/odex30_base/bi_sales_security/views/customer_views.xml b/odex30_base/bi_sales_security/views/customer_views.xml new file mode 100644 index 0000000..3244d9c --- /dev/null +++ b/odex30_base/bi_sales_security/views/customer_views.xml @@ -0,0 +1,23 @@ + + + + res.partner + res.partner + + + + + + + + + + + Allow Users to Access Customers + res.partner.allowed + form + new + + list,form + + \ No newline at end of file diff --git a/odex30_base/bi_sales_security/wizard/__init__.py b/odex30_base/bi_sales_security/wizard/__init__.py new file mode 100644 index 0000000..4f8fa65 --- /dev/null +++ b/odex30_base/bi_sales_security/wizard/__init__.py @@ -0,0 +1,6 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +from . import allow_customers + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/odex30_base/bi_sales_security/wizard/allow_customers.py b/odex30_base/bi_sales_security/wizard/allow_customers.py new file mode 100644 index 0000000..9792e5b --- /dev/null +++ b/odex30_base/bi_sales_security/wizard/allow_customers.py @@ -0,0 +1,31 @@ +# -*- coding : utf-8 -*- +# Part of BrowseInfo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, _ +from odoo.exceptions import UserError, ValidationError + +class ResPartner(models.TransientModel): + _name = "res.partner.allowed" + _description = "Allow Partner to SalesPerson" + + allowed_user_ids = fields.Many2many('res.users', 'res_partner_users_sale_wizard_rel', string="Allow Users to Access Customers") + + def assign_users(self): + # print ('********** assign *********** : ', self._context) + for wizard in self: + user_list = [] + active_ids = self._context.get('active_ids',[]) + active_model = self._context.get('active_model') + record_ids = self.env[active_model].browse(active_ids) + for users in wizard.allowed_user_ids: + user_list.append(users.id) + + if user_list: + for record in record_ids: + record.write({ + 'allowed_user_ids' : [(6 , 0, user_list)] + }) + else: + raise UserError(_('Please Select At least One User..!!!!')) + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/odex30_base/bi_sales_security/wizard/allow_customers_views.xml b/odex30_base/bi_sales_security/wizard/allow_customers_views.xml new file mode 100644 index 0000000..9ac661a --- /dev/null +++ b/odex30_base/bi_sales_security/wizard/allow_customers_views.xml @@ -0,0 +1,27 @@ + + + + Allow Users to Access Customers + res.partner.allowed + +
+ + + + + +
+
+
+
+
+ + + Allow Users to Access Customers + res.partner.allowed + form + new + +
\ No newline at end of file