-
Notifications
You must be signed in to change notification settings - Fork 2.2k
18.0 training prbo #838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
prbo-odoo
wants to merge
5
commits into
odoo:18.0
Choose a base branch
from
odoo-dev:18.0-training-prbo
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
18.0 training prbo #838
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
871bd93
to
15d69d2
Compare
This commit covers Chapters 4, 5, and 6 of the server framework tutorial. It includes: - Adding security access rules for the basic model to manage user permissions. - Creating the first user interface by adding a menu item and action to navigate to the model records. - Defining the basic tree (list) view and form view for the model to enable record visualization and editing.
…properties This commit introduces action buttons to accept or refuse offers in the real_estate module. When an offer is accepted, the property’s selling price, buyer, and state are updated accordingly. Other offers are automatically refused to ensure only one offer is accepted per property. Also added: - 'state' field on properties to manage lifecycle (new, offer_received, sold, cancelled) - Computed best price field from offers - Validity-based deadline logic using compute/inverse methods on offers - Safeguards preventing sale of cancelled properties and cancellation of sold ones
…ty models This commit adds data integrity and UI improvements as guided by Chapters 10 and 11 of the Odoo Server Framework 101 tutorial. Constraints: - Added SQL constraints to ensure unique names for property types and tags. - Added SQL constraint to ensure color index stays within valid range. - Implemented Python constraints to enforce logical business rules UI Enhancements: - Introduced computed field on property types. - Added stat button to open related offers via domain. - Enhanced form views with notebooks and inline editing for better UX. - Updated navigation menu to include property type and tag settings.
ac4126a
to
f4fbabf
Compare
…rnal module Extended the model in the module using model inheritance. This extension adds new accounting-related fields and functionality that align with the tutorial’s objective of building on top of existing models. Additionally, reused features from another module (), demonstrating how to extend and interact with models defined externally. This helps in separating concerns and encourages modular design by keeping accounting logic in a separate module. Reasons for the change: - To demonstrate how to extend existing models via , promoting reuse of logic. - To maintain separation of concerns by creating a dedicated accounting module for estate management. - To align with Odoo framework best practices, particularly regarding modularization and cross-module integration. - To enhance maintainability and scalability of the estate management application.
f4fbabf
to
c63782b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes the complete implementation of the Real Estate module as per the first 13 chapters of the Odoo 18.0 Server Framework 101 developer tutorial. It covers the full data model setup using relational fields like Many2one, One2many, and Many2many for properties, offers, types, and tags. The module includes business logic such as computed fields, constraints, record rules, and overrides of core ORM methods. Key features like offer acceptance/rejection, state transitions (new → sold/canceled), and user-specific access to properties have been implemented. Additionally, it introduces dynamic views (List, Form and Search), user assignments, menu items, security access controls, and integration with the Accounting module to generate invoices automatically upon property sale.