Skip to content

Commit

Permalink
TA#70368 [14.0][CHG] project_material_enhanced : name to ref for manu…
Browse files Browse the repository at this point in the history
…facturer (#439)
  • Loading branch information
lanto-razafindrabe authored Oct 25, 2024
1 parent 527e794 commit fcd298e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions project_material_enhanced/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: project_material_enhanced
#: model:ir.model.fields,field_description:project_material_enhanced.field_project_task_material__manufacturer_pname
msgid "Manuf. Product Name"
msgstr "Nom chez le fabricant"
#: model:ir.model.fields,field_description:project_material_enhanced.field_project_task_material__manufacturer_pref
msgid "Manuf. Product Code"
msgstr "Code chez le fabricant"

#. module: project_material_enhanced
#: model:ir.model.fields,field_description:project_material_enhanced.field_project_task_material__manufacturer
Expand Down
6 changes: 3 additions & 3 deletions project_material_enhanced/models/project_task_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class ProjectTaskMaterial(models.Model):
store=True,
)

manufacturer_pname = fields.Char(
string='Manuf. Product Name',
related='product_id.manufacturer_pname',
manufacturer_pref = fields.Char(
string='Manuf. Product Code',
related='product_id.manufacturer_pref',
store=True,
)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion project_material_enhanced/views/project_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="manufacturer" />
<field name="manufacturer_pname" />
<field name="manufacturer_pref" />
</field>
<field name="initial_qty" position="after">
<field name="available_qty" />
Expand Down

0 comments on commit fcd298e

Please sign in to comment.