Skip to content
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

17.0 training chha #182

Draft
wants to merge 20 commits into
base: 17.0
Choose a base branch
from
Draft

17.0 training chha #182

wants to merge 20 commits into from

Conversation

chha-odoo
Copy link

Training

ged-odoo and others added 4 commits October 16, 2024 13:34
Learned about the folder structure of the module and created the estate
module in tutorials. Added name and description of the model and also added
varius type of fields in it. Create csv file for security purpose to restrict
access to data for the internal users. Make front end part for created model
using  XML file. learned basics about menuitem and record in it.
Completed 1-4 chapters in developer tutorials of Odoo.
In chapter 5 learned about Data Files (XML), Actions, Menus, Fields, Attributes
and View, Default Values and Reserved Fields.
In chapter 6 created different type of views like List, Form and Search. Also
make filter and group by for search.
In chapter 7 made three types of relational tables. Many2one, Many2many and
One2many. leaned about env variables.
Learned about Computed Fields and Onchanges :

Computed Fields:
i) computed total area of property by two depending fields living area and
garden area.
ii) computed the best offer price for the property using One2many relationship.
iii) computed date_deadline for the offers using validity period and create date
. (also used the inverse function to recalculate the validity period after
changing the date_deadline by user).

Onchanges:
i) created onchange function for property model. when user check the garden the
garden_area set to 10 and garden orientation to North automatically and vice
versa for unchecking the garden.
Chapter 9
Learned about Action
- Added 'Cancel' and 'Sold' buttons with business logic to estate.property
model.
- Implemented 'Accept' and 'Refuse' buttons for estate.property.offer model.
- Set buyer and selling price upon offer acceptance, ensuring only one accepted
offer per property.

Chapter 10
Learned about Constraints
- Added SQL constraints for positive pricing and unique names on property tags
and types.
- Implemented Python constraint to ensure selling price is at least 90% of
expected price.

Chapter 11
- Added inline list view for property types to display offers.
- Implemented statusbar widget to show property states.
- Established default sorting for property and offer models.
- Introduced manual ordering for property types using a sequence field.
- Enabled conditional display of buttons based on property state.
- Applied color decorations to property and offer list views.
- Made estate.property.offer and estate.property.tag list views editable.
- Set default filter for 'Available' properties in the action.
- Improved search functionality for living area filtering.
- Added stat button to property type form to view related offers.
- Prevent deletion of properties unless their state is 'New' or 'Canceled'.
- Ensure that new offers cannot be created with a price lower than existing
offers and setting the state to 'Offer Received' upon creation.
- Introduce a property_ids field in the res.users model, establishing a
one-to-many relationship with properties, and applying a domain filter to
show only properties in states 'New' or 'Offer Received'.
- Extend the user form view to include the property_ids in a new notebook page.
Completed Chapter 13
- Created a new module to connect the real estate and invoicing.
- Modified the property sold action to automatically create a customer
invoice with two line items.
Completed chapter 14
- Created a basic Kanban view to display property names in clickable cards.
- Added fields for expected price, best price, selling price, and tags, with
conditional visibility for prices.
- Grouped properties by type by default and disabled drag-and-drop functionality.
Completed: Define module data
- Added standard property types: Residential, Commercial, Industrial, and Land
using CSV file.
- Created demo properties and offers using XML file.
- Learned how to access the data using the breakpoint()
- Learned about noupdate='1' and noupdate='0'
- Created security groups for Real Estate Agents and Managers.
- Defined access rights for models.
- Added record rules to restrict Agents from seeing properties.
- Implemented security overrides to allow Agents to confirm sales without
invoicing access.
- Added multi-company support to ensure Agents access only from their companies
properties only.
- Modified UI visibility to hide Settings menu from Agents.
- Add property offers report template.
- Enhance report with conditional display for no offers.
- Create sub-template for offers table.
- Create report to list all properties for a user.
- Inherited template and added condition to display invoice line when status is sold.
- Added a button in the estate property tree view header to initiate the 'Add
Offer' wizard. This allows salespersons to select multiple properties for offer.
- Developed the 'Add Offer' wizard with fields for price, offer status, and
buyer information. Integrated buttons for 'Make an offer' and 'Cancel'.
- When a salesperson selects multiple properties and uses the wizard, the offer
is added to each of the chosen properties.
Add Properties menu and routing

- Implemented 'Properties' menu to display available properties.
- Created `/properties` route to list properties with pager (6 properties
per page).
- Filtered properties to exclude those that are 'sold' or 'canceled'.
- Developed dedicated route for viewing specific property details.
- Added static images for demo data to enhance property listings.
- Added Max Weight and Max Volume fields in the fleet category.
- Overrode _compute_display_name method to display Max Weight and Max Volume in
fleet form.
- Created new fields in inventory batch form: Dock, Vehicle, Vehicle Category
, Weight Progress, and Volume Progress.
- Added Volume field in Transfer page to show total volume used per
transfer.
- Created a new module to facilitate installation of the stock_transfer module.
- Implemented Graph View to display measures: volume, weight, transfers,
and lines.
- Added Gantt View with customizations:
  - Overridden display name of the batch.
  - Set default group to Dock and Fleet togather.
  - Added decorations like decoration-success, decoration-info and
    decoration-warning using the state of the batch.
- Only admin can see the all features of this new module.
- Print Labels button in stock picking batch is only visible to admin.
- Added 'is_kit' checkbox to allow sub-products for main products.
- Added button for open a wizard in the sale order line to manage sub-products.
- Only wizard allows editing price and quantity for sub-products.
- Sub-products are added to the sale order line after confirmation.
- Implemented functionality for removing main product will also deletes
sub-products.
- Sale order line for sub-products is set to readonly for everyone.
- Refetch the old values when reopening the wizard.
- Added button 'print_in_report' if user want to print the sub-products in the
Quotation, Invoice and on Preview page.
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