Skip to content

Commit

Permalink
Add the origin of picking on move line tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
louck committed Sep 24, 2024
1 parent 8f00176 commit 2b7d477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commown_devices/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class StockMoveLine(models.Model):
compute="_compute_show_validate_picking", store=False
)

origin = fields.Char(string="origin", related="move_id.picking_id.origin")

def _compute_is_contract_in(self):
for rec in self:
contract = rec.move_id.contract_id
Expand Down
1 change: 1 addition & 0 deletions commown_devices/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<field name="location_id"/>
<field name="location_dest_id"/>
<field name="date"/>
<field name="origin"/>
<field name="state"/>
<button name="action_validate_linked_picking" string="Validate" class="btn-primary" type="object" attrs="{'invisible': [('show_validate_picking', '=', False)]}"/>
</tree>
Expand Down

0 comments on commit 2b7d477

Please sign in to comment.