Browse Source

[ADD] Initial Commit

pull/29/head
SHEREEF PT 8 years ago
parent
commit
d9e62af420
  1. 23
      hr_recruitment_validations/__init__.py
  2. 44
      hr_recruitment_validations/__manifest__.py
  3. 23
      hr_recruitment_validations/models/__init__.py
  4. 38
      hr_recruitment_validations/models/hr_form_validations.py
  5. BIN
      hr_recruitment_validations/static/description/banner.jpg
  6. BIN
      hr_recruitment_validations/static/description/cybro_logo.png
  7. BIN
      hr_recruitment_validations/static/description/hr_recruitment.png
  8. BIN
      hr_recruitment_validations/static/description/hr_recruitment_2.png
  9. BIN
      hr_recruitment_validations/static/description/icon.png
  10. 78
      hr_recruitment_validations/static/description/index.html
  11. 24
      hr_recruitment_validations/views/hr_form_extend.xml
  12. 9
      scrap_source_report/README.rst
  13. 25
      scrap_source_report/__init__.py
  14. 43
      scrap_source_report/__manifest__.py
  15. 23
      scrap_source_report/models/__init__.py
  16. 33
      scrap_source_report/models/scrap_source.py
  17. BIN
      scrap_source_report/static/description/banner.jpg
  18. BIN
      scrap_source_report/static/description/cybro_logo.png
  19. BIN
      scrap_source_report/static/description/icon.png
  20. 86
      scrap_source_report/static/description/index.html
  21. BIN
      scrap_source_report/static/description/relatedSO.png
  22. BIN
      scrap_source_report/static/description/scrap_report.png
  23. BIN
      scrap_source_report/static/description/source_doc.png
  24. 62
      scrap_source_report/views/scrap_report_template.xml
  25. 13
      scrap_source_report/views/scrap_sources.xml

