Skip to content

Commit

Permalink
[MIG] fiscal_company_product: Migration to 16.0 (from 12.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Nov 27, 2024
1 parent 02f9920 commit 12b33e0
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 497 deletions.
83 changes: 0 additions & 83 deletions fiscal_company_product/README.rst
Original file line number Diff line number Diff line change
@@ -1,83 +0,0 @@
=============
CAE - Product
=============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d3db2ab38cb55d96485d2b22ddb080cc5e0c6272d0b6e4d647044ee548b6d51f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fodoo--addons--cae-lightgray.png?logo=github
:target: https://github.com/grap/odoo-addons-cae/tree/12.0/fiscal_company_product
:alt: grap/odoo-addons-cae

|badge1| |badge2| |badge3|

This module extend Odoo functionnalities, regarding companies features to
manage CAE (Coopearatives of Activities and Employment) that is a special
status for french companies.

This module is a glue module for the Odoo Product module.

**Features**

* User in mother company can see product of all child company
* User in fiscal company can see but not update / delete product
of mother company
* Add a field ```cae_administrative_ok``` on ```product.product```. if checked
the product will not be updatable by non 'CAE Manager' users

**Table of contents**

.. contents::
:local:

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_product%0Aversion:%2012.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
~~~~~~~~~~~~

* 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_product>`_ project on GitHub.

You are welcome to contribute.
14 changes: 1 addition & 13 deletions fiscal_company_product/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,13 @@

{
"name": "CAE - Product",
"version": "12.0.1.1.1",
"version": "16.0.1.0.0",
"category": "CAE",
"summary": "Glue Module between CAE and Product modules",
"author": "GRAP",
"website": "https://github.com/grap/odoo-addons-cae",
"license": "AGPL-3",
"depends": ["fiscal_company_base", "product"],
"data": [
"security/res_groups.xml",
"security/ir.model.access.csv",
"security/ir_rule.xml",
"views/view_product_template.xml",
],
"demo": [
"demo/res_groups.xml",
"demo/product_pricelist.xml",
"demo/product_template.xml",
"demo/product_product.xml",
],
"installable": True,
"auto_install": True,
}
23 changes: 0 additions & 23 deletions fiscal_company_product/demo/product_pricelist.xml

This file was deleted.

21 changes: 0 additions & 21 deletions fiscal_company_product/demo/product_product.xml

This file was deleted.

28 changes: 0 additions & 28 deletions fiscal_company_product/demo/product_template.xml

This file was deleted.

31 changes: 0 additions & 31 deletions fiscal_company_product/demo/res_groups.xml

This file was deleted.

104 changes: 0 additions & 104 deletions fiscal_company_product/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -1,104 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fiscal_company_product
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-26 14:34+0000\n"
"PO-Revision-Date: 2019-09-26 14:34+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: fiscal_company_product
#: model:product.template,name:fiscal_company_product.product_template_administrative
msgid "CAE - Administrative Mother Product Template"
msgstr "CAE - Produit administratif de la société mère"

#. module: fiscal_company_product
#: model:product.template,name:fiscal_company_product.product_template_child
msgid "CH1 - Child 1 Product Template"
msgstr "CAE - Article de la société CH1"

#. module: fiscal_company_product
#: model:product.product,name:fiscal_company_product.product_product_child
#: model:product.template,name:fiscal_company_product.product_product_child_product_template
msgid "CH1 - Child 1 Product Variant"
msgstr "CH1 - Variante d'article de la société CH1"

#. module: fiscal_company_product
#: model:product.template,name:fiscal_company_product.product_template_mother
msgid "CAE - Mother Product Template"
msgstr "CAE - Article de la société mère"

#. module: fiscal_company_product
#: model:product.product,name:fiscal_company_product.product_product_mother
#: model:product.template,name:fiscal_company_product.product_product_mother_product_template
msgid "CAE - Mother Product Variant"
msgstr "CAE - Variante d'article de la société mère"

#. module: fiscal_company_product
#: model:product.pricelist,name:fiscal_company_product.sale_product_pricelist_CH1
msgid "CH1 - Main Sale Pricelist"
msgstr "CH1 - Liste de prix par défaut"

#. module: fiscal_company_product
#: model:product.pricelist,name:fiscal_company_product.sale_product_pricelist_CH2
msgid "CH2 - Main Sale Pricelist"
msgstr "CH2 - Liste de prix par défaut"

#. module: fiscal_company_product
#: model:ir.model.fields,help:fiscal_company_product.field_product_product__cae_administrative_ok
#: model:ir.model.fields,help:fiscal_company_product.field_product_template__cae_administrative_ok
msgid "If checked, this product will be readonly for users and updatable only by specific group"
msgstr "Si cette case est cochée, cet article sera en lecture seul pour les utilisateurs, et modifiable seulement par les membres d'un groupe spécifique"

#. module: fiscal_company_product
#: model:ir.model.fields,field_description:fiscal_company_product.field_product_product__cae_administrative_ok
#: model:ir.model.fields,field_description:fiscal_company_product.field_product_template__cae_administrative_ok
msgid "Is CAE Administrative"
msgstr "Est administratif"

#. module: fiscal_company_product
#: model:res.groups,name:fiscal_company_product.product_creation
msgid "Product Creation"
msgstr "Création d'articles"

#. module: fiscal_company_product
#: model:ir.model,name:fiscal_company_product.model_product_template
msgid "Product Template"
msgstr "Modèle d'article"

#. module: fiscal_company_product
#: model:product.product,uom_name:fiscal_company_product.product_product_child
#: model:product.product,uom_name:fiscal_company_product.product_product_mother
#: model:product.template,uom_name:fiscal_company_product.product_product_child_product_template
#: model:product.template,uom_name:fiscal_company_product.product_product_mother_product_template
#: model:product.template,uom_name:fiscal_company_product.product_template_administrative
#: model:product.template,uom_name:fiscal_company_product.product_template_child
#: model:product.template,uom_name:fiscal_company_product.product_template_mother
msgid "Unit(s)"
msgstr "Unité(s)"

#. module: fiscal_company_product
#: code:addons/fiscal_company_product/models/product_template.py:43
#, python-format
msgid "You have no right to create or update an administrative product"
msgstr "Nous n'avez pas le droit de créer ou de modifier un produit de type Administratif CAE"

#. module: fiscal_company_product
#: model:product.product,weight_uom_name:fiscal_company_product.product_product_child
#: model:product.product,weight_uom_name:fiscal_company_product.product_product_mother
#: model:product.template,weight_uom_name:fiscal_company_product.product_product_child_product_template
#: model:product.template,weight_uom_name:fiscal_company_product.product_product_mother_product_template
#: model:product.template,weight_uom_name:fiscal_company_product.product_template_administrative
#: model:product.template,weight_uom_name:fiscal_company_product.product_template_child
#: model:product.template,weight_uom_name:fiscal_company_product.product_template_mother
msgid "kg"
msgstr "kg"

1 change: 1 addition & 0 deletions fiscal_company_product/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import product_template
from . import product_pricelist
12 changes: 12 additions & 0 deletions fiscal_company_product/models/product_pricelist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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).

from odoo import models


class ProductPricelist(models.Model):
_name = "product.pricelist"
_inherit = ["product.pricelist", "fiscal.company.check.company.mixin"]

_fiscal_company_forbid_fiscal_type = ["group", "fiscal_mother"]
Loading

0 comments on commit 12b33e0

Please sign in to comment.