Skip to content

Commit

Permalink
TA#40499 add code to perdiem types (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddufresne authored Nov 3, 2021
1 parent 07ddd6d commit 940c59b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion show_project_perdiem/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Show Project Per Diem",
"summary": "Add perdiems on shows",
"version": "1.0.0",
"version": "1.1.0",
"website": "https://bit.ly/numigi-com",
"author": "Numigi",
"maintainer": "Numigi",
Expand Down
8 changes: 4 additions & 4 deletions show_project_perdiem/demo/project.perdiem.type.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id,name
perdiem_type_breakfast,Breakfast
perdiem_type_lunch,Lunch
perdiem_type_supper,Supper
id,name,code
perdiem_type_breakfast,Breakfast,BF
perdiem_type_lunch,Lunch,LN
perdiem_type_supper,Supper,SU
1 change: 1 addition & 0 deletions show_project_perdiem/models/project_perdiem_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ class ProjectPerDiemType(models.Model):
name = fields.Char(required=True, translate=True)
active = fields.Boolean(default=True)
description = fields.Text()
code = fields.Char()
2 changes: 2 additions & 0 deletions show_project_perdiem/views/project_perdiem_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</div>
<group>
<group name="group_1">
<field name="code" required="1"/>
<label for="description"/>
<field name="description" nolabel="1" colspan="2"/>
</group>
Expand All @@ -42,6 +43,7 @@
<field name="arch" type="xml">
<tree string="Per Diem Types">
<field name="name"/>
<field name="code"/>
<field name="active"/>
</tree>
</field>
Expand Down

0 comments on commit 940c59b

Please sign in to comment.