Skip to content

Commit

Permalink
[ADD] portal_sale_distributor: add acces rule for portal distributor
Browse files Browse the repository at this point in the history
  • Loading branch information
lav-adhoc committed Nov 8, 2023
1 parent d136a84 commit 0142c00
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 4 deletions.
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<odoo>
<!-- <odoo noupdate="1"> -->
<record model="ir.module.category" id="category_portal_distributor">
<field name="name">Portal Distributor</field>
<field name="parent_id" ref="portal_backend.category_portal_advanced"/>
Expand Down
4 changes: 2 additions & 2 deletions portal_sale_distributor/views/product_template_views.xml
Expand Up @@ -114,9 +114,9 @@
<field name="default_code" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</field>
<field name="detailed_type" position="attributes">
<!-- <field name="detailed_type" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</field>
</field> -->
<field name="barcode" position="attributes">
<attribute name="groups">!portal_sale_distributor.group_portal_backend_distributor</attribute>
</field>
Expand Down
73 changes: 73 additions & 0 deletions portal_sale_distributor_barcode/README.rst
@@ -0,0 +1,73 @@
.. |company| replace:: ADHOC SA

.. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png
:alt: ADHOC SA
:target: https://www.adhoc.com.ar

.. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png

.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=========================================
Portal Distributor Sale with l10n_ar Sale
=========================================

This module integrate portal sale distributor using l10n_ar_sale.

#. Add a model access rule in order to able portal distributor users to create sale orders with sales checkbook.

Installation
============

To install this module, you need to:

#. Just install this module.

Configuration
=============

To configure this module, you need to:

#. The same as 'Portal Sale Distributor' module.

Usage
=====

To use this module, you need to:

#. Log in with a user with the portal distributor group.
#. Go to My Addresses.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: http://runbot.adhoc.com.ar/

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/ingadhoc/sale/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* |company| |icon|

Contributors
------------

Maintainer
----------

|company_logo|

This module is maintained by the |company|.

To contribute to this module, please visit https://www.adhoc.com.ar.
4 changes: 4 additions & 0 deletions portal_sale_distributor_barcode/__init__.py
@@ -0,0 +1,4 @@
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
39 changes: 39 additions & 0 deletions portal_sale_distributor_barcode/__manifest__.py
@@ -0,0 +1,39 @@
##############################################################################
#
# Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Portal Distributor Barcodes',
'version': "16.0.1.0.0",
'category': 'Tools',
'complexity': 'easy',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
'depends': [
'barcodes',
'portal_sale_distributor',
],
'demo': [
],
'data': [
'security/ir.model.access.csv',
],
'installable': True,
'auto_install': True,
}
3 changes: 3 additions & 0 deletions portal_sale_distributor_barcode/security/ir.model.access.csv
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_barcode_rule_portal_distributor,barcode.rule.portal.distributor,barcodes.model_barcode_nomenclature,portal_sale_distributor.group_portal_backend_distributor,1,0,0,0

73 changes: 73 additions & 0 deletions portal_sale_distributor_sale_exception/README.rst
@@ -0,0 +1,73 @@
.. |company| replace:: ADHOC SA

.. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png
:alt: ADHOC SA
:target: https://www.adhoc.com.ar

.. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png

.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=========================================
Portal Distributor Sale with l10n_ar Sale
=========================================

This module integrate portal sale distributor using barcode.

#. Add a model access rule in order to able portal distributor users to create sale orders with barcode.

Installation
============

To install this module, you need to:

#. Just install this module.

Configuration
=============

To configure this module, you need to:

#. The same as 'Portal Sale Distributor' module.

Usage
=====

To use this module, you need to:

#. Log in with a user with the portal distributor group.
#. Go to My Addresses.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: http://runbot.adhoc.com.ar/

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/ingadhoc/sale/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* |company| |icon|

Contributors
------------

Maintainer
----------

|company_logo|

This module is maintained by the |company|.

To contribute to this module, please visit https://www.adhoc.com.ar.
4 changes: 4 additions & 0 deletions portal_sale_distributor_sale_exception/__init__.py
@@ -0,0 +1,4 @@
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
39 changes: 39 additions & 0 deletions portal_sale_distributor_sale_exception/__manifest__.py
@@ -0,0 +1,39 @@
##############################################################################
#
# Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Portal Distributor Sale Exception',
'version': "16.0.1.0.0",
'category': 'Tools',
'complexity': 'easy',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
'depends': [
'sale_exception',
'portal_sale_distributor',
],
'demo': [
],
'data': [
'security/ir.model.access.csv',
],
'installable': True,
'auto_install': True,
}
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_sale_exception_rule_portal_distributor,sale.exception.portal.distributor,sale_exception.model_sale_exception_confirm,portal_sale_distributor.group_portal_backend_distributor,1,0,0,0

0 comments on commit 0142c00

Please sign in to comment.