b4480db38687a8ff3dd0aa6a99a9f37a8969da37
Purpose ======= From a busines point of view Integration with accounting. A period of pay include journal entries and payments. We need to generate both from a batch. The entries must be grouped - 1 line for salaries - 1 line for all ATN - ... Payroll generate a Sepa document to send to the bank + as this part is managed by an accountant add menu entries in the accounting app. From a functional point of view: Debit and credit accounts are defined on the rules (hr.salary.rule) The journal should be defined on the structure to be foced Specification ============= - Usability: the module l10n_be_hr_payroll Should install the accounting (right now it install invoicing). On the structure, add a journal m2o. - On rule: add group accouting items on salary rule - Improve method 'action_payslip_done' to support multiple entries by move. Generate only one big entry with all payslip. Generate one total line total for reconciable if group is set. Now the payslips are no longer calculated individually, all accounting entries are grouped together when the pay slips are validated. This allows you to have a single accounting entry for all validated payroll records. - Buttons on batch - Add 2 buttons on the batch form - "Create Entry": it will generate a grouped entries according config of the rule - "Payment": it generate an xml with all line to send to the bank See https://www.odoo.com/documentation/user/11.0/accounting/receivables/customer_payments/payment_sepa.html - Payroll directly generate the xml (no payments in accounting) - Button on payslips: Everything should be done through the payslips - create draft entry - Create SEPA payment xml - Make appear those buttons on the form only if batch is not set - Belgian rules for the entries: - In data for Belgium: https://docs.google.com/spreadsheets/d/1HlnwoExR_O833sij01p7UizSkrMqcm6oF4GvOeIz5lg/edit#gid=0 example of one of our OD: https://drive.google.com/file/d/0B_hhLmdks1wEdXZSQzJIeVBDOXNiNVctczJzUTBQZVBuNkgw/view?usp=sharing - Create a Journal salaries (type miscelaneous) and apply all structure on this journal - Create new accounts to manage this. - Sepa for payroll should be an option in the setting of payroll (like in accounting) - Configure the accounts on the rules when setting a CoA on a company. Now the payslips are no longer calculated individually, all accounting entries are grouped together when the pay slips are validated. This allows you to have a single accounting entry for all validated payroll records. Other notable point in this commit: - When installing the Belgian Localisation or when installing the Belgian CoA on a company, configure the accounting data (journal, accounts on the salary rules) - Don't create automatically a payslip batch when creating a payslip TaskID: 1935200 closes odoo/odoo#32924 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%