Move all OCA POS modules from oca-technical to dedicated oca-pos submodule

Reorganized 74 POS-related modules for better structure:
- Moved all odoo-bringout-oca-pos-* packages from packages/oca-technical/
- Now organized in dedicated packages/oca-pos/ submodule
- Includes payment, receipt, loyalty, order, product, and partner modules
- Maintains all module functionality while improving project organization

This creates a cleaner separation between general technical modules
and Point of Sale specific functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ernad Husremovic 2025-08-30 17:15:35 +02:00
parent 3791451dc1
commit 377f346a99
2675 changed files with 93308 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import pos_order

View file

@ -0,0 +1,46 @@
# 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 api, fields, models
from odoo.tools import formatLang
class PosOrder(models.Model):
_inherit = "pos.order"
payment_description = fields.Char(
string="Payments Description",
compute="_compute_payment_description",
store=True,
)
@api.depends("payment_ids.amount")
def _compute_payment_description(self):
for order in self:
details = []
for payment in order.payment_ids.filtered(
lambda x: x.payment_method_id.journal_id
):
details.append(
"%s: %s"
% (
payment.payment_method_id.journal_id.code,
formatLang(
self.env, payment.amount, currency_obj=payment.currency_id
),
)
)
for payment in order.payment_ids.filtered(
lambda x: not x.payment_method_id.journal_id
):
details.append(
"%s: %s"
% (
payment.payment_method_id.name,
formatLang(
self.env, payment.amount, currency_obj=payment.currency_id
),
)
)
order.payment_description = " - ".join(sorted(details))