admin can edit products and variations

This commit is contained in:
Bachir Soussi Chiadmi 2021-06-10 23:38:48 +02:00
parent fad036cb21
commit 8688d403c9
13 changed files with 205 additions and 2 deletions

View File

@ -0,0 +1,18 @@
uuid: 6a3c58fc-2e5b-40d2-9cb0-6b5d989fc71a
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.default
id: commerce_product.default.changed
field_name: changed
entity_type: commerce_product
bundle: default
label: Modifié
description: 'The time when the product was last edited.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: changed

View File

@ -0,0 +1,18 @@
uuid: 77c85057-1c5c-4876-b514-2ab600cbf6b4
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.default
id: commerce_product.default.created
field_name: created
entity_type: commerce_product
bundle: default
label: Créé
description: 'The time when the product was created.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: created

View File

@ -0,0 +1,20 @@
uuid: f6633354-6a2b-4ec4-b114-610fe18f28b6
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.default
module:
- path
id: commerce_product.default.path
field_name: path
entity_type: commerce_product
bundle: default
label: 'Alias d''URL'
description: 'The product URL alias.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: path

View File

@ -0,0 +1,22 @@
uuid: 3740f152-816b-40fc-9219-c96a9ddbaff9
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.default
id: commerce_product.default.status
field_name: status
entity_type: commerce_product
bundle: default
label: Publié
description: ''
required: false
translatable: false
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: Activé
off_label: Désactivé
field_type: boolean

View File

@ -0,0 +1,20 @@
uuid: a5a9c5fa-7b8b-4441-a208-96b062c8d135
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.default
id: commerce_product.default.uid
field_name: uid
entity_type: commerce_product
bundle: default
label: Auteur
description: 'L''auteur du produit.'
required: false
translatable: false
default_value: { }
default_value_callback: 'Drupal\commerce_product\Entity\Product::getDefaultEntityOwner'
settings:
handler: default
handler_settings: { }
field_type: entity_reference

View File

@ -0,0 +1,18 @@
uuid: 038bb662-ec4a-4e32-a750-9b07b0c96f5a
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.materio_product_type
id: commerce_product.materio_product_type.changed
field_name: changed
entity_type: commerce_product
bundle: materio_product_type
label: Modifié
description: 'The time when the product was last edited.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: changed

View File

@ -0,0 +1,18 @@
uuid: 7d6bfc53-c873-4b55-be54-206774a05d66
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.materio_product_type
id: commerce_product.materio_product_type.created
field_name: created
entity_type: commerce_product
bundle: materio_product_type
label: Créé
description: 'The time when the product was created.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: created

View File

@ -0,0 +1,20 @@
uuid: 16bf42be-b3b9-4aa3-92ab-9e15b9690535
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.materio_product_type
module:
- path
id: commerce_product.materio_product_type.path
field_name: path
entity_type: commerce_product
bundle: materio_product_type
label: 'Alias d''URL'
description: 'The product URL alias.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: path

View File

@ -0,0 +1,22 @@
uuid: eae8fe01-d2ac-4de2-8aaf-f5047349b686
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.materio_product_type
id: commerce_product.materio_product_type.status
field_name: status
entity_type: commerce_product
bundle: materio_product_type
label: Publié
description: ''
required: false
translatable: false
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: Activé
off_label: Désactivé
field_type: boolean

View File

@ -0,0 +1,20 @@
uuid: e8db3c03-a361-4f48-b802-437f2e67d1fb
langcode: fr
status: true
dependencies:
config:
- commerce_product.commerce_product_type.materio_product_type
id: commerce_product.materio_product_type.uid
field_name: uid
entity_type: commerce_product
bundle: materio_product_type
label: Auteur
description: 'L''auteur du produit.'
required: false
translatable: false
default_value: { }
default_value_callback: 'Drupal\commerce_product\Entity\Product::getDefaultEntityOwner'
settings:
handler: default
handler_settings: { }
field_type: entity_reference

View File

@ -10,7 +10,7 @@ third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
untranslatable_fields_hide: '1'
id: commerce_product.default
target_entity_type_id: commerce_product
target_bundle: default

View File

@ -10,7 +10,7 @@ third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
untranslatable_fields_hide: '1'
id: commerce_product.materio_product_type
target_entity_type_id: commerce_product
target_bundle: materio_product_type

View File

@ -14,6 +14,7 @@ permissions:
- 'access any generique workflow_transion overview'
- 'access commerce_license overview'
- 'access commerce_order overview'
- 'access commerce_product overview'
- 'access files overview'
- 'access materio search'
- 'access profile overview'
@ -23,6 +24,7 @@ permissions:
- 'access user profiles'
- 'add flag lists'
- 'administer commerce_order'
- 'administer commerce_product'
- 'administer newsletters'
- 'administer productions menu items'
- 'administer simplenews subscriptions'
@ -133,6 +135,7 @@ permissions:
- 'send newsletter'
- 'translate article node'
- 'translate assisted_research taxonomy_term'
- 'translate commerce_product_variation'
- 'translate company taxonomy_term'
- 'translate enregistrement node'
- 'translate entrees taxonomy_term'
@ -142,6 +145,7 @@ permissions:
- 'translate interface'
- 'translate langues taxonomy_term'
- 'translate materiau node'
- 'translate materio_product_type commerce_product'
- 'translate menu_link_content'
- 'translate page node'
- 'translate showroom taxonomy_term'
@ -151,6 +155,8 @@ permissions:
- 'translate thesaurus taxonomy_term'
- 'unflag dossier other items'
- 'update any commerce_license'
- 'update any materio_product_type commerce_product'
- 'update any online commerce_store'
- 'update commerce_promotion'
- 'update content translations'
- 'update materio_order_type commerce_order'
@ -173,6 +179,7 @@ permissions:
- 'view materiau revisions'
- 'view materio_order_type commerce_order'
- 'view member profile'
- 'view online commerce_store'
- 'view own flag lists'
- 'view own profile'
- 'view page revisions'