style: format code with black
This commit is contained in:
@@ -2,7 +2,7 @@ import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
company = frappe.get_all('Company', filters = {'country': 'India'})
|
||||
company = frappe.get_all("Company", filters={"country": "India"})
|
||||
|
||||
if not company:
|
||||
return
|
||||
@@ -14,14 +14,16 @@ def execute():
|
||||
|
||||
ewaybill_field.flags.ignore_validate = True
|
||||
|
||||
ewaybill_field.update({
|
||||
'fieldname': 'ewaybill',
|
||||
'label': 'e-Way Bill No.',
|
||||
'fieldtype': 'Data',
|
||||
'depends_on': 'eval:(doc.docstatus === 1)',
|
||||
'allow_on_submit': 1,
|
||||
'insert_after': 'tax_id',
|
||||
'translatable': 0
|
||||
})
|
||||
ewaybill_field.update(
|
||||
{
|
||||
"fieldname": "ewaybill",
|
||||
"label": "e-Way Bill No.",
|
||||
"fieldtype": "Data",
|
||||
"depends_on": "eval:(doc.docstatus === 1)",
|
||||
"allow_on_submit": 1,
|
||||
"insert_after": "tax_id",
|
||||
"translatable": 0,
|
||||
}
|
||||
)
|
||||
|
||||
ewaybill_field.save()
|
||||
|
||||
Reference in New Issue
Block a user