mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
13 lines
493 B
Python
13 lines
493 B
Python
from odoo import fields, models
|
|
|
|
|
|
class Website(models.Model):
|
|
_inherit = 'website'
|
|
|
|
payment_deposit_threshold = fields.Monetary(string='Payment Deposit Threshold',
|
|
help='Allow customers to make a deposit when their order '
|
|
'total is above this amount.')
|
|
|
|
def get_payment_terms(self):
|
|
return self.env['account.payment.term'].search([('allow_in_website_sale', '=', True)])
|