This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/Tecnativa/doodba#optodoocustomsrcreposyaml | |
./odoo: | |
defaults: | |
# Shallow repositories ($DEPTH_DEFAULT=1) are faster & thinner | |
# You may need a bigger depth when merging PRs (use $DEPTH_MERGE | |
# for a sane value of 100 commits) | |
depth: $DEPTH_DEFAULT | |
remotes: | |
ocb: https://github.com/OCA/OCB.git | |
odoo: https://github.com/odoo/odoo.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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_reimbursement_view_search" model="ir.ui.view"> | |
<field name="name">hr.reimbursement form</field> | |
<field name="model">hr.reimbursement</field> | |
<field name="arch" type="xml"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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_reimbursement_view_search" model="ir.ui.view"> | |
<field name="name">hr.reimbursement form</field> | |
<field name="model">hr.reimbursement</field> | |
<field name="arch" type="xml"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Copyright 2020 PT. Simetri Sinergi Indonesia | |
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | |
from openerp import _, api, fields, models | |
from openerp.exceptions import Warning as UserError | |
class HrReimbursement(models.Model): | |
_name = "hr.reimbursement" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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). | |
from openerp import models, fields, api, _ | |
from openerp.exceptions import Warning as UserError | |
class BudgetBudget(models.Model): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<record id="hr_reimbursement_type_view_tree" model="ir.ui.view"> | |
<field name="name">hr.reimbursement_type tree</field> | |
<field name="model">hr.reimbursement_type</field> | |
<field name="arch" type="xml"> | |
<tree> | |
<field name="sequence" widget="handle"/> | |
<field name="name" /> | |
<field name="code" /> | |
</tree> | |
</field> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<record id="hr_reimbursement_type_view_form" model="ir.ui.view"> | |
<field name="name">hr.reimbursement_type form</field> | |
<field name="model">hr.reimbursement_type</field> | |
<field name="arch" type="xml"> | |
<form> | |
<header /> | |
<sheet> | |
<div | |
class="oe_right oe_button_box" | |
style="width: 300px;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@api.model | |
def name_search(self, name="", args=None, operator="ilike", limit=100): | |
res = super(ProjectProject, self)\ | |
.name_search(name=name, args=args, operator=operator, limit=limit) | |
args = list(args or []) | |
if name: | |
criteria = [ | |
"|", | |
("code", operator, name), | |
("name", operator, name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HrReimbursementType(models.Model): | |
_name = "hr.reimbursement_type" | |
_description = "Employee Reimbursement Type" | |
_order = "sequence, id" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = fields.Char( | |
string="Employee Reimbursement Type", | |
required=True, | |
) | |
code = fields.Char( | |
string="Code", | |
required=True, | |
) | |
sequence = fields.Integer( | |
string="Sequence", |
NewerOlder