mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-22 05:32:04 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class Notification(models.Model):
|
||||
_inherit = 'mail.notification'
|
||||
|
||||
notification_type = fields.Selection(selection_add=[('snail', 'Snailmail')], ondelete={'snail': 'cascade'})
|
||||
letter_id = fields.Many2one('snailmail.letter', string="Snailmail Letter", index='btree_not_null', ondelete='cascade')
|
||||
failure_type = fields.Selection(selection_add=[
|
||||
('sn_credit', "Snailmail Credit Error"),
|
||||
('sn_trial', "Snailmail Trial Error"),
|
||||
('sn_price', "Snailmail No Price Available"),
|
||||
('sn_fields', "Snailmail Missing Required Fields"),
|
||||
('sn_format', "Snailmail Format Error"),
|
||||
('sn_error', "Snailmail Unknown Error"),
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue