Skip to content

Commit

Permalink
[8.0.1.0.0] hr_timesheet_sheet_product_policy/
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Apr 11, 2020
1 parent 1054d84 commit 95345f9
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 0 deletions.
39 changes: 39 additions & 0 deletions hr_timesheet_sheet_product_policy/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=================================
Timesheet Tracking Product Policy
=================================


Installation
============

To install this module, you need to:

1. Clone the branch 8.0 of the repository https://github.com/open-synergy/opnsynid-hr
2. Add the path to this repository in your configuration (addons-path)
3. Update the module list
4. Go to menu *Setting -> Modules -> Local Modules*
5. Search For *Timesheet Tracking Product Policy*
6. Install the module

Credits
=======

Contributors
------------

* Michael Viriyananda <viriyananda.michael@gmail.com>
* Andhitia Rama <andhitia.r@gmail.com>
* Nurazmi <azmimr67@gmail.com>

Maintainer
----------

.. image:: https://simetri-sinergi.id/logo.png
:alt: PT. Simetri Sinergi Indonesia
:target: https://simetri-sinergi.id.com

This module is maintained by the PT. Simetri Sinergi Indonesia.
4 changes: 4 additions & 0 deletions hr_timesheet_sheet_product_policy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright 2020 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
20 changes: 20 additions & 0 deletions hr_timesheet_sheet_product_policy/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright 2020 OpenSynergy Indonesia
# Copyright 2020 PT. Simetri Sinergi Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Timesheet Tracking Product Policy",
"version": "8.0.1.0.0",
"website": "https://simetri-sinergi.id",
"author": "PT. Simetri Sinergi Indonesia, OpenSynergy Indonesia",
"license": "AGPL-3",
"installable": True,
"depends": [
"hr_timesheet_sheet",
"hr_timesheet_product_policy",
],
"auto_install": True,
"data": [
"views/hr_timesheet_sheet_sheet_views.xml",
],
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2020 OpenSynergy Indonesia
Copyright 2020 PT. Simetri Sinergi Indonesia
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<openerp>
<data>

<record id="hr_timesheet_sheet_sheet_view_form" model="ir.ui.view">
<field name="name">hr_timesheet_sheet.sheet form</field>
<field name="model">hr_timesheet_sheet.sheet</field>
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='product_id']" position="before">
<field name="timesheet_account_allowed_product_categ_ids" widget="many2many_tags" invisible="0"/>
<field name="timesheet_account_allowed_product_ids" widget="many2many_tags" invisible="1"/>
</xpath>
<xpath expr="//field[@name='timesheet_ids']/tree/field[@name='product_id']" position="attributes">
<attribute name="invisible">1</attribute>
<attribute name="domain">['|',('categ_id','in',timesheet_account_allowed_product_categ_ids[0][2]),('id','in',timesheet_account_allowed_product_ids[0][2])]</attribute>
</xpath>
</data>
</field>
</record>


</data>
</openerp>

0 comments on commit 95345f9

Please sign in to comment.