23
hr_recruitment_validations/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2016-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Technologies(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import models

44
hr_recruitment_validations/__manifest__.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2016-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Technologies(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Advanced HR Recruitment',
'version': '10.0.1.0.0',
'summary': 'Creates validations In HR Recruitment Workflow'
'(Eg: An application stage cannot be moved to its previous one)',
'description': """ Once Application stage is set as Contract signed then Users cannot change its value
""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'category': 'Human Resources',
'website': 'https://www.cybrosys.com',
'depends': [
'base',
'hr_recruitment'
],
'data': ['views/hr_form_extend.xml'],
'images': ['static/description/banner.jpg'],
'installable': True,
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
}

23
hr_recruitment_validations/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2016-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Technologies(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import hr_form_validations

38
hr_recruitment_validations/models/hr_form_validations.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2016-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Cybrosys Technologies(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import models, fields, api, _
from odoo.exceptions import UserError
class AddValidationHr(models.Model):
_inherit = 'hr.applicant'
stage_check = fields.Char(related='stage_id.name')
@api.multi
def write(self, data):
res = super(AddValidationHr, self).write(data)
if data['stage_id'] and data['last_stage_id']:
if data['last_stage_id'] > data['stage_id']:
raise UserError(_("Invalid movement!!!"))
return res

BIN
hr_recruitment_validations/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
hr_recruitment_validations/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
hr_recruitment_validations/static/description/hr_recruitment.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
hr_recruitment_validations/static/description/hr_recruitment_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
hr_recruitment_validations/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

78
hr_recruitment_validations/static/description/index.html

@ -0,0 +1,78 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Advanced HR Recruitment</h2>
<h3 class="oe_slogan">Creates validations In HR Recruitment Workflow</h3>
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
<div>
<h4><p>Features:</p></h4>
<ul>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; Once application stage is set to contract signed, then changing the stage option is disabled.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; An applicant cannot be refused after contract is signed.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9745;</span>&nbsp;&nbsp; An applicant cannot be moved to a previous stage.</li>
</ul>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Application Form</h3>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="hr_recruitment.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
An application stage cannot be moved to its previous one
</p>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Contract Signed Stage</h3>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="hr_recruitment_2.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
Refuse Button and stage changing options are disabled
</p>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>

24
hr_recruitment_validations/views/hr_form_extend.xml

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record model="ir.ui.view" id="crm_case_form_view_job_cybro_extend">
<field name="name">Jobs - Recruitment Form</field>
<field name="model">hr.applicant</field>
<field name="inherit_id" ref="hr_recruitment.crm_case_form_view_job"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='stage_id']" position="replace">
<field name="stage_id" widget="statusbar" clickable="True" options="{'fold_field': 'fold'}"
attrs="{'invisible': [('stage_check', '=', 'Contract Signed')]}"
onchange="check_validations"/>
</xpath>
<xpath expr="//button[@name='archive_applicant']" position="replace">
<button string="Refuse" name="archive_applicant" type="object"
attrs="{'invisible': ['|', ('stage_check', '=', 'Contract Signed'), ('active', '=', False)]}"/>
</xpath>
<xpath expr="//field[@name='partner_id']" position="after">
<field name="stage_check" invisible="1"/>
</xpath>
</field>
</record>
</data>
</odoo>

9
scrap_source_report/README.rst

@ -0,0 +1,9 @@
Scrap Report And Related Source Document v10
============================================
Currently Odoo doesn't support report for scrapped material. This module allows to get report for the
scrap material. Also the scrap products can be generated from sale,purchase or while manufacturing. Here
this app helps to get related source document to know from where the scrap is produced.This way user can
easily manage the scraped products.

25
scrap_source_report/__init__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
import models

43
scrap_source_report/__manifest__.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Scrap Report And Related Source Document',
'version': '10.0.1.0.0',
'summary': 'Report For Scrapped Material And Their Source Document',
'description': 'Allows to get the source document of the Scrap and its report',
'category': 'Warehouse',
'author': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions',
'depends': ['base', 'stock', ],
'data': [
'views/scrap_sources.xml',
'views/scrap_report_template.xml'
],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

23
scrap_source_report/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
import scrap_source

33
scrap_source_report/models/scrap_source.py

@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Treesa Maria Jude(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import fields, models
class ScrapSource(models.Model):
_inherit = 'stock.scrap'
stock_origin = fields.Char(string='Related Source Document', compute='compute_origin')
def compute_origin(self):
self.stock_origin = self.env['stock.picking'].search([('name', '=', self.picking_id.name)]).origin

BIN
scrap_source_report/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

BIN
scrap_source_report/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
scrap_source_report/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

86
scrap_source_report/static/description/index.html

@ -0,0 +1,86 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Scrap Report And Related Source Document</h2>
<h3 class="oe_slogan">Report For Scrapped Material And Their Source Document</h3>
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h2 class="oe_slogan">Overview</h2>
<p class="oe_mt32">
Currently Odoo doesn't support report for scrapped material. This module allows to get report for the
scrap material. Also the scrap products can be generated from sale,purchase or while manufacturing.
Here this app helps to get related source document to know from where the scrap is produced.
This way user can easily manage the scraped products.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Related Source Document</h2>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="relatedSO.png">
</div>
</div>
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="source_doc.png">
</div>
</div>
<div class="oe_span12">
<p class="oe_mt32">
Here we generated a scrap product from the sale order 'SO114'. In inventory,
'Related Source Document' automatically gets the value of this sale order.
</p>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Simple Scrap Report </h2>
<div class="oe_row oe_spaced">
<div class="oe_span12">
<div class="oe_row_img oe_centered">
<p>Inventory --->Scrap --->Print </p>
<img style="border:10px solid white;" class="oe_picture oe_screenshot" src="scrap_report.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container ">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>

BIN
scrap_source_report/static/description/relatedSO.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
scrap_source_report/static/description/scrap_report.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
scrap_source_report/static/description/source_doc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

62
scrap_source_report/views/scrap_report_template.xml

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<report id="action_scrap_report"
model="stock.scrap"
string="Scrap Report"
report_type="qweb-pdf"
file="scrap_source_report.scrap_report"
name="scrap_source_report.scrap_report"
/>
<template id="scrap_report">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.internal_layout">
<div class="page">
<div class="oe_structure"/>
<div class="row">
<div class="col-xs-7">
<h2>Scrap Name : <span t-field="o.name"/></h2>
</div>
</div>
<div class="row mt32 mb32">
<div class="col-xs-3">
<strong>Product:</strong><br/>
<span t-field="o.product_id"/>
</div>
<div class="col-xs-3">
<strong>Quantity:</strong><br/>
<span t-field="o.scrap_qty"/><span t-field="o.product_uom_id"/>
</div>
<div class="col-xs-3">
<strong>Source Document:</strong><br/>
<span t-esc="o.origin"/>
</div>
</div>
<div class="row mt32 mb32">
<div class="col-xs-3">
<strong>Expected Date:</strong><br/>
<span t-field="o.date_expected"/>
</div>
<div class="col-xs-3">
<strong>Picking:</strong><br/>
<span t-field="o.picking_id"/>
</div>
<div class="col-xs-3">
<strong>Manufacturing Order:</strong><br/>
<span t-field="o.production_id"/>
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</t>
</t>
</template>
</odoo>

13
scrap_source_report/views/scrap_sources.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="scrap_source_into_form1" model="ir.ui.view">
<field name="name">scrap_source_into_form1</field>
<field name="model">stock.scrap</field>
<field name="inherit_id" ref="stock.stock_scrap_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='origin']" position="after">
<field name="stock_origin"/>
</xpath>
</field></record>
</odoo>
Loading…
Cancel
Save