Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] api: Add and enhance multiple endpoints for improved functionality #25

Open
wants to merge 19 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
51c6765
[IMP] api: add and enhance several endpoints
JAntonioSalas Mar 6, 2024
2546815
[ADD] ks_dashboard_ninja: module to dashboard with AI
JAntonioSalas Jul 22, 2024
cf253b0
[ADD] base_user_role: module to extend the functionality regarding us…
JAntonioSalas Jul 23, 2024
dd045f3
[IMP] hantec_api_ecommerce: Endpoint to get product ID by internal re…
JAntonioSalas Sep 12, 2024
1251e14
[IMP] API: Search by name and create contact
JAntonioSalas Sep 12, 2024
3d3426e
[ADD] eg_lock_price: New module Lock Price
JAntonioSalas Sep 17, 2024
3de79f8
[ADD] sale_product_stock_app: New module sale product stock
JAntonioSalas Sep 19, 2024
e2a837f
[IMP] sale_product_stock_app: Add values in SaleWarehouseLine
JAntonioSalas Sep 19, 2024
7c87250
[IMP] sale_product_stock_app: Change position fields and string of f…
JAntonioSalas Sep 19, 2024
cd4ae90
[IMP] sale_product_stock_app: Translate tags
JAntonioSalas Sep 19, 2024
0a1994d
[IMP] hantec_api_ecommerce: new fields
JAntonioSalas Sep 19, 2024
9307de8
[IMP] hantec_api_ecommerce: new field
JAntonioSalas Sep 19, 2024
5ce8529
[REF] hantec_api_ecommerce: Remove optional fields.
JAntonioSalas Sep 25, 2024
669e493
[IMP] hantec_api_ecommerce: Remove required field
JAntonioSalas Sep 25, 2024
abe5c7c
[ADD] .gitmodules: Welcome Server Backend and Base_user_role module
hugho-ad Sep 26, 2024
c7dc735
Merge 15.0-add-user-role-module-hugho-ad into ecommerce
JAntonioSalas Sep 27, 2024
58dfa4d
[IMP] hantec_api_ecommerce: Allow more fields in invoices.
JAntonioSalas Oct 4, 2024
cf69b42
[IMP] hantec_api_ecommerce: Add new field in invoices.
JAntonioSalas Oct 4, 2024
c86a05a
[IMP] hantec_api_ecommerce: Add field in invoices if exists.
JAntonioSalas Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@
path = l10n-mx-edi-uuid
url = [email protected]:mexico/l10n-mx-edi-uuid.git
branch = 15.0
[submodule "server-backend"]
path = server-backend
url = [email protected]:OCA/server-backend.git
branch = 15.0
162 changes: 162 additions & 0 deletions base_user_role/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
==========
User roles
==========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4630ba8be62c03fdba1d808e406f43673963920eddfcee08abe0bed218040de3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
:target: https://github.com/OCA/server-backend/tree/15.0/base_user_role
:alt: OCA/server-backend
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_user_role
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module was written to extend the standard functionality regarding users
and groups management.
It helps creating well-defined user roles and associating them to users.

It can become very hard to maintain a large number of user profiles over time,
juggling with many technical groups. For this purpose, this module will help
you to:

* define functional roles by aggregating low-level groups,
* set user accounts with the predefined roles (roles are cumulative),
* update groups of all relevant user accounts (all at once),
* ensure that user accounts will have the groups defined in their roles
(nothing more, nothing less). In other words, you can not set groups
manually on a user as long as there is roles configured on it,
* activate/deactivate roles depending on the date (useful to plan holidays, etc)
* get a quick overview of roles and the related user accounts.

That way you make clear the different responsabilities within a company, and
are able to add and update user accounts in a scalable and reliable way.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to go to *Settings / Users / Roles*,
and create a new role. From there, you can add groups to compose your role,
and then associate users to it.

You can also define default roles for a new user by editing the user called
"Default User".

