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,23 @@
/** @odoo-module **/
import {Order} from "point_of_sale.models";
import Registries from "point_of_sale.Registries";
const AutoInvoiceOrder = (OriginalOrder) =>
class extends OriginalOrder {
constructor(obj, options) {
super(...arguments);
if (!options.json && this.pos.config.invoice_by_default) {
this.to_invoice = true;
}
}
init_from_JSON(json) {
super.init_from_JSON(...arguments);
// This should be done in the original method, but curiously
// it is not (to_invoice is always set to false).
this.to_invoice = json.to_invoice;
}
};
Registries.Model.extend(Order, AutoInvoiceOrder);