Skip to content

Commit

Permalink
[DON'T MERGE] test-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
alan196 committed Aug 2, 2024
1 parent a092275 commit f86803f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion purchase_lot/models/purchase_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"

lot_id = fields.Many2one("stock.lot", string="Serial Number", copy=False)
lot_id = fields.Many2one(
"stock.lot", string="Serial Number", copy=False, readonly=True
)

@api.model
def _prepare_purchase_order_line_from_procurement(
Expand Down
4 changes: 2 additions & 2 deletions purchase_lot/views/purchase_order_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
expr="//field[@name='order_line']/tree/field[@name='name']"
position="after"
>
<field name="lot_id" readonly="1" />
<field name="lot_id" />
</xpath>
</field>
</record>
Expand All @@ -19,7 +19,7 @@
<field name="inherit_id" ref="purchase.purchase_order_line_form2" />
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="lot_id" readonly="1" />
<field name="lot_id" />
</xpath>
</field>
</record>
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
odoo_test_helper
odoo-addon-stock_restrict_lot @ git+https://github.com/OCA/stock-logistics-workflow.git@refs/pull/1610/head#subdirectory=stock_restrict_lot
odoo-addon-sale_order_lot_selection @ git+https://github.com/OCA/sale-workflow.git@refs/pull/3034/head#subdirectory=sale_order_lot_selection

0 comments on commit f86803f

Please sign in to comment.