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