uom car service create
This commit is contained in:
parent
8afac7e97d
commit
42c3cef6ae
@ -162,7 +162,8 @@ def create_ledger_entity(sender, instance, created, **kwargs):
|
|||||||
|
|
||||||
if coa:
|
if coa:
|
||||||
# Create essential UOMs synchronously
|
# Create essential UOMs synchronously
|
||||||
entity.create_uom(name="Unit", unit_abbr="unit")
|
for u in models.UnitOfMeasure.choices:
|
||||||
|
entity.create_uom(name=u[1], unit_abbr=u[0])
|
||||||
|
|
||||||
# Schedule async task after successful synchronous operations
|
# Schedule async task after successful synchronous operations
|
||||||
async_task(
|
async_task(
|
||||||
|
|||||||
@ -10958,7 +10958,7 @@ def upload_cars(request, dealer_slug, pk=None):
|
|||||||
logger.info(
|
logger.info(
|
||||||
f"User {user_username} updated PoItemsUploaded status to 'uploaded' for Item PK: {item.pk}."
|
f"User {user_username} updated PoItemsUploaded status to 'uploaded' for Item PK: {item.pk}."
|
||||||
)
|
)
|
||||||
return redirect("inventory_stats", kwargs={"dealer_slug": dealer_slug})
|
return redirect("home")
|
||||||
# --- Log for successful CSV import and car creation ---
|
# --- Log for successful CSV import and car creation ---
|
||||||
logger.info(
|
logger.info(
|
||||||
f"User {user_username} successfully imported {cars_created} cars "
|
f"User {user_username} successfully imported {cars_created} cars "
|
||||||
|
|||||||
@ -269,7 +269,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
{% if perms.inventory.add_car%}
|
{% if perms.django_ledger.view_ledgermodel %}
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
{% if not car.get_transfer %}
|
{% if not car.get_transfer %}
|
||||||
<a href="{% url 'car_finance_update' request.dealer.slug car.slug %}"
|
<a href="{% url 'car_finance_update' request.dealer.slug car.slug %}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user