diff --git a/agreement_serviceprofile/__manifest__.py b/agreement_serviceprofile/__manifest__.py index 3977ca750..6dfee4955 100644 --- a/agreement_serviceprofile/__manifest__.py +++ b/agreement_serviceprofile/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Agreement Service Profile', 'summary': "Adds an Agreement Service Profile object", - 'version': '12.0.1.1.2', + 'version': '12.0.1.2.0', 'category': 'Contract', 'author': 'Pavlov Media, ' 'Open Source Integrators, ' diff --git a/agreement_serviceprofile/i18n/agreement_serviceprofile.pot b/agreement_serviceprofile/i18n/agreement_serviceprofile.pot index bdf215580..3b7bfccc4 100644 --- a/agreement_serviceprofile/i18n/agreement_serviceprofile.pot +++ b/agreement_serviceprofile/i18n/agreement_serviceprofile.pot @@ -197,6 +197,7 @@ msgid "Partner" msgstr "" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "" @@ -207,6 +208,12 @@ msgid "Product Template" msgstr "" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "" @@ -216,6 +223,11 @@ msgstr "" msgid "Service Product" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -258,6 +270,11 @@ msgstr "" msgid "Unread Messages Counter" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/i18n/de.po b/agreement_serviceprofile/i18n/de.po index 772d29451..bcba64a8e 100644 --- a/agreement_serviceprofile/i18n/de.po +++ b/agreement_serviceprofile/i18n/de.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_serviceprofile +# * agreement_serviceprofile # msgid "" msgstr "" @@ -96,7 +96,8 @@ msgstr "" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_product__is_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_template__is_serviceprofile -msgid "If True, this product will create a service profile on the\n" +msgid "" +"If True, this product will create a service profile on the\n" " agreement when the sales order is confirmed." msgstr "" @@ -117,7 +118,9 @@ msgstr "" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active -msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgid "" +"If unchecked, it will allow you to hide this service profile without " +"removing it." msgstr "" #. module: agreement_serviceprofile @@ -198,6 +201,7 @@ msgid "Partner" msgstr "" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "" @@ -208,6 +212,12 @@ msgid "Product Template" msgstr "" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "" @@ -217,6 +227,11 @@ msgstr "" msgid "Service Product" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -259,6 +274,11 @@ msgstr "" msgid "Unread Messages Counter" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/i18n/en_US.po b/agreement_serviceprofile/i18n/en_US.po index a91983431..091ed269c 100644 --- a/agreement_serviceprofile/i18n/en_US.po +++ b/agreement_serviceprofile/i18n/en_US.po @@ -203,6 +203,7 @@ msgid "Partner" msgstr "" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "" @@ -213,6 +214,12 @@ msgid "Product Template" msgstr "" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "" @@ -222,6 +229,11 @@ msgstr "" msgid "Service Product" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -264,6 +276,11 @@ msgstr "" msgid "Unread Messages Counter" msgstr "" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/i18n/es.po b/agreement_serviceprofile/i18n/es.po index 96f4ce659..60b2bbb00 100644 --- a/agreement_serviceprofile/i18n/es.po +++ b/agreement_serviceprofile/i18n/es.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_serviceprofile +# * agreement_serviceprofile # msgid "" msgstr "" @@ -98,7 +98,8 @@ msgstr "ID" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_product__is_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_template__is_serviceprofile -msgid "If True, this product will create a service profile on the\n" +msgid "" +"If True, this product will create a service profile on the\n" " agreement when the sales order is confirmed." msgstr "" "Si es verdadero, este producto creará un perfil de servicio en\n" @@ -121,7 +122,9 @@ msgstr "Si está marcado, algunos mensajes tienen un error de entrega." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active -msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgid "" +"If unchecked, it will allow you to hide this service profile without " +"removing it." msgstr "" "Si no está marcada, le permitirá ocultar este perfil de servicio sin " "eliminarlo." @@ -204,6 +207,7 @@ msgid "Partner" msgstr "Contacto" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "Producto" @@ -214,6 +218,12 @@ msgid "Product Template" msgstr "Plantilla de Producto" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "Servicio" @@ -223,6 +233,11 @@ msgstr "Servicio" msgid "Service Product" msgstr "Servicio de Producto" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -265,6 +280,11 @@ msgstr "Mensajes no Leídos" msgid "Unread Messages Counter" msgstr "Contador de mensajes no Leídos" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/i18n/fr.po b/agreement_serviceprofile/i18n/fr.po index ab1ef53d7..9214475e6 100644 --- a/agreement_serviceprofile/i18n/fr.po +++ b/agreement_serviceprofile/i18n/fr.po @@ -6,20 +6,20 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-08-18 16:59+0000\n" -"Last-Translator: Grégory Moka Tourisme \n" +"PO-Revision-Date: 2021-01-04 11:44+0000\n" +"Last-Translator: Rémi \n" "Language-Team: none\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.10\n" +"X-Generator: Weblate 4.3.2\n" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_needaction msgid "Action Needed" -msgstr "" +msgstr "Action nécessaire" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__active @@ -52,7 +52,7 @@ msgstr "Étapes de l'accord" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_attachment_count msgid "Attachment Count" -msgstr "" +msgstr "Nombre de pièces jointes" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_product_product__is_serviceprofile @@ -78,17 +78,17 @@ msgstr "Nom d'affichage" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_follower_ids msgid "Followers" -msgstr "" +msgstr "Abonnés" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_channel_ids msgid "Followers (Channels)" -msgstr "" +msgstr "Abonnés (canaux)" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_partner_ids msgid "Followers (Partners)" -msgstr "" +msgstr "Abonnés (partenaires)" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__id @@ -102,23 +102,23 @@ msgid "" "If True, this product will create a service profile on the\n" " agreement when the sales order is confirmed." msgstr "" -"Si Vrai, ce produit créera un profil de service sur l'accord lorsque la " -"commande client est confirmée." +"Si Vrai, ce produit créera un profil de service sur\n" +" l'accord lorsque la commande client est confirmée." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__message_unread msgid "If checked new messages require your attention." -msgstr "" +msgstr "Si coché, de nouveaux messages requièrent votre attention." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__message_needaction msgid "If checked, new messages require your attention." -msgstr "" +msgstr "Si coché, de nouveaux messages requièrent votre attention." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__message_has_error msgid "If checked, some messages have a delivery error." -msgstr "" +msgstr "Si coché, des messages ont une erreur de livraison." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active @@ -132,7 +132,7 @@ msgstr "" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_is_follower msgid "Is Follower" -msgstr "" +msgstr "Est abonné" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile____last_update @@ -152,17 +152,17 @@ msgstr "Dernière mise à jour le" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_main_attachment_id msgid "Main Attachment" -msgstr "" +msgstr "Pièce jointe principale" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_has_error msgid "Message Delivery error" -msgstr "" +msgstr "Erreur de livraison de message" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_ids msgid "Messages" -msgstr "" +msgstr "Messages" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__name @@ -179,27 +179,27 @@ msgstr "Remarques" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_needaction_counter msgid "Number of Actions" -msgstr "" +msgstr "Nombre d'actions" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_has_error_counter msgid "Number of error" -msgstr "" +msgstr "Nombre d'erreurs" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__message_needaction_counter msgid "Number of messages which requires an action" -msgstr "" +msgstr "Nombre de messages qui requièrent une action" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__message_has_error_counter msgid "Number of messages with delivery error" -msgstr "" +msgstr "Nombre de messages avec erreur de livraison" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__message_unread_counter msgid "Number of unread messages" -msgstr "" +msgstr "Nombre de messages non lus" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__partner_id @@ -207,6 +207,7 @@ msgid "Partner" msgstr "Partenaire" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "Produit" @@ -217,6 +218,12 @@ msgid "Product Template" msgstr "Modèle produit" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "Service" @@ -226,6 +233,11 @@ msgstr "Service" msgid "Service Product" msgstr "Profil produit" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -261,19 +273,24 @@ msgstr "Type" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_unread msgid "Unread Messages" -msgstr "" +msgstr "Messages non-lus" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__message_unread_counter msgid "Unread Messages Counter" +msgstr "Nombre de messages non lus" + +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" msgstr "" #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" -msgstr "" +msgstr "Messages de site web" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website communication history" -msgstr "" +msgstr "Historique de la communication du site web" diff --git a/agreement_serviceprofile/i18n/pt.po b/agreement_serviceprofile/i18n/pt.po index 0fe786815..0d4656cde 100644 --- a/agreement_serviceprofile/i18n/pt.po +++ b/agreement_serviceprofile/i18n/pt.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_serviceprofile +# * agreement_serviceprofile # msgid "" msgstr "" @@ -98,7 +98,8 @@ msgstr "ID" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_product__is_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_template__is_serviceprofile -msgid "If True, this product will create a service profile on the\n" +msgid "" +"If True, this product will create a service profile on the\n" " agreement when the sales order is confirmed." msgstr "" "Se Verdadeiro,este produto criará um perfil de serviço no\n" @@ -121,7 +122,9 @@ msgstr "Se assinalado, algumas mensagens contêm erro de envio." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active -msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgid "" +"If unchecked, it will allow you to hide this service profile without " +"removing it." msgstr "" "Se não assinalado, permitirá esconder este perfil de serviço sem o eliminar." @@ -203,6 +206,7 @@ msgid "Partner" msgstr "Parceiro" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "Artigo" @@ -213,6 +217,12 @@ msgid "Product Template" msgstr "Modelo de Artigo" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "Serviço" @@ -222,6 +232,11 @@ msgstr "Serviço" msgid "Service Product" msgstr "Artigo do Serviço" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -264,6 +279,11 @@ msgstr "Mensagens Não Lidas" msgid "Unread Messages Counter" msgstr "Contador de Mensagens Não Lidas" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/i18n/pt_BR.po b/agreement_serviceprofile/i18n/pt_BR.po index 2df32a728..a167243c7 100644 --- a/agreement_serviceprofile/i18n/pt_BR.po +++ b/agreement_serviceprofile/i18n/pt_BR.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_serviceprofile +# * agreement_serviceprofile # msgid "" msgstr "" @@ -98,7 +98,8 @@ msgstr "ID" #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_product__is_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_product_template__is_serviceprofile -msgid "If True, this product will create a service profile on the\n" +msgid "" +"If True, this product will create a service profile on the\n" " agreement when the sales order is confirmed." msgstr "" "Se Verdadeiro, este produto criará um perfil de serviço no acordo quando a " @@ -121,7 +122,9 @@ msgstr "Se selecionado, algumas mensagens tem um erro de entrega." #. module: agreement_serviceprofile #: model:ir.model.fields,help:agreement_serviceprofile.field_agreement_serviceprofile__active -msgid "If unchecked, it will allow you to hide this service profile without removing it." +msgid "" +"If unchecked, it will allow you to hide this service profile without " +"removing it." msgstr "" "Se não estiver marcada, permitirá você ocultar este perfil de serviço sem " "removê-lo." @@ -204,6 +207,7 @@ msgid "Partner" msgstr "Parceiro" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "Produto" @@ -214,6 +218,12 @@ msgid "Product Template" msgstr "Modelo de Produto" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "Serviço" @@ -223,6 +233,11 @@ msgstr "Serviço" msgid "Service Product" msgstr "Produto de Serviço" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -265,6 +280,11 @@ msgstr "Mensagens Não Lidas" msgid "Unread Messages Counter" msgstr "Contador de Mensagens Não Lidas" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/i18n/zh_CN.po b/agreement_serviceprofile/i18n/zh_CN.po index 54d446d95..c72557f1e 100644 --- a/agreement_serviceprofile/i18n/zh_CN.po +++ b/agreement_serviceprofile/i18n/zh_CN.po @@ -203,6 +203,7 @@ msgid "Partner" msgstr "业务伙伴" #. module: agreement_serviceprofile +#: model:ir.model,name:agreement_serviceprofile.model_product_product #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search msgid "Product" msgstr "产品" @@ -213,6 +214,12 @@ msgid "Product Template" msgstr "产品模版" #. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_search +msgid "Product Variant" +msgstr "" + +#. module: agreement_serviceprofile +#: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_product_form_view #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.product_template_form_view msgid "Service" msgstr "服务" @@ -222,6 +229,11 @@ msgstr "服务" msgid "Service Product" msgstr "服务产品" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__product_variant_id +msgid "Service Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: selection:agreement.stage,stage_type:0 #: model_terms:ir.ui.view,arch_db:agreement_serviceprofile.agreement_serviceprofile_form @@ -264,6 +276,11 @@ msgstr "未读消息" msgid "Unread Messages Counter" msgstr "未读消息计数器" +#. module: agreement_serviceprofile +#: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__use_product_variant +msgid "Use Product Variant" +msgstr "" + #. module: agreement_serviceprofile #: model:ir.model.fields,field_description:agreement_serviceprofile.field_agreement_serviceprofile__website_message_ids msgid "Website Messages" diff --git a/agreement_serviceprofile/models/agreement_serviceprofile.py b/agreement_serviceprofile/models/agreement_serviceprofile.py index 6f676bf67..c2b2289dd 100644 --- a/agreement_serviceprofile/models/agreement_serviceprofile.py +++ b/agreement_serviceprofile/models/agreement_serviceprofile.py @@ -28,8 +28,11 @@ class AgreementServiceProfile(models.Model): notes = fields.Text(string="Notes") product_id = fields.Many2one('product.template', 'Service Product', domain="[('is_serviceprofile', '=', True), " - "('type', '=', 'service')]", - required=True) + "('type', '=', 'service')]") + product_variant_id = fields.Many2one('product.product', 'Service Product Variant', + domain="[('is_serviceprofile', '=', True), " + "('type', '=', 'service')]") + use_product_variant = fields.Boolean('Use Product Variant', default=False) partner_id = fields.Many2one(related='agreement_id.partner_id', string='Partner') diff --git a/agreement_serviceprofile/models/product.py b/agreement_serviceprofile/models/product.py index afde8de02..55a216989 100644 --- a/agreement_serviceprofile/models/product.py +++ b/agreement_serviceprofile/models/product.py @@ -16,3 +16,17 @@ class ProductTemplate(models.Model): def onchange_type(self): if self.is_serviceprofile: self.type = 'service' + + +class ProductProduct(models.Model): + _inherit = 'product.product' + + is_serviceprofile = fields.Boolean( + string="Create Service Profiles", + help="""If True, this product will create a service profile on the + agreement when the sales order is confirmed.""") + + @api.onchange('is_serviceprofile') + def onchange_type(self): + if self.is_serviceprofile: + self.type = 'service' diff --git a/agreement_serviceprofile/views/agreement.xml b/agreement_serviceprofile/views/agreement.xml index c7e605b84..3cb0784e2 100644 --- a/agreement_serviceprofile/views/agreement.xml +++ b/agreement_serviceprofile/views/agreement.xml @@ -12,6 +12,7 @@ +
@@ -19,7 +20,9 @@ - + + + diff --git a/agreement_serviceprofile/views/agreement_serviceprofile.xml b/agreement_serviceprofile/views/agreement_serviceprofile.xml index 55a4e56a2..b680b433f 100644 --- a/agreement_serviceprofile/views/agreement_serviceprofile.xml +++ b/agreement_serviceprofile/views/agreement_serviceprofile.xml @@ -11,6 +11,7 @@ + @@ -47,7 +48,9 @@ - + + + @@ -96,6 +99,9 @@ + diff --git a/agreement_serviceprofile/views/product.xml b/agreement_serviceprofile/views/product.xml index d5b0571d9..e227fdabb 100644 --- a/agreement_serviceprofile/views/product.xml +++ b/agreement_serviceprofile/views/product.xml @@ -21,4 +21,23 @@ + + + product.product.form.view + product.product + + + + + + + + + + + + + + +