improve
parent
3e8f408ab8
commit
6ea0dd1d2b
|
@ -1,8 +1,8 @@
|
|||
<form model="clinic.department" show_company="1">
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="pick_out_journal_id"/>
|
||||
<!--<field name="code"/>-->
|
||||
<field name="parent_id"/>
|
||||
<field name="pick_out_journal_id"/>
|
||||
<field name="branch_id"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
</form>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
</field>
|
||||
</group>
|
||||
</tab>
|
||||
<!--
|
||||
<tab string="Dialyzer">
|
||||
<field name="stock_journal_id"/>
|
||||
</tab>
|
||||
|
@ -34,7 +35,6 @@
|
|||
<field name="schd_to"/>
|
||||
<button string="Transfer" type="primary" icon="arrow-right" method="schd_confirm"/>
|
||||
</tab>
|
||||
<!--
|
||||
<tab string="Testing">
|
||||
<button string="Dummy" type="default" method="run_script"/>
|
||||
<button string="Reset Import" icon="repeat" type="default" method="reset_last_import"/>
|
||||
|
|
|
@ -192,6 +192,8 @@ class Patient(Model):
|
|||
if not vals['active']:
|
||||
vals['resign_date']=time.strftime("%Y-%m-%d")
|
||||
for obj in self.browse(ids):
|
||||
if not obj.addresses:
|
||||
raise Exception("Address not found - %s!"%obj.name)
|
||||
partner_id=obj.partner_id
|
||||
if not partner_id:
|
||||
for partner in get_model("partner").search_browse([['name', '=', obj.name]]):
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
TRUNCATE stock_picking restart identity cascade;
|
||||
TRUNCATE stock_balance restart identity cascade;
|
||||
TRUNCATE clinic_visit restart identity cascade;
|
||||
TRUNCATE clinic_cycle_item restart identity cascade;
|
||||
TRUNCATE clinic_schedule restart identity cascade;
|
Loading…
Reference in New Issue