Skip to content

Commit

Permalink
[IMP] fiscal_company_point_of_sale: prevent creation of pos.payment.m…
Browse files Browse the repository at this point in the history
…ethod at Group or CAE level
  • Loading branch information
legalsylvain committed Feb 22, 2025
1 parent 1d611a4 commit 2d33945
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions fiscal_company_point_of_sale/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import pos_config
from . import pos_payment_method
from . import account_payment
15 changes: 15 additions & 0 deletions fiscal_company_point_of_sale/models/pos_payment_method.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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).

from odoo import models


class PosPaymentMethod(models.Model):
_name = "pos.payment.method"
_inherit = [
"pos.payment.method",
"fiscal.company.check.company.mixin",
]

_fiscal_company_forbid_fiscal_type = ["group", "fiscal_mother"]
3 changes: 3 additions & 0 deletions fiscal_company_point_of_sale/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ This module is a glue module for the Odoo Point of Sale module.
**Features**

- Remove bad checks regarding company journals of ``pos.config`` models.

- Prevent to create ``pos.config`` and ``pos.payment.method`` at Group
or CAE level.

0 comments on commit 2d33945

Please sign in to comment.