feat(numbering): add fp.parent.number + fp.quote.number sequences

Parent sequence starts at 30000. Quote sequence is Q + YYYYMM + non-resetting
counter starting at 200. Phase 1 Task 1 of the parent-number hierarchy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-12 13:07:16 -04:00
parent 2de5491693
commit fd9d4e775b
2 changed files with 34 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
{
'name': 'Fusion Plating',
'version': '19.0.18.15.10',
'version': '19.0.18.15.11',
'category': 'Manufacturing/Plating',
'summary': 'Core plating / metal finishing ERP: facilities, processes, tanks, baths, jobs, operators.',
'description': """
@@ -84,6 +84,7 @@ Copyright (c) 2026 Nexa Systems Inc. All rights reserved.
'data/fp_landing_data.xml',
'data/fp_sequence_data.xml',
'data/fp_job_sequences.xml',
'data/fp_numbering_sequences.xml',
'data/fp_process_category_data.xml',
# fp_menu.xml MUST load early — defines menu_fp_root, menu_fp_config,
# menu_fp_compliance_hub, plus the 7 Phase-2 Configuration sub-folder

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!--
Parent-number sequence: drives the integer at the heart of every
linked document's name (SO-30000, WO-30000, IN-30000, CoC-30000, ...).
Starts at 30000 per the 2026-05-12 parent-number design.
noupdate=1 so a module upgrade never resets the counter.
-->
<record id="seq_fp_parent_number" model="ir.sequence">
<field name="name">Fusion Plating: Parent Number</field>
<field name="code">fp.parent.number</field>
<field name="prefix"/>
<field name="padding">0</field>
<field name="number_next_actual">30000</field>
<field name="company_id" eval="False"/>
</record>
<!--
Quote sequence: Q + YYYY + MM + '-' + non-resetting counter.
The counter is global (never resets when year/month rolls).
Padding 0 because the counter naturally grows past 4 digits
over time.
-->
<record id="seq_fp_quote_number" model="ir.sequence">
<field name="name">Fusion Plating: Quote Number</field>
<field name="code">fp.quote.number</field>
<field name="prefix">Q%(year)s%(month)s-</field>
<field name="padding">0</field>
<field name="number_next_actual">200</field>
<field name="company_id" eval="False"/>
</record>
</odoo>