Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions portal_sale_distributor_mrp_subcontracting/README.rst
Original file line number Diff line number Diff line change
@@ -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 MRP Subcontracting
===============================================

This module integrate portal sale distributor using MRP Subcontracting

#. Add a model access rule in order to able portal distributor users to add products in sale orders.
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error ortográfico: "able" debería ser "enable" (habilitar) en este contexto. "Able" es un adjetivo, mientras que se necesita un verbo.

Suggested change
#. Add a model access rule in order to able portal distributor users to add products in sale orders.
#. Add a model access rule in order to enable portal distributor users to add products in sale orders.

Copilot uses AI. Check for mistakes.

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_mrp_subcontracting/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
38 changes: 38 additions & 0 deletions portal_sale_distributor_mrp_subcontracting/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
##############################################################################
#
# 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 MRP Subcontracting",
"version": "18.0.1.0.0",
"category": "Tools",
"complexity": "easy",
"author": "ADHOC SA",
"website": "www.adhoc.com.ar",
"license": "AGPL-3",
"depends": [
"mrp_subcontracting",
"portal_sale_distributor",
],
"demo": [],
"data": [
"security/distributor_mrp_subcontratin_security.xml",
],
"installable": True,
"auto_install": True,
}
15 changes: 15 additions & 0 deletions portal_sale_distributor_mrp_subcontracting/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-07-03 05:10+0000\n"
"PO-Revision-Date: 2024-11-21 14:30+0000\n"
"Language-Team: Spanish (https://app.transifex.com/adhoc/teams/46451/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<!-- Sale Portal Distributor CRUD for Stock Warehouse with MRP Subcontrating -->
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error ortográfico en el título del PR: "moudle" debería ser "module".

Copilot uses AI. Check for mistakes.
<record id="portal_warehouses_subcontractor_rule" model="ir.rule">
<field name="name">Portal Distributor Warehouses Subcontractor</field>
<field name="model_id" ref="stock.model_stock_warehouse"/>
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('group_portal_backend_distributor'))]"/>
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La referencia al grupo group_portal_backend_distributor no incluye el módulo de origen. Debería ser ref('portal_sale_distributor.group_portal_backend_distributor') para referenciar correctamente el grupo definido en el módulo de dependencia.

Copilot uses AI. Check for mistakes.
<field eval="1" name="perm_unlink"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_create"/>
Comment on lines +10 to +13
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Los permisos configurados para estas reglas son contradictorios: todos los permisos están en 0 excepto perm_unlink que está en 1. Esto significa que los usuarios solo pueden eliminar registros pero no pueden leerlos, crearlos ni modificarlos. Normalmente, si se necesita acceso de lectura para permitir operaciones relacionadas con subcontratación, debería ser perm_read=1 y perm_unlink=0. Verificar cuál es el comportamiento deseado.

Copilot uses AI. Check for mistakes.
</record>

<!-- Sale Portal Distributor CRUD for UoM Subcontractor -->
<record id="portal_uom_subcontractor_rule" model="ir.rule">
<field name="name">Portal Distributor UoM Subcontractor</field>
<field name="model_id" ref="uom.model_uom_uom"/>
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('group_portal_backend_distributor'))]"/>
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La referencia al grupo group_portal_backend_distributor no incluye el módulo de origen. Debería ser ref('portal_sale_distributor.group_portal_backend_distributor') para referenciar correctamente el grupo definido en el módulo de dependencia.

Copilot uses AI. Check for mistakes.
<field eval="1" name="perm_unlink"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_create"/>
Comment on lines +22 to +25
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Los permisos configurados para esta regla son contradictorios: todos los permisos están en 0 excepto perm_unlink que está en 1. Esto significa que los usuarios solo pueden eliminar registros pero no pueden leerlos, crearlos ni modificarlos. Normalmente, si se necesita acceso de lectura para permitir operaciones relacionadas con subcontratación, debería ser perm_read=1 y perm_unlink=0. Verificar cuál es el comportamiento deseado.

Copilot uses AI. Check for mistakes.
</record>

<!-- Sale Portal Distributor CRUD for Stock Locations Subcontractor -->
<record id="portal_sale_order_user_rule" model="ir.rule">
<field name="name">Portal Distributor Stock Locations Subcontractor</field>
<field name="model_id" ref="stock.model_stock_location"/>
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('group_portal_backend_distributor'))]"/>
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La referencia al grupo group_portal_backend_distributor no incluye el módulo de origen. Debería ser ref('portal_sale_distributor.group_portal_backend_distributor') para referenciar correctamente el grupo definido en el módulo de dependencia.

Copilot uses AI. Check for mistakes.
<field eval="1" name="perm_unlink"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_create"/>
Comment on lines +34 to +37
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Los permisos configurados para esta regla son contradictorios: todos los permisos están en 0 excepto perm_unlink que está en 1. Esto significa que los usuarios solo pueden eliminar registros pero no pueden leerlos, crearlos ni modificarlos. Normalmente, si se necesita acceso de lectura para permitir operaciones relacionadas con subcontratación, debería ser perm_read=1 y perm_unlink=0. Verificar cuál es el comportamiento deseado.

Copilot uses AI. Check for mistakes.
</record>

</odoo>