Roles:

.. figure:: https://raw.githubusercontent.com/OCA/server-backend/15.0/base_user_role/static/description/roles.png
:width: 80 %
:align: center

Add groups:

.. figure:: https://raw.githubusercontent.com/OCA/server-backend/15.0/base_user_role/static/description/role_groups.png
:width: 80 %
:align: center

Add users (with dates or not):

.. figure:: https://raw.githubusercontent.com/OCA/server-backend/15.0/base_user_role/static/description/role_users.png
:width: 80 %
:align: center

Usage
=====

To use this module, you need to:

#. Go to Configuration / Users / Users choose user and set Roles:

.. image:: https://raw.githubusercontent.com/OCA/server-backend/base_user_role/static/description/user_form.png

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* ABF OSIELL

Contributors
~~~~~~~~~~~~

* Sébastien Alix <[email protected]>
* Duc, Dao Dong <[email protected]> (https://komit-consulting.com)
* Jean-Charles Drubay <[email protected]> (https://komit-consulting.com)
* Alan Ramos <[email protected]> (https://www.jarsa.com.mx)
* Harald Panten <[email protected]>
* Kevin Khao <[email protected]>
* Tatiana Deribina <[email protected]> (https://sprintit.fi)
* Guillem Casassas <[email protected]>

Do not contact contributors directly about support or help with technical issues.

Other credits
~~~~~~~~~~~~~

Images
------

* Oxygen Team: `Icon <http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org/Actions-user-group-new-icon.html>`_ (LGPL)

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-sebalix| image:: https://github.com/sebalix.png?size=40px
:target: https://github.com/sebalix
:alt: sebalix
.. |maintainer-jcdrubay| image:: https://github.com/jcdrubay.png?size=40px
:target: https://github.com/jcdrubay
:alt: jcdrubay
.. |maintainer-novawish| image:: https://github.com/novawish.png?size=40px
:target: https://github.com/novawish
:alt: novawish

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sebalix| |maintainer-jcdrubay| |maintainer-novawish|

This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/15.0/base_user_role>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions base_user_role/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
25 changes: 25 additions & 0 deletions base_user_role/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2014 ABF OSIELL <http://osiell.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).


{
"name": "User roles",
"version": "15.0.0.4.1",
"category": "Tools",
"author": "ABF OSIELL, Odoo Community Association (OCA)",
"license": "LGPL-3",
"development_status": "Production/Stable",
"maintainers": ["sebalix", "jcdrubay", "novawish"],
"website": "https://github.com/OCA/server-backend",
"depends": ["base"],
"data": [
"security/ir.model.access.csv",
"data/ir_cron.xml",
"data/ir_module_category.xml",
"views/role.xml",
"views/user.xml",
"views/group.xml",
"wizards/wizard_groups_into_role.xml",
],
"installable": True,
}
17 changes: 17 additions & 0 deletions base_user_role/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 ABF OSIELL <http://osiell.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo noupdate="1">
<record model="ir.cron" id="cron_update_users">
<field name='name'>Update user roles</field>
<field name='interval_number'>3</field>
<field name='interval_type'>hours</field>
<field name="numbercall">-1</field>
<field name="active">True</field>
<field name="doall" eval="False" />
<field name="model_id" ref="base_user_role.model_res_users_role" />
<field name="state">code</field>
<field name="code">model.cron_update_users()</field>
</record>
</odoo>
15 changes: 15 additions & 0 deletions base_user_role/data/ir_module_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 ABF OSIELL <http://osiell.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo>
<!--
This module category aims to be linked to role/group you create in your own
module (field 'res.groups.category_id').
By doing this you'll have the section 'User roles' in the "Access rights" tab
on the user form which will regroup all roles/groups for a better visibility.
-->
<record model="ir.module.category" id="ir_module_category_role">
<field name='name'>User roles</field>
</record>
</odoo>
Loading