mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-25 03:52:04 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
32
odoo-bringout-oca-ocb-product/doc/ARCHITECTURE.md
Normal file
32
odoo-bringout-oca-ocb-product/doc/ARCHITECTURE.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph Product Module - product
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
3
odoo-bringout-oca-ocb-product/doc/CONFIGURATION.md
Normal file
3
odoo-bringout-oca-ocb-product/doc/CONFIGURATION.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for product. Configure related models, access rights, and options as needed.
|
||||
3
odoo-bringout-oca-ocb-product/doc/CONTROLLERS.md
Normal file
3
odoo-bringout-oca-ocb-product/doc/CONTROLLERS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Controllers
|
||||
|
||||
This module does not define custom HTTP controllers.
|
||||
7
odoo-bringout-oca-ocb-product/doc/DEPENDENCIES.md
Normal file
7
odoo-bringout-oca-ocb-product/doc/DEPENDENCIES.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- base
|
||||
- [mail](../../odoo-bringout-oca-ocb-mail)
|
||||
- [uom](../../odoo-bringout-oca-ocb-uom)
|
||||
4
odoo-bringout-oca-ocb-product/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-product/doc/FAQ.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon product or install in UI.
|
||||
7
odoo-bringout-oca-ocb-product/doc/INSTALL.md
Normal file
7
odoo-bringout-oca-ocb-product/doc/INSTALL.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-product"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-product"
|
||||
```
|
||||
32
odoo-bringout-oca-ocb-product/doc/MODELS.md
Normal file
32
odoo-bringout-oca-ocb-product/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in product.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class product_attribute
|
||||
class product_attribute_custom_value
|
||||
class product_attribute_value
|
||||
class product_category
|
||||
class product_packaging
|
||||
class product_pricelist
|
||||
class product_pricelist_item
|
||||
class product_product
|
||||
class product_supplierinfo
|
||||
class product_tag
|
||||
class product_template
|
||||
class product_template_attribute_exclusion
|
||||
class product_template_attribute_line
|
||||
class product_template_attribute_value
|
||||
class decimal_precision
|
||||
class res_company
|
||||
class res_config_settings
|
||||
class res_country_group
|
||||
class res_currency
|
||||
class res_partner
|
||||
class uom_uom
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
6
odoo-bringout-oca-ocb-product/doc/OVERVIEW.md
Normal file
6
odoo-bringout-oca-ocb-product/doc/OVERVIEW.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: product. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon product
|
||||
- License: LGPL-3
|
||||
40
odoo-bringout-oca-ocb-product/doc/REPORTS.md
Normal file
40
odoo-bringout-oca-ocb-product/doc/REPORTS.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Reports
|
||||
|
||||
Report definitions and templates in product.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class ReportProductTemplateLabel
|
||||
AbstractModel <|-- ReportProductTemplateLabel
|
||||
class ReportProductTemplateLabelDymo
|
||||
AbstractModel <|-- ReportProductTemplateLabelDymo
|
||||
class ProductPricelistReport
|
||||
AbstractModel <|-- ProductPricelistReport
|
||||
```
|
||||
|
||||
## Available Reports
|
||||
|
||||
### PDF/Document Reports
|
||||
- **Product Label (PDF)** (PDF/Print)
|
||||
- **Product Packaging (PDF)** (PDF/Print)
|
||||
- **Pricelist** (PDF/Print)
|
||||
- **Dymo Label Sheet** (PDF/Print)
|
||||
- **Product Label (PDF)** (PDF/Print)
|
||||
|
||||
|
||||
## Report Files
|
||||
|
||||
- **__init__.py** (Python logic)
|
||||
- **product_label_report.py** (Python logic)
|
||||
- **product_packaging.xml** (XML template/definition)
|
||||
- **product_pricelist_report.py** (Python logic)
|
||||
- **product_pricelist_report_templates.xml** (XML template/definition)
|
||||
- **product_product_templates.xml** (XML template/definition)
|
||||
- **product_reports.xml** (XML template/definition)
|
||||
- **product_template_templates.xml** (XML template/definition)
|
||||
|
||||
## Notes
|
||||
- Named reports above are accessible through Odoo's reporting menu
|
||||
- Python files define report logic and data processing
|
||||
- XML files contain report templates, definitions, and formatting
|
||||
- Reports are integrated with Odoo's printing and email systems
|
||||
42
odoo-bringout-oca-ocb-product/doc/SECURITY.md
Normal file
42
odoo-bringout-oca-ocb-product/doc/SECURITY.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Security
|
||||
|
||||
Access control and security definitions in product.
|
||||
|
||||
## Access Control Lists (ACLs)
|
||||
|
||||
Model access permissions defined in:
|
||||
- **[ir.model.access.csv](../product/security/ir.model.access.csv)**
|
||||
- 30 model access rules
|
||||
|
||||
## Record Rules
|
||||
|
||||
Row-level security rules defined in:
|
||||
|
||||
## Security Groups & Configuration
|
||||
|
||||
Security groups and permissions defined in:
|
||||
- **[product_security.xml](../product/security/product_security.xml)**
|
||||
- 5 security groups defined
|
||||
|
||||
```mermaid
|
||||
graph TB
|
||||
subgraph "Security Layers"
|
||||
A[Users] --> B[Groups]
|
||||
B --> C[Access Control Lists]
|
||||
C --> D[Models]
|
||||
B --> E[Record Rules]
|
||||
E --> F[Individual Records]
|
||||
end
|
||||
```
|
||||
|
||||
Security files overview:
|
||||
- **[ir.model.access.csv](../product/security/ir.model.access.csv)**
|
||||
- Model access permissions (CRUD rights)
|
||||
- **[product_security.xml](../product/security/product_security.xml)**
|
||||
- Security groups, categories, and XML-based rules
|
||||
|
||||
Notes
|
||||
- Access Control Lists define which groups can access which models
|
||||
- Record Rules provide row-level security (filter records by user/group)
|
||||
- Security groups organize users and define permission sets
|
||||
- All security is enforced at the ORM level by Odoo
|
||||
5
odoo-bringout-oca-ocb-product/doc/TROUBLESHOOTING.md
Normal file
5
odoo-bringout-oca-ocb-product/doc/TROUBLESHOOTING.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
7
odoo-bringout-oca-ocb-product/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-product/doc/USAGE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/odoo_web_server.py --db-name mydb --addon product
|
||||
```
|
||||
8
odoo-bringout-oca-ocb-product/doc/WIZARDS.md
Normal file
8
odoo-bringout-oca-ocb-product/doc/WIZARDS.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Wizards
|
||||
|
||||
Transient models exposed as UI wizards in product.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class ProductLabelLayout
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue