Tower: upload laundry_management 19.0.19.0.4 (via marketplace)
This commit is contained in:
150
addons/laundry_management/views/laundry_settings_views.xml
Normal file
150
addons/laundry_management/views/laundry_settings_views.xml
Normal file
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<!-- ═══════════════════════════════════════════════════════════════
|
||||
LAUNDRY SETTINGS — Odoo 19 style settings panel (PART 9)
|
||||
═══════════════════════════════════════════════════════════════ -->
|
||||
<record id="view_laundry_res_config_settings" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.laundry</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//form" position="inside">
|
||||
<app data-string="Laundry"
|
||||
string="Laundry"
|
||||
name="laundry_management"
|
||||
logo="/laundry_management/static/description/icon.png"
|
||||
groups="laundry_management.group_laundry_manager">
|
||||
|
||||
<!-- ── WhatsApp Business ──────────────────────── -->
|
||||
<block title="WhatsApp Business / واتساب الأعمال"
|
||||
name="laundry_whatsapp">
|
||||
|
||||
<setting string="Cloud API Token"
|
||||
help="Meta/Facebook WhatsApp Business Cloud API Bearer token. Leave blank to use the wa.me web link (one-click) mode.">
|
||||
<field name="laundry_wa_token"
|
||||
password="True"
|
||||
placeholder="EAAxxxxxxxx…"/>
|
||||
</setting>
|
||||
|
||||
<setting string="Phone Number ID"
|
||||
help="WhatsApp Business Phone Number ID from Meta Developer Console.">
|
||||
<field name="laundry_wa_phone_id"
|
||||
placeholder="12345678901234"/>
|
||||
</setting>
|
||||
|
||||
<setting string="Store WhatsApp Number"
|
||||
help="Store number in E.164 format without + (e.g. 966501234567). Used as fallback.">
|
||||
<field name="laundry_wa_store_number"
|
||||
placeholder="966501234567"/>
|
||||
</setting>
|
||||
|
||||
<setting string="Auto-send on Ready"
|
||||
help="Automatically open WhatsApp Web when an order is marked Ready for Pickup.">
|
||||
<field name="laundry_wa_auto_send"/>
|
||||
</setting>
|
||||
|
||||
</block>
|
||||
|
||||
<!-- ── Staff Commissions ──────────────────────── -->
|
||||
<block title="Staff Commissions / عمولات الموظفين"
|
||||
name="laundry_commission">
|
||||
|
||||
<setting string="Enable Commission Tracking"
|
||||
help="Automatically create commission records for reception, processing, and delivery staff as orders progress.">
|
||||
<field name="laundry_commission_enabled"/>
|
||||
<div class="content-group"
|
||||
invisible="not laundry_commission_enabled">
|
||||
<div class="row mt8">
|
||||
<label for="laundry_commission_type"
|
||||
class="col-lg-4 col-form-label o_light_label"
|
||||
string="Commission Type"/>
|
||||
<div class="col-lg-8">
|
||||
<field name="laundry_commission_type"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt4">
|
||||
<label for="laundry_commission_reception_rate"
|
||||
class="col-lg-4 col-form-label o_light_label"
|
||||
string="Reception Rate"/>
|
||||
<div class="col-lg-8">
|
||||
<field name="laundry_commission_reception_rate"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt4">
|
||||
<label for="laundry_commission_processing_rate"
|
||||
class="col-lg-4 col-form-label o_light_label"
|
||||
string="Processing Rate"/>
|
||||
<div class="col-lg-8">
|
||||
<field name="laundry_commission_processing_rate"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt4">
|
||||
<label for="laundry_commission_delivery_rate"
|
||||
class="col-lg-4 col-form-label o_light_label"
|
||||
string="Delivery Rate"/>
|
||||
<div class="col-lg-8">
|
||||
<field name="laundry_commission_delivery_rate"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</setting>
|
||||
|
||||
<setting string="Commission Expense Account"
|
||||
help="Expense account for booking commission costs (for future accounting integration).">
|
||||
<field name="laundry_commission_account_id"
|
||||
options="{'no_create': True}"/>
|
||||
</setting>
|
||||
|
||||
</block>
|
||||
|
||||
<!-- ── Session & Cash Control ─────────────── -->
|
||||
<block title="Session & Cash Control / الجلسات وإدارة الصندوق"
|
||||
name="laundry_session">
|
||||
|
||||
<setting string="Require Open Session"
|
||||
help="Prevent confirming orders when no daily session is open.">
|
||||
<field name="laundry_require_session"/>
|
||||
</setting>
|
||||
|
||||
<setting string="Default Cash Journal"
|
||||
help="Default journal used in the payment wizard for cash transactions.">
|
||||
<field name="laundry_cash_journal_id"
|
||||
options="{'no_create': True}"/>
|
||||
</setting>
|
||||
|
||||
<setting string="Cash Difference Account"
|
||||
help="Default account for posting session cash count variances.">
|
||||
<field name="laundry_difference_account_id"
|
||||
options="{'no_create': True}"/>
|
||||
</setting>
|
||||
|
||||
</block>
|
||||
|
||||
<!-- ── Operations ────────────────────────────── -->
|
||||
<block title="Operations / العمليات" name="laundry_operations">
|
||||
|
||||
<setting string="Default Print Format"
|
||||
help="Default paper format for order receipts.">
|
||||
<field name="laundry_default_paper"/>
|
||||
</setting>
|
||||
|
||||
</block>
|
||||
|
||||
</app>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ═══════════════════════════════════════════════════════════════
|
||||
ACTION
|
||||
═══════════════════════════════════════════════════════════════ -->
|
||||
<record id="action_laundry_settings" model="ir.actions.act_window">
|
||||
<field name="name">Laundry Settings</field>
|
||||
<field name="res_model">res.config.settings</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">current</field>
|
||||
<field name="context">{'module': 'laundry_management'}</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user