diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-12-26 17:51:33 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-12-26 17:51:33 +0700 |
| commit | 0e8be12adad9943dd4a86a31fc0bdf64a74f5db0 (patch) | |
| tree | a1efd9ff92595a69b01b1b26233ffd28f3459e5b | |
| parent | f9f4b55c57461fa7cb0a4d3fb6fc9e85f53fe9c2 (diff) | |
add missing field target in window sales target
| -rw-r--r-- | indoteknik_custom/models/sales_target.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/sales_target.xml | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sales_target.py b/indoteknik_custom/models/sales_target.py index 5d2d6310..ac6405e5 100644 --- a/indoteknik_custom/models/sales_target.py +++ b/indoteknik_custom/models/sales_target.py @@ -15,6 +15,7 @@ class SalesTarget(models.Model): ongoing_omset_accurate = fields.Float(string='Omset Berjalan Accurate') ongoing_omset_adempiere = fields.Float(string='Omset Berjalan ADempiere') ongoing_omset_total = fields.Float(string='Total Omset', compute='_compute_total_omset') + target = fields.Float(string='Target') def _compute_total_omset(self): for target in self: diff --git a/indoteknik_custom/views/sales_target.xml b/indoteknik_custom/views/sales_target.xml index 39462ad7..6ccea260 100644 --- a/indoteknik_custom/views/sales_target.xml +++ b/indoteknik_custom/views/sales_target.xml @@ -16,6 +16,7 @@ <field name="period"/> <field name="omset_last_year"/> <field name="ongoing_omset_total"/> + <field name="target"/> </tree> </field> </record> @@ -34,6 +35,7 @@ <field name="ongoing_omset_odoo"/> <field name="ongoing_omset_accurate"/> <field name="ongoing_omset_adempiere"/> + <field name="target"/> </group> </group> </sheet> |
