Merge PR #1630 into 15.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2023-02-02 08:15:45 +00:00
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ class StockRequest(models.Model):
"mrp_production_id",
string="Manufacturing Orders",
readonly=True,
copy=False,
)
production_count = fields.Integer(
string="Manufacturing Orders count",

View File

@@ -163,6 +163,8 @@ class TestStockRequestMrp(common.TransactionCase):
manufacturing_order.with_context(skip_immediate=True).button_mark_done()
self.assertEqual(order.stock_request_ids.qty_in_progress, 0.0)
self.assertEqual(order.stock_request_ids.qty_done, 5.0)
order2 = order.copy()
self.assertFalse(order2.production_ids)
def test_view_actions(self):
expected_date = fields.Datetime.now()