Skip to content

Commit

Permalink
[UPD] ssi_stock
Browse files Browse the repository at this point in the history
* Menambahkan informasi acquisition value pada stock.production.lot
  • Loading branch information
andhit-r committed Aug 31, 2024
1 parent 8c893fb commit d1dc2aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ssi_stock/models/stock_production_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ def _compute_stock_move_line(self):
related="last_stock_move_line_id.location_dest_id",
store=True,
)
serial_number_acquisition_value = fields.Float(
string="Acquisition Value",
related="last_stock_move_line_id.move_id.price_unit",
store=True,
)
6 changes: 6 additions & 0 deletions ssi_stock/views/stock_production_lot_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
name="serial_number_current_location_id"
invisible="context.get('tracking') != 'serial'"
/>
<field
name="serial_number_acquisition_value"
invisible="context.get('tracking') != 'serial'"
/>


</xpath>
</data>
Expand Down Expand Up @@ -84,6 +89,7 @@
<group name="tracking_1_2" colspan="1" col="2">
<field name="serial_number_in_date" />
<field name="serial_number_current_location_id" />
<field name="serial_number_acquisition_value" />
</group>
</group>
</page>
Expand Down

0 comments on commit d1dc2aa

Please sign in to comment.