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

16.0 ref many customizations slg #435

Open
wants to merge 15 commits into
base: 16.0
Choose a base branch
from
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
14 changes: 14 additions & 0 deletions fermente_account/views/view_account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">

<!-- Tab 'Invoice Lines' -->
<xpath
expr="//field[@name='invoice_line_ids']//tree//field[@name='analytic_distribution']"
position="attributes">
Expand All @@ -23,6 +24,19 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<attribute name="invisible">1</attribute>
</xpath>

<!-- Tab 'Move Lines' -->
<xpath
expr="//field[@name='line_ids']//tree//field[@name='analytic_distribution']"
position="attributes">
<attribute name="invisible">1</attribute>
</xpath>

<xpath
expr="//field[@name='line_ids']//tree//field[@name='tax_ids']"
position="attributes">
<attribute name="optional">show</attribute>
</xpath>

</field>
</record>

Expand Down
1 change: 1 addition & 0 deletions fermente_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"license": "AGPL-3",
"depends": ["base"],
"data": [
"security/ir_model_access.xml",
"views/view_res_partner.xml",
],
}
4 changes: 4 additions & 0 deletions fermente_base/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Customize Odoo / ``base`` module.

* Add company_id field on res.partner search view

* Prevent ``res.country.state`` and ``res.country.group`` creation for any people.

* Limit ``res.partner.bank`` creation.
32 changes: 32 additions & 0 deletions fermente_base/security/ir_model_access.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<!--
Disable some ir.model.access
We realize the action by write, because the xml_id is flagged as noupdate
-->

<!-- res.country.state can be changed only by group_system -->
<function model="ir.model.access" name="write">
<value model="ir.model.access" search="[('id', '=', obj().env.ref('base.access_res_country_state_group_user').id)]"/>
<value eval="{'group_id': ref('base.group_system')}"/>
</function>

<!-- res.country.group can be changed only by group_system -->
<function model="ir.model.access" name="write">
<value model="ir.model.access" search="[('id', '=', obj().env.ref('base.access_res_country_group_group_user').id)]"/>
<value eval="{'group_id': ref('base.group_system')}"/>
</function>

<!-- res.bank can NOT be changed by Contact Creation -->
<function model="ir.model.access" name="write">
<value model="ir.model.access" search="[('id', '=', obj().env.ref('base.access_res_bank_group_partner_manager').id)]"/>
<value eval="{'active': False}"/>
</function>

</odoo>
Empty file added fermente_crm/README.rst
Empty file.
Empty file added fermente_crm/__init__.py
Empty file.
14 changes: 14 additions & 0 deletions fermente_crm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2025 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Fermente - CRM",
"version": "16.0.1.0.0",
"category": "Web",
"author": "GRAP",
"website": "https://github.com/grap/grap-odoo-custom",
"license": "AGPL-3",
"depends": ["crm"],
"data": ["security/ir.model.access.csv", "views/menu.xml"],
}
1 change: 1 addition & 0 deletions fermente_crm/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
9 changes: 9 additions & 0 deletions fermente_crm/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Customize Odoo / odoo / ``crm`` module.

* Display for members of ``sales_team.group_sale_salesman_all_leads``
the following menu entries:
* "CRM > Analysis"
* "CRM > Configuration"

* Give access to ``crm.stage``, ``crm.tag`` and ``crm.lost.reason`` models
for members of ``sales_team.group_sale_salesman_all_leads``.
3 changes: 3 additions & 0 deletions fermente_crm/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_crm_stage_own_leads,crm.stage.own.leads,crm.model_crm_stage,sales_team.group_sale_salesman_all_leads,1,1,1,1
access_crm_lost_reason_own_leads,crm.lost.reason.own.leads,crm.model_crm_lost_reason,sales_team.group_sale_salesman_all_leads,1,1,1,1
32 changes: 32 additions & 0 deletions fermente_crm/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2022 - Today: Sylvain LE GAL (http://www.grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<record id="crm.crm_menu_report" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]" />
</record>

<record id="crm.crm_menu_config" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]" />
</record>

<record id="crm.menu_crm_config_lead" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]" />
</record>

<record id="crm.menu_crm_lead_stage_act" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]" />
</record>

<record id="crm.crm_team_config" model="ir.ui.menu">
<field name="groups_id" eval="[Command.clear(), Command.link(ref('base.group_system'))]" />
</record>

<record id="crm.crm_team_menu_config_activity_types" model="ir.ui.menu">
<field name="groups_id" eval="[Command.clear(), Command.link(ref('base.group_system'))]" />
</record>

</odoo>
9 changes: 3 additions & 6 deletions fermente_hr/views/view_hr_employee.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">

