-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] dental: updated web controller
After this commit: -added patient creation form
- Loading branch information
Showing
13 changed files
with
372 additions
and
178 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
|
||
<record id="menu_dental" model="website.menu"> | ||
<field name="name">Dental Appointment</field> | ||
<field name="url">/dentalappointment</field> | ||
<field name="parent_id" ref="website.main_menu" /> | ||
<field name="sequence" type="int">100</field> | ||
</record> | ||
|
||
</odoo> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class DentalStage(models.Model): | ||
|
||
_name = "dental.stage" | ||
_description = "dental stages" | ||
|
||
name = fields.Char(string="Name", required=True) | ||
sequence = fields.Integer(default=1, string="Sequence") |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record id="dental_stage_search" model="ir.ui.view"> | ||
<field name="name">Stage - Search</field> | ||
<field name="model">dental.stage</field> | ||
<field name="arch" type="xml"> | ||
<search string="Stage Search"> | ||
<field name="name"/> | ||
<field name="sequence"/> | ||
</search> | ||
</field> | ||
</record> | ||
|
||
<record id="dental_stage_tree" model="ir.ui.view"> | ||
<field name="name">dental.stage.tree</field> | ||
<field name="model">dental.stage</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Stages" multi_edit="1"> | ||
<field name="sequence" widget="handle"/> | ||
<field name="name" readonly="1"/> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="dental_stage_form" model="ir.ui.view"> | ||
<field name="name">dental.stage.form</field> | ||
<field name="model">dental.stage</field> | ||
<field name="priority" eval="1"/> | ||
<field name="arch" type="xml"> | ||
<form string="Stage"> | ||
<sheet> | ||
<div class="oe_title"> | ||
<label for="name"/> | ||
<h1> | ||
<field name="name" /> | ||
</h1> | ||
</div> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record id="dental_stage_action" model="ir.actions.act_window"> | ||
<field name="name">Stages</field> | ||
<field name="res_model">dental.stage</field> | ||
<field name="view_mode">tree,form</field> | ||
<field name="help" type="html"> | ||
<p class="o_view_nocontent_smiling_face"> | ||
Set a new stage in your opportunity pipeline | ||
</p> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
This file contains 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
Oops, something went wrong.