conv_bal
watcha.h 2014-10-05 15:47:12 +07:00
parent 7224b72948
commit 609dfb8a47
3 changed files with 12 additions and 10 deletions

View File

@ -35,7 +35,16 @@
</list> </list>
</field> </field>
</tab> </tab>
<tab string="New Visit"> <tab string="Notes">
<field name="wh_start"/>
<field name="wh_stop"/>
<field name="bp_start"/>
<field name="per_bp_start"/>
<field name="bp_stop"/>
<field name="per_bp_stop"/>
<field name="hct"/>
</tab>
<tab string="Next Visit">
<separator string="Click Options-> New Visit"/> <separator string="Click Options-> New Visit"/>
<field name="planes" nolabel="1" domain="[['state','=','open']]"> <field name="planes" nolabel="1" domain="[['state','=','open']]">
<list> <list>
@ -46,15 +55,6 @@
</list> </list>
</field> </field>
</tab> </tab>
<tab string="Notes">
<field name="wh_start"/>
<field name="wh_stop"/>
<field name="bp_start"/>
<field name="per_bp_start"/>
<field name="bp_stop"/>
<field name="per_bp_stop"/>
<field name="hct"/>
</tab>
<tab string="Others"> <tab string="Others">
<separator string="Accounting"/> <separator string="Accounting"/>
<field name="paid" readonly="1"/> <field name="paid" readonly="1"/>

View File

@ -58,6 +58,7 @@
<button string="Re Visit" type="default" attrs='{"invisible":[["state","=","treatment"]]}' icon="repeat" method="reopen" states="cancelled" /> <button string="Re Visit" type="default" attrs='{"invisible":[["state","=","treatment"]]}' icon="repeat" method="reopen" states="cancelled" />
</foot> </foot>
<related> <related>
<field name="hd_cases" readonly="1"/>
<field name="comments"/> <field name="comments"/>
</related> </related>
</form> </form>

View File

@ -42,6 +42,7 @@ class Visit(Model):
"time_start": fields.DateTime("Time Start"), "time_start": fields.DateTime("Time Start"),
"time_stop": fields.DateTime("Time Stop"), "time_stop": fields.DateTime("Time Stop"),
'planes': fields.One2Many("clinic.visit.plane","visit_id","Planning"), 'planes': fields.One2Many("clinic.visit.plane","visit_id","Planning"),
'hd_cases': fields.One2Many('clinic.hd.case','visit_id',"HD Cases",readonly=True),
} }
def _get_number(self,context={}): def _get_number(self,context={}):