fix: add shopify_supplier_id custom field while setting up shopify

This commit is contained in:
Saurabh 2019-05-27 15:17:47 +05:30
parent a8f6938556
commit fdf0d91087

View File

@ -107,10 +107,18 @@ def get_series():
def setup_custom_fields(): def setup_custom_fields():
custom_fields = { custom_fields = {
"Customer": [dict(fieldname='shopify_customer_id', label='Shopify Customer Id', "Customer": [
fieldtype='Data', insert_after='series', read_only=1, print_hide=1)], dict(fieldname='shopify_customer_id', label='Shopify Customer Id',
"Address": [dict(fieldname='shopify_address_id', label='Shopify Address Id', fieldtype='Data', insert_after='series', read_only=1, print_hide=1)
fieldtype='Data', insert_after='fax', read_only=1, print_hide=1)], ],
"Supplier": [
dict(fieldname='shopify_supplier_id', label='Shopify Supplier Id',
fieldtype='Data', insert_after='supplier_name', read_only=1, print_hide=1)
],
"Address": [
dict(fieldname='shopify_address_id', label='Shopify Address Id',
fieldtype='Data', insert_after='fax', read_only=1, print_hide=1)
],
"Item": [ "Item": [
dict(fieldname='shopify_variant_id', label='Shopify Variant Id', dict(fieldname='shopify_variant_id', label='Shopify Variant Id',
fieldtype='Data', insert_after='item_code', read_only=1, print_hide=1), fieldtype='Data', insert_after='item_code', read_only=1, print_hide=1),
@ -119,16 +127,20 @@ def setup_custom_fields():
dict(fieldname='shopify_description', label='Shopify Description', dict(fieldname='shopify_description', label='Shopify Description',
fieldtype='Text Editor', insert_after='description', read_only=1, print_hide=1) fieldtype='Text Editor', insert_after='description', read_only=1, print_hide=1)
], ],
"Sales Order": [dict(fieldname='shopify_order_id', label='Shopify Order Id', "Sales Order": [
fieldtype='Data', insert_after='title', read_only=1, print_hide=1)], dict(fieldname='shopify_order_id', label='Shopify Order Id',
fieldtype='Data', insert_after='title', read_only=1, print_hide=1)
],
"Delivery Note":[ "Delivery Note":[
dict(fieldname='shopify_order_id', label='Shopify Order Id', dict(fieldname='shopify_order_id', label='Shopify Order Id',
fieldtype='Data', insert_after='title', read_only=1, print_hide=1), fieldtype='Data', insert_after='title', read_only=1, print_hide=1),
dict(fieldname='shopify_fulfillment_id', label='Shopify Fulfillment Id', dict(fieldname='shopify_fulfillment_id', label='Shopify Fulfillment Id',
fieldtype='Data', insert_after='title', read_only=1, print_hide=1) fieldtype='Data', insert_after='title', read_only=1, print_hide=1)
], ],
"Sales Invoice": [dict(fieldname='shopify_order_id', label='Shopify Order Id', "Sales Invoice": [
fieldtype='Data', insert_after='title', read_only=1, print_hide=1)] dict(fieldname='shopify_order_id', label='Shopify Order Id',
fieldtype='Data', insert_after='title', read_only=1, print_hide=1)
]
} }
create_custom_fields(custom_fields) create_custom_fields(custom_fields)