Skip to content

Commit

Permalink
Merge PR #67 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Dec 5, 2024
2 parents b577715 + 12b33e0 commit 88fa3f4
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 0 deletions.
Empty file.
1 change: 1 addition & 0 deletions fiscal_company_product/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions fiscal_company_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2014-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": "CAE - Product",
"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"],
"installable": True,
"auto_install": True,
}
Empty file.
2 changes: 2 additions & 0 deletions fiscal_company_product/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +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"]
12 changes: 12 additions & 0 deletions fiscal_company_product/models/product_template.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 ProductTemplate(models.Model):
_name = "product.template"
_inherit = ["product.template", "fiscal.company.check.company.mixin"]

_fiscal_company_forbid_fiscal_type = ["group", "fiscal_mother"]
2 changes: 2 additions & 0 deletions fiscal_company_product/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Julien WESTE
* Sylvain LE GAL <https://twitter.com/legalsylvain>
10 changes: 10 additions & 0 deletions fiscal_company_product/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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**

* Add constrains on ``product.product``, ``product.pricelist``
to create such items on a fiscal mother company or a group.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions setup/fiscal_company_product/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 88fa3f4

Please sign in to comment.