Skip to content

Commit

Permalink
[ADÐ] add mail.thread on stock.inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
benwillig authored and DavidJForgeFlow committed May 2, 2024
1 parent 246d68d commit acb4a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stock_inventory/models/stock_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class InventoryAdjustmentsGroup(models.Model):
_name = "stock.inventory"
_description = "Inventory Adjustment Group"
_order = "date desc, id desc"
_inherit = [
"mail.thread",
]

name = fields.Char(
required=True,
Expand Down Expand Up @@ -34,6 +37,7 @@ class InventoryAdjustmentsGroup(models.Model):
state = fields.Selection(
[("draft", "Draft"), ("in_progress", "In Progress"), ("done", "Done")],
default="draft",
tracking=True,
)

owner_id = fields.Many2one(
Expand Down
4 changes: 4 additions & 0 deletions stock_inventory/views/stock_inventory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="message_ids" widget="mail_thread" />
</div>
</form>
</field>
</record>
Expand Down

0 comments on commit acb4a25

Please sign in to comment.