You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
638 B

from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError,Warning
from psycopg2 import sql, DatabaseError
from werkzeug import utils
class opendons_accounting_deposit(models.Model):
_name = 'opendons.accountingdeposit'
_description = 'manage accounting deposit'
company_id = fields.Many2one(
"res.company",
string="Company",
ondelete="cascade",
default=lambda self: self.env.company,
)
donation_ids = fields.One2many(
'donation.donation',
'accountingdeposit_id',
string='Payment batchs',
readonly=True
)