Posts

Showing posts with the label Odoo Server Framework 101

Solusi Tutorial Odoo Server Framework 101

 Blogger ini berisi solusi untuk tutorial resmi dari Odoo Server Framework 101 . Anda dapat membaca tutorialnya dari link yang telah disediakan. Blog ini akan berisi solusi dan penjelasan singkat jika diperlukan. Anda bisa melihat solusi akhir dari tutorial Odoo Server Framework 101 di github resmi milik odoo , Jika Anda membutuhkan step by step dari masing-masing tutorial dapat dilihat pada link dibawah. Solusi 1 (Membuat Module Basic). Solusi 2 (Membuat Models) . Solusi 3 (Menambahkan Security Dasar) Solusi 4 (Membuat menu action) Solusi 5 (Custom form, search dan view) Solusi 6 (interlink between model) Solusi 7 (compute field) solusi 8 (action button) solusi 9 (SQL and Python Constrain) solusi 10 (Add Sprinkle) solusi 11 (Inheritance) Solusi 12 (Interact with other module) Solusi 13 (QWeb - Kanban view)

Server Framework 101 - Solusi 13

Solusi untuk tutorial  https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101/14_qwebintro.html file estate_property.xml <? xml version = "1.0" encoding = "utf-8" ?> < odoo >     < record id = "estate_property_action" model = "ir.actions.act_window" >         < field name = "name" > Estate Property </ field >         < field name = "res_model" > estate.property </ field >         < field name = "view_mode" > list,kanban,form </ field >         < field name = "context" > {'search_default_avaliable': True} </ field >         < field name = "help" type = "html" >             < p class = "o_view_nocontent_smiling_face" >                 Create a property advertisement         ...

Server Framework 101 - Solusi 12

Image
 solusi untuk tutorial  https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101/13_other_module.html Buat modul baru dengan nama estate_account (Anda sudah melakukannya pada awal tutoral ini ketika membuat estate modul). file estate_account/__init__.py from . import estate_property file estate_account/__manifest__.py {     'name' : 'Estate Account' ,     'depends' :[         'estate' ,         'account' ,     ],     'auto_install' : True } file estate_account/models/__init__.py from . import estate_property file estate_account/models/estate_property.py # -*- coding: utf-8 -*- from odoo import models , Command class EstateProperty ( models . Model ):     # ---------------------------------------- Private Attributes ---------------------------------     _inherit = "estate.property"     # ---------------------------------------- Action M...

Server Framework 101 - Solusi 11

 solusi untuk tutorial  https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101/12_inheritance.html file estate_property.py from dateutil.relativedelta import relativedelta from odoo import api, fields, models from odoo.exceptions import UserError, ValidationError from odoo.tools import float_compare, float_is_zero class EstateProperty ( models . Model ):     _name = "estate.property"     _description = "Estate property"     _order = "id desc"     _sql_constraints = [         ( "check_expected_price" , "CHECK(expected_price > 0)" , "Expected price should be positive." ),         ( "check_selling_price" , "CHECK(selling_price >= 0)" , "Selling price should be positive." )     ]     name = fields.Char( 'Estate Name' , required = True )     description = fields.Text( 'Description' )     postcode = fields.Char( 'Posc...

Server Framework 101 - Solusi 10

 solusi untuk tutorial https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101/11_sprinkles.html file estate_property.py from dateutil.relativedelta import relativedelta from odoo import api, fields, models from odoo.exceptions import UserError, ValidationError from odoo.tools import float_compare, float_is_zero class EstateProperty ( models . Model ):     _name = "estate.property"     _description = "Estate property"     _order = "id desc"     _sql_constraints = [         ( "check_expected_price" , "CHECK(expected_price > 0)" , "Expected price should be positive." ),         ( "check_selling_price" , "CHECK(selling_price >= 0)" , "Selling price should be positive." )     ]     name = fields.Char( 'Estate Name' , required = True )     description = fields.Text( 'Description' )     postcode = fields.Char( 'Poscode' ) ...