clean
parent
0c897d79b8
commit
56140b4048
|
@ -43,9 +43,14 @@
|
||||||
<field name="total"/>
|
<field name="total"/>
|
||||||
</list>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
<field name="fee" span="2" offset="7" attrs='{"readonly":[["state","in",["canceled","approved","validate"]]]}'/>
|
<group attrs='{"readonly":[["state","in",["canceled","approved","validate"]]]}'/>
|
||||||
<field name="total" span="2" offset="8"/>
|
<field name="fee" span="2" offset="7"/>
|
||||||
<field name="amount" span="2" offset="8"/>
|
</group>
|
||||||
|
<group attrs='{"readonly":[["state","not in",["canceled","approved","validate"]]]}'/>
|
||||||
|
<field name="fee" span="2" offset="9"/>
|
||||||
|
</group>
|
||||||
|
<field name="total" span="2" offset="9"/>
|
||||||
|
<field name="amount" span="2" offset="9"/>
|
||||||
<foot>
|
<foot>
|
||||||
<button string="Confirm" type="success" method="confirmed" states="draft" />
|
<button string="Confirm" type="success" method="confirmed" states="draft" />
|
||||||
<button string="Approved" type="success" method="approved" states="confirmed"/>
|
<button string="Approved" type="success" method="approved" states="confirmed"/>
|
||||||
|
@ -53,6 +58,9 @@
|
||||||
<button string="Canceled" type="danger" method="canceled" confirm="You are sure to canceled hd case"/>
|
<button string="Canceled" type="danger" method="canceled" confirm="You are sure to canceled hd case"/>
|
||||||
</foot>
|
</foot>
|
||||||
<related>
|
<related>
|
||||||
|
<field name="invoices" click_action="view_invoice"/>
|
||||||
|
<field name="payments" click_action="view_payment"/>
|
||||||
|
<field name="pickings" click_action="view_picking"/>
|
||||||
<field name="comments"/>
|
<field name="comments"/>
|
||||||
</related>
|
</related>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -34,6 +34,9 @@ class HDcase(Model):
|
||||||
"amount": fields.Float("Amount",function="get_total",readonly=True,function_multi=True),
|
"amount": fields.Float("Amount",function="get_total",readonly=True,function_multi=True),
|
||||||
"total": fields.Float("Total",function="get_total",readonly=True,function_multi=True),
|
"total": fields.Float("Total",function="get_total",readonly=True,function_multi=True),
|
||||||
"reconcile_id": fields.Many2One("account.reconcile","Reconcile Id",readonly=True),
|
"reconcile_id": fields.Many2One("account.reconcile","Reconcile Id",readonly=True),
|
||||||
|
"invoices": fields.One2Many("account.invoice","related_id","Invoices"),
|
||||||
|
"pickings": fields.One2Many("stock.picking","related_id","Pickings"),
|
||||||
|
"payments": fields.One2Many("account.payment","related_id","Payments"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_number(self,context={}):
|
def _get_number(self,context={}):
|
||||||
|
|
|
@ -155,5 +155,4 @@ class Patient(Model):
|
||||||
obj=self.browse(ids)[0]
|
obj=self.browse(ids)[0]
|
||||||
obj.write({"state":"voided"})
|
obj.write({"state":"voided"})
|
||||||
|
|
||||||
|
|
||||||
Patient.register()
|
Patient.register()
|
||||||
|
|
Loading…
Reference in New Issue