mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Merge branch 'develop' into fix/github-issue/32559
This commit is contained in:
2
.github/workflows/server-tests-mariadb.yml
vendored
2
.github/workflows/server-tests-mariadb.yml
vendored
@@ -120,7 +120,7 @@ jobs:
|
|||||||
FRAPPE_BRANCH: ${{ github.event.inputs.branch }}
|
FRAPPE_BRANCH: ${{ github.event.inputs.branch }}
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --use-orchestrator --with-coverage
|
run: 'cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --with-coverage --total-builds 4 --build-number ${{ matrix.container }}'
|
||||||
env:
|
env:
|
||||||
TYPE: server
|
TYPE: server
|
||||||
CI_BUILD_ID: ${{ github.run_id }}
|
CI_BUILD_ID: ${{ github.run_id }}
|
||||||
|
|||||||
@@ -232,10 +232,10 @@ class Item(Document):
|
|||||||
|
|
||||||
def clear_retain_sample(self):
|
def clear_retain_sample(self):
|
||||||
if not self.has_batch_no:
|
if not self.has_batch_no:
|
||||||
self.retain_sample = None
|
self.retain_sample = False
|
||||||
|
|
||||||
if not self.retain_sample:
|
if not self.retain_sample:
|
||||||
self.sample_quantity = None
|
self.sample_quantity = 0
|
||||||
|
|
||||||
def add_default_uom_in_conversion_factor_table(self):
|
def add_default_uom_in_conversion_factor_table(self):
|
||||||
if not self.is_new() and self.has_value_changed("stock_uom"):
|
if not self.is_new() and self.has_value_changed("stock_uom"):
|
||||||
|
|||||||
@@ -717,8 +717,8 @@ class TestItem(FrappeTestCase):
|
|||||||
|
|
||||||
item.has_batch_no = None
|
item.has_batch_no = None
|
||||||
item.save()
|
item.save()
|
||||||
self.assertEqual(item.retain_sample, None)
|
self.assertEqual(item.retain_sample, False)
|
||||||
self.assertEqual(item.sample_quantity, None)
|
self.assertEqual(item.sample_quantity, 0)
|
||||||
item.delete()
|
item.delete()
|
||||||
|
|
||||||
def consume_item_code_with_differet_stock_transactions(
|
def consume_item_code_with_differet_stock_transactions(
|
||||||
|
|||||||
Reference in New Issue
Block a user