20 lines
494 B
Python
20 lines
494 B
Python
|
from netforce.model import Model, fields
|
||
|
|
||
|
class ShopPayment(Model):
|
||
|
_name="clinic.shop.payment"
|
||
|
_transient=True
|
||
|
|
||
|
_fields={
|
||
|
'shop_id': fields.Many2One("clinic.hd.case","HD Case",on_delete="cascade"),
|
||
|
'payment_id': fields.Many2One("account.payment","Payment",on_delete="cascade"),
|
||
|
'account_id': fields.Many2One("account.account","Account"),
|
||
|
'amount': fields.Float("Amount"),
|
||
|
}
|
||
|
|
||
|
_defaults={
|
||
|
'amount': 0.0,
|
||
|
}
|
||
|
|
||
|
ShopPayment.register()
|
||
|
|