Merge pull request #190 from expsa/zainab_base

[ADD]ADD bi_sales_security
This commit is contained in:
zainab2097 2024-07-14 17:33:19 +03:00 committed by GitHub
commit 3a2871fd55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
56 changed files with 1353 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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:

View File

@ -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' : '14.0.0.2',
'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:

View File

@ -0,0 +1,15 @@
# -*- coding : utf-8 -*-
# Part of BrowseInfo. See LICENSE file for full copyright and licensing details.
from odoo import SUPERUSER_ID
from odoo import api
def post_init_hook(cr, registry):
"""
website menu hide
"""
env = api.Environment(cr, SUPERUSER_ID, {})
cr.execute("""
update ir_model_data set noupdate=False where
model ='ir.rule' """)

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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:

View File

@ -0,0 +1,89 @@
# -*- 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"
@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 _check_company(self):
for partner in self:
comapny = self.env['res.company'].sudo().search([('partner_id','=',partner.id)])
if comapny:
partner_company = True
else:
partner_company = False
partner.update({
'is_company_user' : partner_company
})
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="_check_company", store=True)
company_id = fields.Many2one('res.company', 'Company', index=True,default=lambda self: self.env.company)
def search(self, args, **kwargs):
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:
args += [('allowed_user_ids','in',[self.env.user.id])]
elif own_access and not all_access :
args += [('id','=',self.env.user.partner_id.id)]
return super(ResPartner, self).search(args, **kwargs)
@api.model
def _name_search(self, name, args=None, operator='ilike', limit=100, name_get_uid=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')
if allowed_access and not all_access:
args += [('allowed_user_ids','in',[self.env.user.id])]
elif own_access and not all_access :
args += [('id','=',self.env.user.partner_id.id)]
return super(ResPartner, self.sudo().with_context(context))._name_search(name=name, args=args, operator=operator, limit=limit, name_get_uid=name_get_uid)
class ResCompany(models.Model):
_inherit = 'res.company'
@api.model
def create(self, vals):
comapny = super(ResCompany, self).create(vals)
if comapny.partner_id:
comapny.partner_id.write({
'is_company_user' : True
})
return comapny

View File

@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 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
3 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
4 access_res_partner_allowed res.partner.allowed bi_sales_security.model_res_partner_allowed 1 1 0 0

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record model="ir.module.category" id="module_category_sale_customer_management">
<field name="name">Sale Partners</field>
<field name="description">Helps you handle your customers by salespersons.</field>
<field name="sequence">3</field>
</record>
<record id="group_sales_security_own_customer" model="res.groups">
<field name="name">Own Customers Only</field>
<field name="category_id" ref="module_category_sale_customer_management"/>
<field name="comment">The user will have access to to see his/her own customers.</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="group_sales_security_allowed_customer" model="res.groups">
<field name="name">Allowed Customers Only</field>
<field name="category_id" ref="module_category_sale_customer_management"/>
<field name="implied_ids" eval="[(4, ref('bi_sales_security.group_sales_security_own_customer'))]"/>
<field name="comment">The user will have access to all allowed customers.</field>
</record>
<record id="group_sales_security_manager" model="res.groups">
<field name="name">All Customers</field>
<field name="comment">The User have access of All the customers.</field>
<field name="category_id" ref="module_category_sale_customer_management"/>
<field name="implied_ids" eval="[(4, ref('bi_sales_security.group_sales_security_allowed_customer'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
<record id="base.res_partner_rule_private_group" model="ir.rule">
<field name="active">False</field>
</record>
</data>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -0,0 +1,323 @@
<section class="oe_container lead mt64">
<div>
<div class="col-md-12 mt16" style="padding:0;">
<div class="col-md-12" style="padding:0;">
<div class="panel-group mb0 mt0" role="tablist" id="priceAccordeon" style="padding:0;">
<div class="panel-heading mb0 mt0 collapsed" role="tab" data-toggle="collapse" data-parent="#priceAccordeon" data-target="#priceAccordeon_area" aria-expanded="false" style="margin-left:0;padding:0 0 2px 0;text-align:right;">
<strong>
<div style="background-color:#875A7B;color:white;padding:5px;margin-bottom:3px;text-align:center;border-radius:5px;white-space:nowrap;display: inline-block;">
<strong style="color:white;">
Supported :
</strong>
</div>
<div style="background-color:#875A7B;color:white;padding:5px;margin-bottom:3px;text-align:center;border-radius:5px;white-space:nowrap;display: inline-block;">
<strong style="color:white;" title="The tool is compatible with the Odoo Enterprise version">
<i class="fa fa-check" style="margin-left:4px;"> </i>
Enterprise
</strong>
</div>
<div style="background-color:#875A7B;padding:5px;margin-top:3px;text-align:center;border-radius:5px;white-space:nowrap;display: inline-block;">
<strong style="color:white;" title="The tool is compatible with the Odoo Community version">
<i class="fa fa-check" style="margin-left:4px;"> </i>
Community
</strong>
</div>
<div style="background-color:#875A7B;color:white;padding:5px;margin-bottom:3px;text-align:center;border-radius:5px;white-space:nowrap;display: inline-block;">
<strong style="color:white;" title="The tool might be installed to Odoo.sh if you have a linked private git repository">
<i class="fa fa-check" style="margin-left:4px;"> </i>
Odoo.sh
</strong>
</div>
</strong>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container lead bi_title_box">
<div >
<div >
<h2 class="oe_slogan bi_title" style="color:#5082c4;">
<b> Sales Order Own Customer for Salesperson Odoo Apps </b>
</h2>
<p class="oe_slogan">
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.
</p>
<p class="oe_slogan" style="color: #49a3fe;font-size: 35px;font-style: italic;font-weight:bolder;">Multi Language Translation Available</p>
<p class="oe_slogan" style="color: #49a3fe;font-size: 25px;font-style: italic;font-weight:bolder;"> 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.
</p>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-12">
<div class="Language" style="text-align:center">
<img title="English" alt="English" style="margin:10px 10px" src="languages/English.png">
<img title="Arabic" alt="Arabic" style="margin:10px 10px" src="languages/Arabic.png">
<img title="French" alt="French" style="margin:10px 10px" src="languages/French.png">
<img title="Spanish" alt="Spanish" style="margin:10px 10px" src="languages/Spanish.png">
<img title="Dutch" alt="Dutch" style="margin:10px 10px" src="languages/Dutch.png">
</div>
</div>
</div>
</section>
<section class="oe_container lead bi_features">
<div >
<div>
<h3 class="oe_slogan" style="opacity:1;background: linear-gradient(to right, #86bcf2 0%, #e2f2f8 100%);padding: 10px 0px;color: ##201111;letter-spacing: 0.2em;text-transform: uppercase;text-shadow: 0.1em .04em 0.1em #7d8c88;"><b>Features</b></h3>
</div>
<div class="row">
<div class="col" style="margin: 10px;">
<div class="row">
<div class="col-md-3 text-center">
<img class="img img-responsive" style="max-width:100%;" src="features/qwn_users.png"/>
</div>
<div class="col-md-9">
<h4><b> Salesperson can See Own Customer Only. </b></h4>
<span class="oe_slogan"> Sales person can see only own customers where partner added as salesperson in customer. </span>
</div>
</div>
</div>
<div class="col" style="margin: 10px;">
<div class="row">
<div class="col-md-3 text-center">
<img class="img img-responsive" style="max-width:100%;" src="features/allowed_user.png"/>
</div>
<div class="col-md-9">
<h4><b> Salesperson can See Allowed Customers Only. </b></h4>
<span class="oe_slogan"> Sales person can see only those customer where partner added as allowed users. </span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col" style="margin: 10px;">
<div class="row">
<div class="col-md-3 text-center">
<img class="img img-responsive" style="max-width:100%;" src="features/customers.png"/>
</div>
<div class="col-md-9">
<h4><b> Salesperson can See All Customers. </b></h4>
<span class="oe_slogan"> Salesperson can access all customers and his/her sales order. </span>
</div>
</div>
</div>
<div class="col" style="margin: 10px;">
<div class="row">
<div class="col-md-3 text-center">
<img class="img img-responsive" style="max-width:100%;" src="features/mass_user.png"/>
</div>
<div class="col-md-9">
<h4><b> Assign Mass Allowed User to Multiple Customers. </b></h4>
<span class="oe_slogan"> User can add mass allowed user to multiple customer at a time. </span>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container lead mt64">
<div >
<div class="oe_slogan oe_spaced text-center">
<a class="btn mt8 mr8" title="Demo Request" style="background-color: #2875aa;color: #FFFFFF !important;font-size: 20px;font-weight: bold;border-radius: 7px;" href="mailto:sales@browseinfo.in?Subject=Demo Request for Sales Order Own Customer for Salesperson Odoo Apps" target="_top"> Demo Request </a>
<a class="btn mt8 ml8" title="Video Tutorial" style="background-color: #2875aa;color: #FFFFFF !important;font-size: 20px;font-weight: bold;border-radius: 7px;" href="https://youtu.be/S3zDkfNT56Y" target="_blank"> Video Tutorial</a>
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan" style="color: #49a3fe;font-size: 35px;font-style: italic;font-weight:bolder;"> Sales Partner Access : Allowed Customers Only </p>
<p class="oe_slogan"> Under Settings > Users & Companies > Users menu select "Allowed Customers Only" under sale partners to see partner only allowed customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="1_sale.png">
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan" style="color: #49a3fe;font-size: 35px;font-style: italic;font-weight:bolder;"> Add Allow Customers </p>
<p class="oe_slogan"> Select customers and click "Allow Users to Access Customers" from action menu to add allow customers.</p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="2_sale.png">
<p class="oe_slogan"> Select partners to access selected customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="3_sale.png">
<p class="oe_slogan"> User can see selected partners added to customers in "Allowed Users". </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="4_sale.png">
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan"> Partner can see only allowed customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="5_sale.png">
<p class="oe_slogan"> While creating sale order partner can create record only for allowed customers.</p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="6_sale.png">
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan" style="color: #49a3fe;font-size: 35px;font-style: italic;font-weight:bolder;"> Sales Partner Access : Own Customers Only </p>
<p class="oe_slogan"> Under Settings > Users & Companies > Users menu select "Own Customers Only" under sale partners to see partner only own customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="7_sale.png">
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan"> User can see selected partners added to customers in "Allowed Users". </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="8_sale.png">
<p class="oe_slogan" style="color: #49a3fe;font-size: 35px;font-style: italic;font-weight:bolder;"> Customer Sales Order Tree View </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="9_sale.png">
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan"> While creating sales order partner can access and create records for own customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="10_sale.png">
<p class="oe_slogan"> Sales manager can see customers sales order </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="11_sale.png">
</div>
</div>
</section>
<section class="oe_container lead">
<div>
<div>
<p class="oe_slogan" style="color: #49a3fe;font-size: 35px;font-style: italic;font-weight:bolder;"> Sales Partner Access : All Customers </p>
<p class="oe_slogan"> Under Settings > Users & Companies > Users menu select "All Customers" under sale partners to see partner all customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="12_sale.png">
<p class="oe_slogan"> Partner can see all customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="13_sale.png">
<p class="oe_slogan"> While creating sales order partner can access and create records for all customers. </p>
<img class="img-border img-responsive thumbnail mb16" style="border: 3px solid black;" src="14_sale.png">
</div>
</div>
</section>
<section class="oe_container oe_dark" style="min-width: 110%;margin-left: -5%;">
<div>
<div class="row">
<div class="col-sm-4" style="margin: auto;">
<p class="oe_slogan" style="font-size: 35px;color: #5082c4;font-style: italic;font-weight: bold;">Apps May You Like</p>
</div>
</div>
<div class="row col-sm-12" style="margin-left: 1%;padding: 1% 8%;">
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_create_single_invoice/">
<img class="img img-responsive" src="related/bi_create_single_invoice.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_sale_tripple_approval/">
<img class="img img-responsive" src="related/bi_sale_tripple_approval.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_mass_cancel_sale/">
<img class="img img-responsive" src="related/bi_mass_cancel_sale.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_automated_sale_order/">
<img class="img img-responsive" src="related/bi_automated_sale_order.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_sales_invoice_details/">
<img class="img img-responsive" src="related/bi_sales_invoice_details.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/sale_account_invoice_discount/">
<img class="img img-responsive" src="related/sale_account_invoice_discount.png" style="width: 100%;"/>
</a>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark" style="min-width: 110%;margin-left: -5%;">
<div>
<div class="row">
<div class="col-sm-4" style="margin: auto;">
<p class="oe_slogan" style="font-size: 35px;color: #5082c4;font-style: italic;font-weight: bold;">Most Demanded Apps</p>
</div>
</div>
<div class="row col-sm-12" style="margin-left: 1%;padding: 1% 8%;">
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/pos_orders_all/">
<img class="img img-responsive" src="demanded/all_in_one_pos.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_customer_overdue_statement/">
<img class="img img-responsive" src="demanded/customer_overdue.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/generic_excel_reports/">
<img class="img img-responsive" src="demanded/generic_excel_reports.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/sales_commission_generic/">
<img class="img img-responsive" src="demanded/sale_commision.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/bi_generic_import/">
<img class="img img-responsive" src="demanded/bi_generic_import.png" style="width: 100%;"/>
</a>
</div>
<div class="col-sm-4" style="padding: 5px;padding-right: 10px;">
<a href="https://apps.odoo.com/apps/modules/14.0/branch/">
<img class="img img-responsive" src="demanded/branch.png" style="width: 100%;"/>
</a>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div >
<div >
<h2 class="oe_slogan">Free Support</h2>
<h3 class="oe_slogan" style="font-size: 21px; color: #000000 !important;">You will get 90 Days free support incase any bugs or issue (Except data recovery).</h3>
<p class="oe_slogan" style="font-size: 18px; ">
At BrowseInfo we offer end to end solution for Odoo services. Which includes analysis &amp; 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 <a href="mailto:ticket@browseinfo.in">ticket@browseinfo.in</a> or raise a ticket on support.
</p>
</div>
</div>
</section>
<section class="oe_container lead">
<div >
<div >
<div class="img img-responsive text-center">
<a href="https://www.browseinfo.com" target="new" style="display: grid;">
<img src="bi_logo.png" style="margin: auto;max-width: 350px;">
</a>
</div>
</div>
<div class="oe_slogan oe_spaced text-center">
<a class="btn mt8" title="Query and Demo" style="background-color: #3497db;color: #FFFFFF !important;font-size: 20px;font-weight: bold;" href="mailto:sales@browseinfo.in?Subject=Demo Request for Sales Order Own Customer for Salesperson Odoo Apps" target="_blank"> Query and Demo </a>
<a class="btn mt8" title="Email on Support" style="background-color: #3497db;color: #FFFFFF !important;font-size: 20px;font-weight: bold;" href="mailto:ticket@browseinfo.in?Subject=Support Request for Sales Order Own Customer for Salesperson Odoo Apps" target="_blank"> Support Request </a>
</div>
</div>
</section>

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1015 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_partner_user_sale_form" model="ir.ui.view">
<field name="name">res.partner</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='sale']//field[@name='user_id']" position="after">
<field name="allowed_user_ids" widget="many2many_tags" options="{'no_create':True}"/>
<field name="is_company_user" invisible="0"/>
</xpath>
</field>
</record>
<record id="partner_user_sale_view" model="ir.actions.act_window">
<field name="name">Allow Users to Access Customers</field>
<field name="res_model">res.partner.allowed</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="binding_model_id" ref="base.model_res_partner" />
<field name="binding_view_types">list,form</field>
</record>
</data>
</odoo>

View File

@ -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:

View File

@ -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:

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="allow_users_request_form" model="ir.ui.view">
<field name="name">Allow Users to Access Customers</field>
<field name="model">res.partner.allowed</field>
<field name="arch" type="xml">
<form string="Import Invoice">
<group>
<group>
<field name="allowed_user_ids" widget="many2many_tags" options="{'no_create':True}" context="{'bi_customer':True}"/>
</group>
</group>
<footer>
<button name="assign_users" string="Assign Users" class="btn btn-primary" icon="fa-user" type="object"/>
<button name="cancel" string="Cancel" class="oe_link" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="bi_allow_users_action" model="ir.actions.act_window">
<field name="name">Allow Users to Access Customers</field>
<field name="res_model">res.partner.allowed</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>