Files
Yamen Ahmad 3e83d8d7d5 feat: add complete EnCoach backend — Odoo 19 + all addons
Includes:
- Odoo 19 framework (odoo/)
- 27 custom EnCoach addons (new_project/custom_addons/)
  - encoach_core, encoach_api, encoach_lms_api, encoach_adaptive_api
  - encoach_exam, encoach_taxonomy, encoach_adaptive, encoach_assignment
  - encoach_ai, encoach_ai_grading, encoach_ai_generation, encoach_ai_media
  - encoach_courseware, encoach_communication, encoach_subscription
  - encoach_notification, encoach_approval, encoach_branding
  - encoach_classroom, encoach_registration, encoach_stats
  - encoach_faq, encoach_ticket, encoach_training, encoach_resources
  - encoach_adaptive_ai, encoach_sis
- 21 OpenEduCat Enterprise modules (new_project/enterprise-19/)
- 14 OpenEduCat Community modules (new_project/openeducat_erp-19.0/)
- Configuration: odoo.conf, requirements.txt, scripts
- 200+ REST API endpoints with JWT authentication
- SRS and test documentation

Made-with: Cursor
2026-04-01 17:10:04 +04:00

83 lines
4.0 KiB
XML

<?xml version="1.0"?>
<odoo>
<!-- BARCODE NOMENCLATURES -->
<record model="ir.ui.view" id="view_barcode_nomenclature_form">
<field name="name">Barcode Nomenclatures</field>
<field name="model">barcode.nomenclature</field>
<field name="arch" type="xml">
<form string="Barcode Nomenclature">
<sheet>
<group name="general_attributes" col="4">
<field name="name" />
<field name="upc_ean_conv"/>
</group>
<div>
<p>
<i>Barcodes Nomenclatures</i> define how barcodes are recognized and categorized.
When a barcode is scanned it is associated to the <i>first</i> rule with a matching
pattern. The pattern syntax is that of regular expression, and a barcode is matched
if the regular expression matches a prefix of the barcode.
</p><p>
Patterns can also define how numerical values, such as weight or price, can be
encoded into the barcode. They are indicated by <code>{NNN}</code> where the N's
define where the number's digits are encoded. Floats are also supported with the
decimals indicated with D's, such as <code>{NNNDD}</code>. In these cases,
the barcode field on the associated records <i>must</i> show these digits as
zeroes.
</p>
</div>
<field name="rule_ids">
<list string='Tables'>
<field name="sequence" widget="handle"/>
<field name="name" />
<field name="type" />
<field name="encoding" />
<field name="pattern" />
</list>
</field>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_barcode_nomenclature_tree">
<field name="name">Barcode Nomenclatures</field>
<field name="model">barcode.nomenclature</field>
<field name="arch" type="xml">
<list string="Barcode Nomenclatures">
<field name="name" />
</list>
</field>
</record>
<record model="ir.actions.act_window" id="action_barcode_nomenclature_form">
<field name="name">Barcode Nomenclatures</field>
<field name="res_model">barcode.nomenclature</field>
<field name="view_mode">list,kanban,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a new barcode nomenclature
</p><p>
A barcode nomenclature defines how the point of sale identify and interprets barcodes
</p>
</field>
</record>
<record model="ir.ui.view" id="view_barcode_rule_form">
<field name="name">Barcode Rule</field>
<field name="model">barcode.rule</field>
<field name="arch" type="xml">
<form string="Barcode Rule">
<group>
<field name="name" />
<field name="sequence" />
<field name="type"/>
<field name="encoding" invisible="type == 'alias'"/>
<field name="pattern" />
<field name="alias" invisible="type != 'alias'"/>
</group>
</form>
</field>
</record>
</odoo>