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,2 @@
from . import product
from . import pos_session

View file

@ -0,0 +1,13 @@
# Copyright 2024 Tecnativa - Carlos Lopez
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import models
class PosSession(models.Model):
_inherit = "pos.session"
def _loader_params_product_product(self):
res = super()._loader_params_product_product()
res["search_params"]["fields"].append("supplier_data_json")
return res

View file

@ -0,0 +1,26 @@
import json
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
supplier_data_json = fields.Char(
"Supplier data dict",
help="Technical field: Used in POS frontend to search products by supplierinfo",
compute="_compute_supplier_data_json",
)
def _compute_supplier_data_json(self):
for rec in self:
rec.supplier_data_json = json.dumps(
[
{
"supplier_name": s.partner_id.display_name,
"supplier_product_code": s.product_code or "",
"supplier_product_name": s.product_name or "",
}
for s in rec.seller_ids
]
)