Skip to content

[6976][ADD] product_classification - #5

Open
yostashiro wants to merge 13 commits into
19.0from
6976-add-product_nif
Open

[6976][ADD] product_classification#5
yostashiro wants to merge 13 commits into
19.0from
6976-add-product_nif

Conversation

@yostashiro

@yostashiro yostashiro commented Jul 9, 2026

Copy link
Copy Markdown
Member

QT6976

Add the product_classification module — product-side classification master data so equipment and consumables can be categorized consistently. Several of these fields feed the Navi in Flow (ナビフロー) integration with CIAS, but the data is scoped by domain (product classification) rather than by that single consumer.

Included:

  • product_kind selection (equipment / consumable) on the product
  • Equipment Classification (機器分類) + Equipment Sub-Classification (機器分類サブ)
  • Consumable Classification (parallel taxonomy to the equipment axis)
  • Manufacturer (メーカー) master
  • a Classification tab on the product form, with equipment/consumable groups shown per product_kind
  • configuration under Inventory > Configuration > Products
  • fields that feed the Navi in Flow integration note this in their help text, for traceability
  • Add middle and minor category to product.template (not for Navi in Flow)

Renamed from the earlier nif module (supersedes #4); reframed from a Navi-in-Flow-specific extension to product classification master data.

@yostashiro
yostashiro force-pushed the 6976-add-product_nif branch 6 times, most recently from 7390412 to 28aa260 Compare July 9, 2026 04:58
@yostashiro

Copy link
Copy Markdown
Member Author

Add ja.po

Translation notes

Translations are referenced from existing Odoo translations where available (odoo/base, odoo/stock).

The following terms have no reference in the dependency (stock) and are translated independently (domain terms; loanwords follow the core ja house style, e.g. メーカー):

msgid msgstr
A product cannot be flagged as both equipment and consumable. プロダクトを機器と消耗品の両方に設定することはできません。
Equipment Classification / Equipment Classifications 機器分類
Equipment Sub-Classification / Equipment Sub-Classifications 機器分類サブ
External code used for integration. A numeric code is preferred. 連携に使用する外部コード。数値コードが推奨されます。
Is Equipment 機器
Is Consumable 消耗品
Manufacturer / Manufacturers / Product Manufacturer メーカー
Navi in Flow ナビフロー
Product Equipment Classification 機器分類
Product Equipment Sub-Classification 機器分類サブ
The code of a manufacturer must be unique. メーカーのコードは一意である必要があります。
The code of an equipment classification must be unique. 機器分類のコードは一意である必要があります。
The code of an equipment sub-classification must be unique. 機器分類サブのコードは一意である必要があります。

@yostashiro
yostashiro force-pushed the 6976-add-product_nif branch 2 times, most recently from e2291b8 to c8d18aa Compare July 9, 2026 06:00
@yostashiro yostashiro changed the title [6976][ADD] product_nif [6976][ADD] nif Jul 9, 2026
@yostashiro
yostashiro force-pushed the 6976-add-product_nif branch from c8d18aa to abc5cd1 Compare July 9, 2026 07:00
@yostashiro

Copy link
Copy Markdown
Member Author

Update ja.po (module renamed product_nif → nif; add root menu)

Translation notes

Merged with the existing translations — all prior entries preserved. One new term added for the Navi in Flow Configuration menu, referenced from existing Odoo translations (odoo/base, odoo/stock):

msgid msgstr
Configuration 設定

@yostashiro
yostashiro force-pushed the 6976-add-product_nif branch 2 times, most recently from 74ea496 to 5c10785 Compare July 9, 2026 07:38
Add the Navi in Flow (ナビフロー) module, an all-in-one home for the product-
and (later) partner-side master data and field extensions exchanged with the
CIAS system. It provides a dedicated Navi in Flow app menu so configuration
lives in one place instead of scattered under Inventory settings.

Currently included:
- equipment classification (機器分類) and sub-classification (機器分類サブ),
  seeded with HOT / Concentrator, CPAP, HIT and Other (Auxiliary Device)
- manufacturer (メーカー) master
- product flags is_equipment / is_consumable (mutually exclusive) and their
  many2one links, shown in a Navi in Flow tab on the product form

Configuration is maintained by admins (base.group_system); all users have
read access so the classifications/manufacturer render on products.

task-6976
@yostashiro
yostashiro force-pushed the 6976-add-product_nif branch from 9ec2249 to 097e838 Compare July 9, 2026 08:21
The module was scoped and named after a single consumer (Navi in Flow),
but the product master data it holds (classification, manufacturer) has
value independent of that integration, and new fields (e.g. consumable
classification) are not necessarily interfaced with Navi in Flow. Rename
it to product_classification and reframe it as product classification
master data, with Navi in Flow as one consumer:

- replace the mutually-exclusive is_equipment/is_consumable booleans with
  a single product_kind selection
- add a product.consumable.classification taxonomy and the
  consumable_classification_id field, parallel to the equipment axis
- move configuration menus under Inventory > Configuration > Products
  (drop the standalone app menu)
- present the fields on a "Classification" product tab (was "Navi in
  Flow"), with equipment/consumable groups shown per product_kind
- record Navi-in-Flow usage in the help text of the fields that feed the
  integration, so their purpose stays traceable
@yostashiro yostashiro changed the title [6976][ADD] nif [6976][ADD] product_classification Jul 13, 2026
yostashiro and others added 8 commits July 13, 2026 09:11
Add an "accessory" (付属品) value to product_kind, between equipment and
consumable. Accessories share the equipment classification taxonomy, so
the Equipment Classification group on the product form is shown for both
equipment and accessory kinds.
@smorita7749
smorita7749 force-pushed the 6976-add-product_nif branch from 90af526 to 6959781 Compare July 29, 2026 09:54
Comment on lines +9 to +10
<field name="middle_category_id" options="{'no_quick_create': True}" />
<field name="minor_category_id" options="{'no_quick_create': True}" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep these fields inside the classification page.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

- Add middle and minor product category seed records (moved in from
  ocj_config so all classification master data lives with the module
  that defines the models).
- Drop the Navi in Flow reference from the middle/minor category field
  help: these categories are maintained in Odoo and not exchanged with
  NaviFlow.
- Add Japanese translations for the new records.
…the Classification page

Per review: keep the middle/minor category fields inside the
Classification notebook page alongside the other classification fields,
instead of placing them next to categ_id on the general form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants