[MERGE] Merged with main addons.
bzr revid: tde@openerp.com-20120628151543-xzbdozee57vry52b
This commit is contained in:
commit
1fb0ea8800
|
@ -40,7 +40,7 @@ class crm_lead(base_stage, osv.osv):
|
|||
_name = "crm.lead"
|
||||
_description = "Lead/Opportunity"
|
||||
_order = "priority,date_action,id desc"
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread','res.partner']
|
||||
_inherit = ['ir.needaction_mixin', 'mail.thread']
|
||||
|
||||
def _get_default_section_id(self, cr, uid, context=None):
|
||||
""" Gives default section by checking if present in the context """
|
||||
|
@ -245,6 +245,20 @@ class crm_lead(base_stage, osv.osv):
|
|||
'company_currency': fields.related('company_id', 'currency_id', 'symbol', type='char', string='Company Currency', readonly=True),
|
||||
'user_email': fields.related('user_id', 'user_email', type='char', string='User Email', readonly=True),
|
||||
'user_login': fields.related('user_id', 'login', type='char', string='User Login', readonly=True),
|
||||
|
||||
# Fields for address, due to separation from crm and res.partner
|
||||
'street': fields.char('Street', size=128),
|
||||
'street2': fields.char('Street2', size=128),
|
||||
'zip': fields.char('Zip', change_default=True, size=24),
|
||||
'city': fields.char('City', size=128),
|
||||
'state_id': fields.many2one("res.country.state", 'State', domain="[('country_id','=',country_id)]"),
|
||||
'country_id': fields.many2one('res.country', 'Country'),
|
||||
'phone': fields.char('Phone', size=64),
|
||||
'fax': fields.char('Fax', size=64),
|
||||
'mobile': fields.char('Mobile', size=64),
|
||||
'function': fields.char('Function', size=128),
|
||||
'title': fields.many2one('res.partner.title', 'Title'),
|
||||
'company_id': fields.many2one('res.company', 'Company', select=1),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
|
|
@ -590,7 +590,7 @@
|
|||
help="Opportunities that are assigned to either me or one of the sale teams I manage" />
|
||||
<separator orientation="vertical"/>
|
||||
<field name="user_id"/>
|
||||
<field name="country"/>
|
||||
<field name="country_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="section_id"
|
||||
context="{'invisible_section': False, 'default_section_id': self}"/>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
name="Schedule a Meeting"
|
||||
res_model="crm.meeting"
|
||||
view_mode="calendar,tree,form,gantt"
|
||||
context="{'search_default_partner_id': active_id, 'default_duration': 4.0}"
|
||||
context="{'default_partner_id': active_id, 'default_duration': 4.0}"
|
||||
/>
|
||||
|
||||
<record model="ir.actions.act_window.view" id="action_crm_tag_calendar_meet_partner">
|
||||
|
|
|
@ -76,10 +76,10 @@
|
|||
</field>
|
||||
<xpath expr="//h4[@class='oe_partner_heading']" position="after">
|
||||
<a name="%(act_res_partner_2_opportunity)d" type="action">
|
||||
<t t-if="record.opportunity_count.value">Opportunities(<t t-esc="record.opportunity_count.value"/>)</t>
|
||||
<t t-if="record.opportunity_count.value"><t t-esc="record.opportunity_count.value"/> Opportunities</t>
|
||||
</a>
|
||||
<a name="%(crm_meeting_partner)d" type="action">
|
||||
<t t-if="record.meeting_count.value">Meetings(<t t-esc="record.meeting_count.value"/>)</t>
|
||||
<t t-if="record.meeting_count.value"><t t-esc="record.meeting_count.value"/> Meetings</t>
|
||||
</a>
|
||||
</xpath>
|
||||
</field>
|
||||
|
@ -96,11 +96,12 @@
|
|||
<button type="action"
|
||||
string="Schedule a Meeting"
|
||||
name="%(crm.crm_case_categ_meet_create_partner)d"
|
||||
context="{'search_default_partner_id': [active_id], 'default_duration': 4.0}"/>
|
||||
context="{'default_partner_id': [active_id], 'default_duration': 4.0}"/>
|
||||
<button type="action" string="Schedule a Call"
|
||||
name="%(crm.crm_case_categ_phone_create_partner)d"
|
||||
context="{'search_default_partner_id': [active_id], 'default_duration': 1.0, 'default_partner_id': active_id}" />
|
||||
<button type="action" string="Create an Opportunity"
|
||||
context="{'search_default_partner_id': [active_id], 'default_duration': 1.0}" />
|
||||
<button type="action" string="Opportunities"
|
||||
context="{'search_default_partner_id': [active_id]}"
|
||||
name="%(crm.action_view_crm_partner2opportunity)d" />
|
||||
</xpath>
|
||||
</field>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<field name="name">Create Opportunity</field>
|
||||
<field name="res_model">crm.partner2opportunity</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_mode">form,tree,kanban,calendar</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -156,7 +156,8 @@ class contrib_register(osv.osv):
|
|||
_description = 'Contribution Register'
|
||||
|
||||
_columns = {
|
||||
'company_id':fields.many2one('res.company', 'Company', required=False),
|
||||
'company_id':fields.many2one('res.company', 'Company'),
|
||||
'partner_id':fields.many2one('res.partner', 'Partner'),
|
||||
'name':fields.char('Name', size=256, required=True, readonly=False),
|
||||
'register_line_ids':fields.one2many('hr.payslip.line', 'register_id', 'Register Line', readonly=True),
|
||||
'note': fields.text('Description'),
|
||||
|
@ -773,7 +774,7 @@ class hr_salary_rule(osv.osv):
|
|||
'company_id':fields.many2one('res.company', 'Company', required=False),
|
||||
'condition_select': fields.selection([('none', 'Always True'),('range', 'Range'), ('python', 'Python Expression')], "Condition Based on", required=True),
|
||||
'condition_range':fields.char('Range Based on',size=1024, readonly=False, help='This will be used to compute the % fields values; in general it is on basic, but you can also use categories code fields in lowercase as a variable names (hra, ma, lta, etc.) and the variable basic.'),
|
||||
'condition_python':fields.text('Python Condition', required=True, readonly=False, help='Applied this rule for calculation if condition is true. You can specify condition like basic > 1000.'),#old name = conditions
|
||||
'condition_python':fields.text('Python Condition', required=True, readonly=False, help='Applied this rule for calculation if condition is true. You can specify condition like basic > 1000.'),
|
||||
'condition_range_min': fields.float('Minimum Range', required=False, help="The minimum amount, applied for this rule."),
|
||||
'condition_range_max': fields.float('Maximum Range', required=False, help="The maximum amount, applied for this rule."),
|
||||
'amount_select':fields.selection([
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data noupdate="1">
|
||||
<record id="contrib_register_employees" model="hr.contribution.register">
|
||||
<field name="name">Employees</field>
|
||||
<field name="partner_id" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="BASIC" model="hr.salary.rule.category">
|
||||
<field name="name">Basic</field>
|
||||
|
@ -60,6 +64,7 @@
|
|||
<field name="condition_select">none</field>
|
||||
<field name="amount_select">code</field>
|
||||
<field name="amount_python_compute">result = categories.BASIC + categories.ALW + categories.DED</field>
|
||||
<field name="register_id" ref="contrib_register_employees"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
|
|
@ -99,6 +99,7 @@ class hr_payslip(osv.osv):
|
|||
else:
|
||||
period_id = slip.period_id.id
|
||||
|
||||
default_partner_id = slip.employee_id.address_home_id.id
|
||||
name = _('Payslip of %s') % (slip.employee_id.name)
|
||||
move = {
|
||||
'narration': name,
|
||||
|
@ -109,7 +110,7 @@ class hr_payslip(osv.osv):
|
|||
}
|
||||
for line in slip.line_ids:
|
||||
amt = slip.credit_note and -line.total or line.total
|
||||
partner_id = False
|
||||
partner_id = line.salary_rule_id.register_id.partner_id and line.salary_rule_id.register_id.partner_id.id or default_partner_id
|
||||
debit_account_id = line.salary_rule_id.account_debit.id
|
||||
credit_account_id = line.salary_rule_id.account_credit.id
|
||||
|
||||
|
@ -118,7 +119,7 @@ class hr_payslip(osv.osv):
|
|||
debit_line = (0, 0, {
|
||||
'name': line.name,
|
||||
'date': timenow,
|
||||
'partner_id': partner_id,
|
||||
'partner_id': (line.salary_rule_id.register_id.partner_id or line.salary_rule_id.account_debit.type in ('receivable', 'payable')) and partner_id or False,
|
||||
'account_id': debit_account_id,
|
||||
'journal_id': slip.journal_id.id,
|
||||
'period_id': period_id,
|
||||
|
@ -136,7 +137,7 @@ class hr_payslip(osv.osv):
|
|||
credit_line = (0, 0, {
|
||||
'name': line.name,
|
||||
'date': timenow,
|
||||
'partner_id': partner_id,
|
||||
'partner_id': (line.salary_rule_id.register_id.partner_id or line.salary_rule_id.account_credit.type in ('receivable', 'payable')) and partner_id or False,
|
||||
'account_id': credit_account_id,
|
||||
'journal_id': slip.journal_id.id,
|
||||
'period_id': period_id,
|
||||
|
@ -156,7 +157,7 @@ class hr_payslip(osv.osv):
|
|||
adjust_credit = (0, 0, {
|
||||
'name': _('Adjustment Entry'),
|
||||
'date': timenow,
|
||||
'partner_id': partner_id,
|
||||
'partner_id': False,
|
||||
'account_id': acc_id,
|
||||
'journal_id': slip.journal_id.id,
|
||||
'period_id': period_id,
|
||||
|
@ -172,7 +173,7 @@ class hr_payslip(osv.osv):
|
|||
adjust_debit = (0, 0, {
|
||||
'name': _('Adjustment Entry'),
|
||||
'date': timenow,
|
||||
'partner_id': partner_id,
|
||||
'partner_id': False,
|
||||
'account_id': acc_id,
|
||||
'journal_id': slip.journal_id.id,
|
||||
'period_id': period_id,
|
||||
|
|
|
@ -2,80 +2,6 @@
|
|||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="hr_payroll.hr_salary_rule_houserentallowance1" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_salary_rule_convanceallowance1" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_salary_rule_professionaltax1" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_salary_rule_providentfund1" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_salary_rule_meal_voucher" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_salary_rule_ca_paolino" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_rule_basic" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_rule_taxable" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_rule_net" model="hr.salary.rule">
|
||||
<field name="account_debit" ref="account.a_salary_expense"/>
|
||||
</record>
|
||||
|
||||
<!-- Payslip -->
|
||||
<!-- <record id="hr_payroll.hr_payslip_salaryslipofbonamyforjune0" model="hr.payslip">
|
||||
<field name="journal_id" ref="account.expenses_journal"/>
|
||||
<field name="bank_journal_id" ref="account.bank_journal"/>
|
||||
</record>-->
|
||||
|
||||
<!-- Assigned Default Account in Different Demo Employees -->
|
||||
|
||||
<!-- <record id="hr.employee" model="hr.employee">
|
||||
<field name="property_bank_account" ref="account.bnk"/>
|
||||
<field name="salary_account" ref="account.a_salary_expense"/>
|
||||
<field name="employee_account" ref="account.a_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr.employee_fp" model="hr.employee">
|
||||
<field name="property_bank_account" ref="account.bnk"/>
|
||||
<field name="salary_account" ref="account.a_salary_expense"/>
|
||||
<field name="employee_account" ref="account.a_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr.employee_qdp" model="hr.employee">
|
||||
<field name="property_bank_account" ref="account.bnk"/>
|
||||
<field name="salary_account" ref="account.a_salary_expense"/>
|
||||
<field name="employee_account" ref="account.a_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr.employee_al" model="hr.employee">
|
||||
<field name="property_bank_account" ref="account.bnk"/>
|
||||
<field name="salary_account" ref="account.a_salary_expense"/>
|
||||
<field name="employee_account" ref="account.a_expense"/>
|
||||
</record>
|
||||
|
||||
<record id="hr_payroll.hr_employee_bonamy0" model="hr.employee">
|
||||
<field name="property_bank_account" ref="account.bnk"/>
|
||||
<field name="salary_account" ref="account.a_salary_expense"/>
|
||||
<field name="employee_account" ref="account.a_expense"/>
|
||||
</record>-->
|
||||
|
||||
<record id="bnk" model="account.account">
|
||||
<field name="code">X110041</field>
|
||||
<field name="name">Bank Current Account</field>
|
||||
|
@ -101,6 +27,14 @@
|
|||
<field name="user_type" ref="account.data_account_type_payable"/>
|
||||
</record>
|
||||
|
||||
<record id="res_partner_bonamy" model="res.partner">
|
||||
<field name="name">Employee: Bonamy</field>
|
||||
</record>
|
||||
<record id="hr_payroll.hr_employee_bonamy0" model="hr.employee">
|
||||
<field name="address_home_id" ref="res_partner_bonamy"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -3903,28 +3903,28 @@
|
|||
<record id="a4550" model="account.account.template">
|
||||
<field name="name">Administrateurs, gérants et commissaires</field>
|
||||
<field name="code">4550</field>
|
||||
<field name="type">other</field>
|
||||
<field name="type">payable</field>
|
||||
<field name="user_type" ref="account.data_account_type_payable"/>
|
||||
<field ref="a455" name="parent_id"/>
|
||||
</record>
|
||||
<record id="a4551" model="account.account.template">
|
||||
<field name="name">Direction</field>
|
||||
<field name="code">4551</field>
|
||||
<field name="type">other</field>
|
||||
<field name="type">payable</field>
|
||||
<field name="user_type" ref="account.data_account_type_payable"/>
|
||||
<field ref="a455" name="parent_id"/>
|
||||
</record>
|
||||
<record id="a4552" model="account.account.template">
|
||||
<field name="name">Employés</field>
|
||||
<field name="code">4552</field>
|
||||
<field name="type">other</field>
|
||||
<field name="type">payable</field>
|
||||
<field name="user_type" ref="account.data_account_type_payable"/>
|
||||
<field ref="a455" name="parent_id"/>
|
||||
</record>
|
||||
<record id="a4553" model="account.account.template">
|
||||
<field name="name">Ouvriers</field>
|
||||
<field name="code">4553</field>
|
||||
<field name="type">other</field>
|
||||
<field name="type">payable</field>
|
||||
<field name="user_type" ref="account.data_account_type_payable"/>
|
||||
<field ref="a455" name="parent_id"/>
|
||||
</record>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -37,7 +37,7 @@ class hr_contract_be(osv.osv):
|
|||
'additional_net_amount': fields.float('Net supplements', digits_compute=dp.get_precision('Payroll')),
|
||||
'retained_net_amount': fields.float('Net retained ', digits_compute=dp.get_precision('Payroll')),
|
||||
}
|
||||
|
||||
|
||||
hr_contract_be()
|
||||
|
||||
class hr_employee_be(osv.osv):
|
||||
|
@ -50,7 +50,7 @@ class hr_employee_be(osv.osv):
|
|||
'resident_bool': fields.boolean('Nonresident', help="if recipient lives in a foreign country"),
|
||||
'disabled_children_number': fields.integer('Number of disabled children'),
|
||||
}
|
||||
|
||||
|
||||
hr_employee_be()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -1,6 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<!-- CONTRIBUTION REGISTERS -->
|
||||
<record id="res_partner_onss" model="res.partner">
|
||||
<field name="name">ONSS</field>
|
||||
</record>
|
||||
<record id="contrib_register_onss" model="hr.contribution.register">
|
||||
<field name="name">ONSS</field>
|
||||
<field name="note">National Office of Social Security</field>
|
||||
<field name="partner_id" ref="res_partner_onss"/>
|
||||
</record>
|
||||
<record id="res_partner_pp" model="res.partner">
|
||||
<field name="name">Fiscal Administration</field>
|
||||
</record>
|
||||
<record id="contrib_register_pp" model="hr.contribution.register">
|
||||
<field name="name">Fiscal Administration</field>
|
||||
<field name="partner_id" ref="res_partner_pp"/>
|
||||
</record>
|
||||
<record id="res_partner_meal_vouchers" model="res.partner">
|
||||
<field name="name">Restaurant Tickets Organism</field>
|
||||
</record>
|
||||
<record id="contrib_register_meal_vouchers" model="hr.contribution.register">
|
||||
<field name="name">Restaurant Tickets Organism</field>
|
||||
<field name="partner_id" ref="res_partner_meal_vouchers"/>
|
||||
</record>
|
||||
|
||||
<!-- HR SALARY RULE CATEGORIES-->
|
||||
<record id="hr_payroll_head_salary" model="hr.salary.rule.category">
|
||||
<field name="name">Gross</field>
|
||||
<field name="code">BRUT</field>
|
||||
|
@ -62,6 +87,7 @@
|
|||
<field name="amount_select">percentage</field>
|
||||
<field name="amount_percentage_base">SALARY</field>
|
||||
<field name="amount_percentage">-13.07</field>
|
||||
<field name="register_id" ref="contrib_register_onss"/>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_p_p_b1" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_pp"/>
|
||||
|
@ -223,6 +249,7 @@
|
|||
<field name="condition_select">python</field>
|
||||
<field name="condition_python">result = bool(contract.meal_voucher_amount)</field>
|
||||
<field name="appears_on_payslip" eval="False"/>
|
||||
<field name="register_id" ref="contrib_register_meal_vouchers"/>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_ch_worker" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll_head_div_net"/>
|
||||
|
@ -237,6 +264,7 @@
|
|||
<field name="amount_percentage_base">contract.meal_voucher_employee_deduction</field>
|
||||
<field name="quantity">worked_days.WORK100.number_of_days</field>
|
||||
<field name="appears_on_payslip" eval="True"/>
|
||||
<field name="register_id" ref="contrib_register_meal_vouchers"/>
|
||||
</record>
|
||||
<record id="hr_payroll_rules_reim_travel" model="hr.salary.rule">
|
||||
<field name="category_id" ref="hr_payroll.DED"/>
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP SA (<http://openerp.com>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# 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 Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -0,0 +1,41 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2011 OpenERP SA (<http://openerp.com>).
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# 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 Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
{
|
||||
'name': 'Belgium - Payroll',
|
||||
'category': 'Localization',
|
||||
'author': 'OpenERP SA',
|
||||
'depends': ['l10n_be_hr_payroll', 'hr_payroll_account', 'l10n_be'],
|
||||
'version': '1.0',
|
||||
'description': """
|
||||
Accounting Data for Belgian Payroll Rules
|
||||
""",
|
||||
|
||||
'auto_install': True,
|
||||
'demo': [
|
||||
],
|
||||
'data':[
|
||||
'l10n_be_hr_payroll_account_data.xml',
|
||||
'data/hr.salary.rule.csv',
|
||||
],
|
||||
'installable': True
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<!-- HR SALARY RULES-->
|
||||
<record id="l10n_be_hr_payroll.hr_payroll_rules_onss_rule" model="hr.salary.rule">
|
||||
<field name="account_debit" search="[('code', 'like', '4540%')]"/>
|
||||
</record>
|
||||
<record id="hr_payroll.hr_rule_basic" model="hr.salary.rule">
|
||||
<field name="account_debit" search="[('code', 'like', '6202%')]"/>
|
||||
</record>
|
||||
<record id="hr_payroll.hr_rule_net" model="hr.salary.rule">
|
||||
<field name="account_credit" search="[('code', 'like', '4552%')]"/>
|
||||
</record>
|
||||
<record id="l10n_be_hr_payroll.hr_payroll_rules_ch_worker" model="hr.salary.rule">
|
||||
<field name="account_debit" search="[('code', 'like', '4597%')]"/>
|
||||
</record>
|
||||
<record id="l10n_be_hr_payroll.hr_payroll_rules_suppl_net" model="hr.salary.rule">
|
||||
<field name="account_debit" search="[('code', 'like', '4552%')]"/>
|
||||
</record>
|
||||
<record id="l10n_be_hr_payroll.hr_payroll_rules_retained_net" model="hr.salary.rule">
|
||||
<field name="account_debit" search="[('code', 'like', '4552%')]"/>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
Binary file not shown.
After Width: | Height: | Size: 599 B |
|
@ -245,7 +245,7 @@ class sale_order(osv.osv):
|
|||
'invoiced_rate': fields.function(_invoiced_rate, string='Invoiced', type='float'),
|
||||
'invoiced': fields.function(_invoiced, string='Paid',
|
||||
fnct_search=_invoiced_search, type='boolean', help="It indicates that an invoice has been paid."),
|
||||
'note': fields.text('Notes'),
|
||||
'note': fields.text('Terms and conditions'),
|
||||
|
||||
'amount_untaxed': fields.function(_amount_all, digits_compute= dp.get_precision('Sale Price'), string='Untaxed Amount',
|
||||
store = {
|
||||
|
|
|
@ -135,7 +135,7 @@
|
|||
</h1>
|
||||
<group>
|
||||
<group>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1}"/>
|
||||
<field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": true}'/>
|
||||
<field domain="[('parent_id','=',partner_id)]" name="partner_invoice_id" groups="sale.group_delivery_invoice_address" options='{"quick_create": false}'/>
|
||||
<field domain="[('parent_id','=',partner_id)]" name="partner_shipping_id" groups="sale.group_delivery_invoice_address" options='{"quick_create": false}'/>
|
||||
|
||||
|
@ -228,8 +228,12 @@
|
|||
<field name="amount_tax"/>
|
||||
<field name="amount_total" class="oe_subtotal_footer_separator"/>
|
||||
</group>
|
||||
<separator string="Notes" class="oe_clear"/>
|
||||
<field name="note" placeholder="Add a global note on the sale order..."/>
|
||||
<div class="oe_clear">
|
||||
<label for="note"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="note" class="oe_inline"/>
|
||||
</div>
|
||||
</page>
|
||||
<page string="Other Information" groups="base.group_user">
|
||||
<group>
|
||||
|
|
Loading…
Reference in New Issue