<xpath expr="//button[@name='%(hr.plan_wizard_action)d']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//div[@id='hr_presence_status']" position="attributes">
<xpath expr="//page[@name='public']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='address_id']/.." position="attributes">
<xpath expr="//button[@name='%(hr.plan_wizard_action)d']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='resource_calendar_id']/.." position="attributes">
<xpath expr="//div[@id='hr_presence_status']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//group[@name='identification_group']" position="attributes">
Expand Down
6 changes: 1 addition & 5 deletions fermente_main_menu/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
Customize Odoo / odoo / ``product`` module.

* Remove default value for the field ``categ_id`` of the model ``product.template``
to force user to select a category and have the possibility to disable the "All"
category.
customize Odoo main menu, reorganizing icons order.
7 changes: 6 additions & 1 deletion fermente_pos/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,10 @@
"website": "https://github.com/grap/grap-odoo-custom",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": ["views/view_product_template.xml", "views/view_pos_config.xml"],
"data": [
"security/ir.model.access.csv",
"views/view_product_template.xml",
"views/view_pos_config.xml",
"views/menu.xml",
],
}
9 changes: 8 additions & 1 deletion fermente_pos/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
Customize Odoo / odoo / ``point_of_sale`` module.

* Display for members of ``point_of_sale.group_pos_user``
the following menu entries:
* "Point Of Sale > Analysis"
* "Point Of Sale > Configuration"

* Allow non admin user to create ``pos.category`` elements.

* Set 'Update quantities in stock' field of PoS config as 'Real Time', by default.

* Add 'Available in PoS' field in the ``product.template`` tree view.

* Add a lot of missing field on the simple pos.config form view.

* Allow user to create new pos.config, via kanban view.
* Allow admin user to create new pos.config, via kanban view.

* Allow non admin user to edit receipt header and footer.
2 changes: 2 additions & 0 deletions fermente_pos/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
pos_category_manager,pos_category_manager,point_of_sale.model_pos_category,point_of_sale.group_pos_user,1,1,1,1
21 changes: 21 additions & 0 deletions fermente_pos/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<record id="point_of_sale.menu_point_rep" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('point_of_sale.group_pos_user'))]" />
</record>

<record id="point_of_sale.menu_point_config_product" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('point_of_sale.group_pos_user'))]" />
</record>

<record id="point_of_sale.menu_pos_payment_method" model="ir.ui.menu">
<field name="groups_id" eval="[Command.clear(), Command.link(ref('point_of_sale.group_pos_manager'))]" />
</record>

</odoo>
70 changes: 70 additions & 0 deletions fermente_pos_restaurant/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
========================
Fermente - Point Of Sale
========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--custom-lightgray.png?logo=github
:target: https://github.com/grap/grap-odoo-custom/tree/16.0/fermente_pos
:alt: grap/grap-odoo-custom

|badge1| |badge2| |badge3|

Customize Odoo / odoo / ``point_of_sale`` module.

* Set 'Update quantities in stock' field of PoS config as 'Real Time', by default.

* Add 'Available in PoS' field in the ``product.template`` tree view.

* Add a lot of missing field on the simple pos.config form view.

* Allow user to create new pos.config, via kanban view.

* Allow non admin user to edit receipt header and footer.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-custom/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/grap/grap-odoo-custom/issues/new?body=module:%20fermente_pos%0Aversion:%2016.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
~~~~~~~

* GRAP

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

* Sylvain LE GAL (https://www.twitter.com/legalsylvain)

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

This module is part of the `grap/grap-odoo-custom <https://github.com/grap/grap-odoo-custom/tree/16.0/fermente_pos>`_ project on GitHub.

You are welcome to contribute.
Empty file.
18 changes: 18 additions & 0 deletions fermente_pos_restaurant/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Fermente - Point Of Sale Restaurant",
"version": "16.0.1.0.0",
"category": "Web",
"author": "GRAP",
"website": "https://github.com/grap/grap-odoo-custom",
"license": "AGPL-3",
"depends": ["pos_restaurant", "fermente_pos"],
"data": [
"security/ir.model.access.csv",
"views/menu.xml",
"views/view_pos_config.xml",
],
}
1 change: 1 addition & 0 deletions fermente_pos_restaurant/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
5 changes: 5 additions & 0 deletions fermente_pos_restaurant/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Customize Odoo / odoo / ``point_of_sale`` module.

* Allow non admin user to create ``restaurant.floor`` and ``restaurant.table`` elements.

* Add simple settings in the simple ``pos.config`` form view.
3 changes: 3 additions & 0 deletions fermente_pos_restaurant/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
pos_restaurant_floor_manager,pos_restaurant_floor_manager,pos_restaurant.model_restaurant_floor,point_of_sale.group_pos_user,1,1,1,1
pos_restaurant_table_manager,pos_restaurant_table_manager,pos_restaurant.model_restaurant_table,point_of_sale.group_pos_user,1,1,1,1
14 changes: 14 additions & 0 deletions fermente_pos_restaurant/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>


<record id="pos_restaurant.menu_restaurant_floor_all" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('point_of_sale.group_pos_user'))]" />
</record>

</odoo>
Loading
Loading