Skip to content

Commit

Permalink
[BOT] post-merge updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-grap-bot committed Aug 5, 2024
1 parent 9ca8c71 commit 34221ff
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 29 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ More information about CAE [FR]

[//]: # (addons)

This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[fiscal_company_base](fiscal_company_base/) | 16.0.1.0.0 | | Manage CAE (Cooperatives of Activities and Employment)

[//]: # (end addons)

Expand Down
74 changes: 46 additions & 28 deletions fiscal_company_base/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CAE - Base
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6e3a501ed3b5d79a9292fe440d5247e9d2be0fa43389eeb4cae6314324eec2a6
!! source digest: sha256:60bcec9226d3a7187c2248534b96c53e92e0f1999b3915edd9b50bc1a023af39
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -17,7 +17,7 @@ CAE - Base
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fodoo--addons--cae-lightgray.png?logo=github
:target: https://github.com/grap/odoo-addons-cae/tree/12.0/fiscal_company_base
:target: https://github.com/grap/odoo-addons-cae/tree/16.0/fiscal_company_base
:alt: grap/odoo-addons-cae

|badge1| |badge2| |badge3|
Expand All @@ -40,23 +40,13 @@ the parent company.
**Companies feature**

* Add a new field on company `fiscal_type`:
* `normal` : classical company
* `group` : Container company: can only contains 'Normal'
or 'CAE' Companies.
* `normal` : Classical company, (by default)
* `fiscal_mother`: CAE company, that can host many child companies
* `fiscal_child`: child company, hosted by the CAE


**Users Feature**

* If a user has access rights to a 'fiscal_mother' so he has access
rights to all 'fiscal_child' companies;

**Groups Feature**

* this module add a new group 'Disabled Features for Fiscal Company'
that should be affected to all the features bad designed by odoo,
specially when odoo introduced views based on datas computed on SQL hard
coded requests that can not work with the Odoo CAE design.
See 'account_fiscal_company' module for exemples.
.. figure:: https://raw.githubusercontent.com/grap/odoo-addons-cae/16.0/fiscal_company_base/static/description/res_company_form.png

**More information about CAE [FR]**

Expand All @@ -69,13 +59,51 @@ the parent company.
.. contents::
:local:

Development
===========

This module introduces 2 mixin:

``fiscal.company.change.search.domain.mixin``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

the model that inherits this abstract will change the domain
in the search feature. If a domain contains ('company_id', '=', X)
it will be changed into ('company_id', 'in', [X, A, B])
if X is a CAE and A and B are the integrated related companies.

**Usage**

.. code-block:: python
class MyModel(models.Model):
_name = "my.model"
_inherit = ["fiscal.company.change.search.domain.mixin"]
``fiscal.company.check.company.mixin``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The model that inherits this abstract will prevent to
create items with companies, depending on the
fiscal_type of the company.

**Usage**

.. code-block:: python
class MyModel(models.Model):
_name = "my.model"
_inherit = ["fiscal.company.check.company.mixin"]
_fiscal_company_forbid_fiscal_type = ["fiscal_mother"]
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/grap/odoo-addons-cae/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/odoo-addons-cae/issues/new?body=module:%20fiscal_company_base%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/grap/odoo-addons-cae/issues/new?body=module:%20fiscal_company_base%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.

Expand All @@ -93,19 +121,9 @@ Contributors
* Julien WESTE
* Sylvain LE GAL <https://twitter.com/legalsylvain>

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

The development of this module has been financially supported by:

* GRAP, Groupement Régional Alimentaire de Proximité (http://www.grap.coop)

Porting from odoo V8 to odoo V10 has been funded by :
* BABEL.COOP, leverage cooperation through the digital age (<http://babel.coop>)

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

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

You are welcome to contribute.

0 comments on commit 34221ff

Please sign in to comment.