2015-03-26 09:11:19 +00:00
|
|
|
from netforce.model import Model, fields
|
|
|
|
|
|
|
|
class ShopPayment(Model):
|
|
|
|
_name="clinic.shop.payment"
|
|
|
|
_transient=True
|
|
|
|
|
|
|
|
_fields={
|
2015-05-03 09:48:18 +00:00
|
|
|
'shop_id': fields.Many2One("clinic.shop","Shop",on_delete="cascade"),
|
2015-03-26 09:11:19 +00:00
|
|
|
'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()
|
|
|
|
|