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 committed Mar 22, 2024
1 parent c8373e9 commit be31060
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, default="Inventory", string="Inventory Reference")

Expand All @@ -15,6 +18,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 @@ -113,6 +113,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 be31060

Please sign in to comment.