mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-21 20:32:09 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import read_announcement_wizard
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# Copyright 2022 Tecnativa - David Vidal
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ReadAnnouncementWizard(models.TransientModel):
|
||||
_name = "read.announcement.wizard"
|
||||
_description = "Show altogether users who read and users who didn't"
|
||||
_order = "date desc"
|
||||
|
||||
date = fields.Datetime(string="Read Date")
|
||||
user_id = fields.Many2one(comodel_name="res.users")
|
||||
announcement_id = fields.Many2one(comodel_name="announcement")
|
||||
read_state = fields.Selection(selection=[("read", "Read"), ("unread", "Unread")])
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2022 Tecnativa - David Vidal
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="read_announcement_wizard_view_tree" model="ir.ui.view">
|
||||
<field name="model">read.announcement.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="date" />
|
||||
<field name="user_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue