From 1ef52485d17e5bf0c172219f7c2435c2bdfb4554 Mon Sep 17 00:00:00 2001 From: sonal arora Date: Fri, 25 Sep 2020 19:10:31 +0530 Subject: [PATCH] work on laundary mgt --- laundary_mgt/__manifest__.py | 4 +++- laundary_mgt/data/ir_sequence_data.xml | 2 +- .../models/__pycache__/sale.cpython-36.pyc | Bin 2789 -> 3312 bytes laundary_mgt/models/sale.py | 11 ++++++++++- laundary_mgt/views/project_task_view.xml | 18 ++++++++++++++++++ laundary_mgt/views/sale_views.xml | 17 +++++++++++++++++ 6 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 laundary_mgt/views/project_task_view.xml diff --git a/laundary_mgt/__manifest__.py b/laundary_mgt/__manifest__.py index da96006..acf6984 100644 --- a/laundary_mgt/__manifest__.py +++ b/laundary_mgt/__manifest__.py @@ -9,11 +9,13 @@ 'description': """ This module contains all the common features of Laundary Management. """, - 'depends': ['sale'], + 'depends': ['sale','sale_timesheet'], 'data': [ 'security/ir.model.access.csv', 'data/ir_sequence_data.xml', 'views/sale_views.xml', + 'views/sale_views.xml', + 'views/project_task_view.xml', ], 'demo': [ ], diff --git a/laundary_mgt/data/ir_sequence_data.xml b/laundary_mgt/data/ir_sequence_data.xml index 18b7a66..7c1b15c 100644 --- a/laundary_mgt/data/ir_sequence_data.xml +++ b/laundary_mgt/data/ir_sequence_data.xml @@ -6,7 +6,7 @@ Sales Order Line sale.order.line - + / 3 diff --git a/laundary_mgt/models/__pycache__/sale.cpython-36.pyc b/laundary_mgt/models/__pycache__/sale.cpython-36.pyc index fbcb6f0dc76b3ce1b257d319cf513ab30f39293c..4674b85b7059eec571e6a6ab2a8703df687bb5ac 100644 GIT binary patch delta 726 zcmaJ;&ubG=5Z<@R{!F&U#7)!EKmx@!2NR+GtYS?gdJ7eM+C!IR=V6mQ zj$pDPE2^R|f0*I_igwX^?VqAu`Al0mKENzjJO+xV0`m&IIMzUg0u(`eTJZFo>tKMH zb0g;#*ig#3iQIxRILK7bMpl9)I0Y3rjn!qS;#6u`X-~|@JWTe3c#@Wnevxj1te@Ip zG*1q@G^W%ZP}~{@Q=TrzLB#!NG~@mVy1B`pq0muh!J{DIAm17FU`XqZ%Luq?wZiCIVuF-m er!C)GA1gO77Gx8&WigO1?Xzr6ez2QrRsRVWiL(6w delta 287 zcmew$`BYTJn3tD}XG?DUYIX*O#|%h-1;};);^KD<6II@@rHBMGXo_yuV4TRx7&Unp zTYzvBXL(|AMtn(SLFz5m@q-EEB0&LCP1x4KrlDVMixdErXs7!0-R2h`#BUDttW5fkQJ~2DM#063lua((`XCSn2bl0v>i}`HJT=n tn4hM?TZlX-=vg$lJwIlP~hf0svNkIH&*s diff --git a/laundary_mgt/models/sale.py b/laundary_mgt/models/sale.py index 35125c2..1c11539 100644 --- a/laundary_mgt/models/sale.py +++ b/laundary_mgt/models/sale.py @@ -60,4 +60,13 @@ class ClothType(models.Model): _name = 'cloth.type' _description = 'Cloth Type' - name = fields.Char(string='Name') \ No newline at end of file + name = fields.Char(string='Name') + +class ProjectTask(models.Model): + _inherit = "project.task" + + cloth_name = fields.Many2one('cloth.type', string='Cloth Name',related='sale_line_id.cloth_name') + wash_type = fields.Many2one('wash.type', string='Wash Type',related='sale_line_id.wash_type') + color = fields.Many2one('color.type', string='Color', related='sale_line_id.color') + tracking_code = fields.Char(string='Tracking Code',related='sale_line_id.tracking_code') + remark = fields.Text('Remark',copy=False, related='sale_line_id.remark') \ No newline at end of file diff --git a/laundary_mgt/views/project_task_view.xml b/laundary_mgt/views/project_task_view.xml new file mode 100644 index 0000000..c81d78b --- /dev/null +++ b/laundary_mgt/views/project_task_view.xml @@ -0,0 +1,18 @@ + + + + sale.service.form.view.inherit + project.task + + + + + + + + + + + + + diff --git a/laundary_mgt/views/sale_views.xml b/laundary_mgt/views/sale_views.xml index ef74960..9d5b917 100644 --- a/laundary_mgt/views/sale_views.xml +++ b/laundary_mgt/views/sale_views.xml @@ -21,6 +21,23 @@ + + sale.order.line.inherit + sale.order.line + + + + + + + + + + + + + +