Skip to content

Commit

Permalink
TA#58281 [IMP] module sale_project_description (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda authored Feb 20, 2024
1 parent b01c103 commit cf3dd1e
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sale_project_description/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ The possibility to add a description to a sale order that can be passed on to th

Description
-----------
This module adds the `Project Description` field in Sale Order Form View.
This module adds the `Project Description` field in Sale Order Form View and Tree View.

.. image:: static/description/project_description_field.png

.. image:: static/description/sale_order_tree_view.png


From the search bar, I can search the project description in Order:

.. image:: static/description/sale_order_search_bar.png


Usage
-----

Create a new service article with `Service Tracking` set to "Create a task in sales order's project" ou "Create a new project but no task".

.. image:: static/description/article_configuration.png
Expand Down
49 changes: 49 additions & 0 deletions sale_project_description/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_project_description
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-20 16:09+0000\n"
"PO-Revision-Date: 2024-02-20 16:09+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_project_description
#: model:ir.model.fields,field_description:sale_project_description.field_project_project__display_name
#: model:ir.model.fields,field_description:sale_project_description.field_sale_order__display_name
msgid "Display Name"
msgstr "Nom Affiché"

#. module: sale_project_description
#: model:ir.model.fields,field_description:sale_project_description.field_project_project__id
#: model:ir.model.fields,field_description:sale_project_description.field_sale_order__id
msgid "ID"
msgstr ""

#. module: sale_project_description
#: model:ir.model.fields,field_description:sale_project_description.field_project_project____last_update
#: model:ir.model.fields,field_description:sale_project_description.field_sale_order____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_project_description
#: model:ir.model,name:sale_project_description.model_project_project
msgid "Project"
msgstr "Projet"

#. module: sale_project_description
#: model:ir.model.fields,field_description:sale_project_description.field_sale_order__project_description
msgid "Project Description"
msgstr "Description projet"

#. module: sale_project_description
#: model:ir.model,name:sale_project_description.model_sale_order
msgid "Sales Order"
msgstr "Bon de commandes"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions sale_project_description/views/sale_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,36 @@
</field>
</record>

<record id="view_sale_quot_project_desc_tree" model="ir.ui.view">
<field name="name">Sale Quotation Tree: Add Project Description</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="project_description"/>
</field>
</field>
</record>

<record id="view_sale_order_project_desc_tree" model="ir.ui.view">
<field name="name">Sale Order Tree: Add Project Description</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="project_description"/>
</field>
</field>
</record>

<record id="view_sale_order_project_desc_search" model="ir.ui.view">
<field name="name">Sale Order Search: Add Project Description</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter"/>
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="filter_domain"> ['|', '|', '|', ('name', 'ilike', self), ('client_order_ref', 'ilike', self), ('partner_id', 'child_of', self), ('project_description', 'ilike', self)] </attribute>
</field>
</field>
</record>
</odoo>

0 comments on commit cf3dd1e

Please sign in to comment.