Commit Graph
87 Commits
Author SHA1 Message Date
Laurent Smet dfde326e75 [IMP] account: add account.fiscalyear model
In order to improve the fiscal year management, we allow the user to define custom fiscal years
    using the account.fiscalyear model.

Was task: https://www.odoo.com/web#id=39878&view_type=form&model=project.task&menu_id=
Was PR #20936
2018-05-30 18:28:13 +02:00
Yannick Tivisse 382fbd3520 [IMP] base: Remove unused module categories
The categories other extra rigths and hidden are not used now.
2018-04-26 15:13:38 +02:00
Alexis de Lattre 4868ba78ff [IMP] account: multi-company rule on payment term
Was PR #23607. Courtesy of Alexis de Lattre (Akretion France)
2018-04-13 12:08:07 +02:00
qdp-odoo c410911ad9 [REV] account: revert feature to create recurrent vendor bills
This reverts commit 7642754122.

The reason is that we finally decided to implement that in another way and we want to avoid people start using this feature as it would be replaced in next saas. Yes, I know, that sucks.

New task ID: 1823153
2018-03-05 15:46:24 +01:00
Sanjay Jamod 7642754122 [IMP] account: Added feature to create recurrent vendor bills,
- One need to first enable this from Accounting Settings to use this feature
- This feature works for Vendor Bills which are validated/paid
- Once activated, user can see one option in Vendor Bills to set particular record to be recurrent document and can define the recurrency period. This will automatically create draft documents(by mean of Scheduled Actions) as per recurrency configuration.

Was PR #21411. was task 34884.
2018-01-26 16:56:57 +01:00
Nicolas Martinelli 81d1296323 [FIX] account, stock, website: access rights
1. Create a new user with all the permissions as manager (or at least
   Accounting) except Inventory
2. Login and then go to Invoicing --> Settings
3. Do a minor change, save

An access error occurs.

Since the settings of all modules are smartly loaded in v11, it now
implies that a user must have extra manager access rights to be allowed
to save them. We could have kept separate actions for each setting page,
but we would have missed the fun of access errors.

Anyway, security-wise this is not an issue to force the manager groups
since a user with 'Settings' access rights can change his own rights.
It's just very annoying. Or fun.

Complement of aa65a46fc5

Fixes #21766
opw-801210
2018-01-09 13:19:33 +01:00
Martin Trigaux 9afede846e [FIX] account: typo 2017-09-29 10:07:46 +02:00
Laurent Smet aee43c0d14 [ADD] account: add cash rounding managment
In some countries, we need to be able to make appear on an invoice a rounding line, appearing there only because the smallest
    coinage has been removed from the circulation.
    For example, in Switerzland invoices have to be rounded to 0.05 CHF because coins of 0.01 CHF and 0.02 CHF aren't used anymore.

    Was PR #15231
    Was task 30904
2017-09-01 18:23:45 +02:00
Yannick Tivisse 2a45fbe3d2 [IMP] account: Isolate group_account_user in account
Purpose
=======

We want to clear the accounting access groups when only the Invoicing application is installed as follows:

If only Invoicing is installed, we should only have 2 groups: `Billing` and `Billing Manager`
If Accouting and Finance is installed, we should have the current groups: `Billing`, `Accountant` and `Advisor`

Specification
=============

1/ If we have only Invoicing the should have the following hierarchy:

group_account_manager (Billing Manager) ---Implies---> group_account_invoice (Billing)

group_account_user (Accountant) is a technical group out the Accouting groups hierarchy

2/ If we have Accouting and Finance installed, we should then have:

group_account_manager (Advisor) ---Implies---> group_account_user (Accountant) ---Implies---> group_account_invoice (Billing)

The reason we want to keep the group_account_user is that we will hide the accouting fields (account_id,...) with this group, allowing the consultants to show the accouting related information on support.
2017-08-11 13:57:18 +02:00
Thibault Delavallée 3836aac471 [MOV] account_*: move account customer portal to account
As already done for sale, customer portal for account is moved to account
module directly. Account now depends on portal module and website module
is not necessary anymore to display the account customer portal.
2017-08-08 15:36:32 +02:00
Christophe Simonis a282d4ae7f [MERGE] forward port branch saas-14 up to be9dfb331f 2017-02-10 18:41:06 +01:00
Mansi Gandhi c3cf05af3e [IMP] sale,account: Move pro-forma to sales and make it a quote report
Purpose
=======

we use to make proforma invoice to get payment before the creation of the real invoice. In the current odoo, the proforma state is too late. Because you have to confirm the SO to generate the draft invoice and so the proforma. But, if you do that, you have generated a subscription or a delivery order in the mean time. A proforma is actually a quote. In old ERP they used to make proforma to send a quote  and don't generate invoice number.

Specification
=============

- Remove everything related to Proforma from accounting
    - Remove the configuration of pro-forma from account setting
    - Invoice form, remove "Pro-froma" button, stage, report title
- Add proforma configuration option in sales setting under "Quotation and Sales" section
- In quote/sale, add Pro-forma under Print
- A pro-forma is a quote, but the title of the report is Pro-Forma and not Quotation
- button (secondary) on quotation form "SEND PRO-FORMA" to send proforma by mail attached with related report.
   - button
   - mail template
   - when preparing a quotation this button is visible but if even one invoice this should be invisible (as confirming SO doesn't generate invoice currently)
2017-02-08 17:11:07 +01:00
Christophe Simonis b7c7591bfb [MERGE] forward port branch saas-11 up to 71773e1f1c 2017-02-01 19:08:14 +01:00
Christophe Simonis 71773e1f1c [MERGE] forward port branch 9.0 up to a53063606a 2017-02-01 18:16:15 +01:00
Denis Ledoux f9272264c1 [FIX] account: invoice report multi-company security
This record rule added in the below revision:
1950fc4216

has been removed for an unknown reason during the account refactoring
c04065abd8

Without this rule, a user can see invoices from other companies
through the invoices analysis.

opw-705718
2017-02-01 17:32:40 +01:00
Martin Trigaux c920444e56 [FIX] account: avoid error group billing not found
Set the use in 2 steps to avoid chicken & egg problem where the user uses
reference to a group not defined yet.
2017-01-20 12:56:51 +01:00
Jainik Patel 531ed05a43 [IMP] account: add bank statement operation presets as template in l10n modules.
In details:
* account.operation.template object renamed into account.reconcile.model
* account.reconcile.model.template object created
* added some records for l10n_be

Was PR 11230
2016-08-30 09:55:24 +02:00
Yannick Tivisse ff63f5d0a3 [IMP] base_setup: Allow the admin to modify the default user acess rights
Add a link in the general settings to access easily the default_user form view in order to modify the default access rights

The default_user manager rights declarations in all the applications have been move in a noupdate="1" definition to avoid the manual configuration overwrittings
2016-08-23 11:14:37 +02:00
Yannick Tivisse d6e1d41128 [MIG] account: Migrate remaining old API chuncks of code 2016-08-08 12:24:40 +02:00
Yannick Tivisse 8ff9cbad2c [IMP] sale,purchase,stock,account: Don't display an empty 'warning' page
And add a category hidden on the res.group definition
2016-05-06 17:06:35 +02:00
Yannick Tivisse 536dbc50db [IMP] account,sale,purchase,stock: Add groups to activate warnings 2016-04-07 10:08:20 +02:00
Yannick Tivisse 1ecba213f4 [IMP] Newly created users get all manager access right
Coming from a bug in web_settings_dashboard. Invited user didn't have any rights
when created from the dashboard, which was leading to an error.

This bug leaded to a new discussion. Better to have basic employee having user
rights for all main applications. For bigger entreprises there is an admin that
will carefully remove extra rights, if necessary. The target is small businesses,
it makes sense that every way to create a user gives the same result.

In conclusion, each new user has a full access to the applications by default

How is it implemented ?
We added an inactive default user which original access right to the groups
'base.group_user' and 'base.group_partner_manager' in base. Each
application will extend the default user's access right by adding the maximal
access right for this application.

On user creation, we will use by default the 'group_id' field from the default
user. We will in the same time remove the ugly 'default_groups_ref' key which
was passed sometimes in the context for some fields in some views, and sometimes
nothing.

So, the user can modify the access rights for the default user, but he should be
aware that removing project user access rights for a default user will prevent
a *created on the fly in a task* user will not be able to access the task.
2015-11-20 16:27:32 +01:00
qdp-odoo 8ac40acb0d [IMP] account*: various usability improvements 2015-07-22 16:19:02 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
Arthur Maniet 3e0ffcf4e4 [IMP] account: account.statement.operation.template model
- better many2one ondelete strategies
- added analytic account domain
- added multi-company support
2014-11-28 05:28:53 +01:00
Christophe Simonis 5068cffbb0 [MERGE] forward port of branch 8.0 up to 491372e 2014-11-05 20:30:40 +01:00
Adrien Peiffer 78f3b94601 [IMP] account: Add multi-company record rule for analytic entries report
As a multi-company rule is already present for account.analytic.account and account.analytic.line, should have one on the report on both of them.
2014-11-03 11:50:10 +01:00
cod-odoo a301b4c7fc [MOVE] account: moved account/project files to analytic or account, depending on which module the moved code belongs to. This allows to remove references to project in account module. Also added some improvements in project when deleting a project (delete account if void) or when deleting an account (delete project if void). 2014-08-04 13:23:46 +02:00
dhr-odoo df6b37c472 [FIX] account: add multicompany rule to account.subscription.line
The wizard to generate recurring entries did not respect multicompany rules as the request was done in plain sql.
Add ir.rule and use the orm (opw 607782)
2014-06-25 12:07:02 +02:00
Olivier Dony 3fe6987ce7 [MERGE] Harmonization of noupdate flag on security XML data, courtesy of Alexis de Lattre (Akretion)
ir.rule records are in noupdate data blocks to let the admin
alter them without fear of them being reset at next update.
Other records such as groups are in normal mode, so they
can be updated whenever necessary

bzr revid: odo@openerp.com-20121218232001-t425t4hi7qbmsip2
2012-12-19 00:20:01 +01:00
Quentin (OpenERP) ff6966da8b [IMP] account: added an option to enable/disable the check_total feature on supplier invoices
bzr revid: qdp-launchpad@openerp.com-20121024091313-s6k3ekmsen5ntez4
2012-10-24 11:13:13 +02:00
Fabien Pinckaers b55bbc4b7b [FIX] l10n_ma unnecessary group
bzr revid: fp@tinyerp.com-20120928073632-xo2jqv620ek2rdsx
2012-09-28 09:36:32 +02:00
Antonin Bourguignon aae20beef0 [IMP] remove the useless attribute model="ir.model"
bzr revid: abo@openerp.com-20120924141047-2mang092z0ak288g
2012-09-24 16:10:47 +02:00
Antonin Bourguignon de9eb7f78c [IMP] indentation and arguments order for readabily sake
bzr revid: abo@openerp.com-20120924140632-mig0szmfvopl1wq0
2012-09-24 16:06:32 +02:00
Antonin Bourguignon 3049f0a2a8 [MERGE] trunk
bzr revid: abo@openerp.com-20120924135704-neh93vull9m35qhs
2012-09-24 15:57:04 +02:00
Fabien Pinckaers 31a4392e36 [MERGE] purchase + [FIX] misc sale order without delivery orders
bzr revid: fp@openerp.com-20120916150517-16vr5lp419b0kpid
2012-09-16 17:05:17 +02:00
Alexis de Lattre 5101771cd9 Harmonize the noupdate flag on security XML files :
- ir.rule objects are noupdate="1"
- all other objects are noupdate="0"

bzr revid: alexis@via.ecp.fr-20120713170838-pjsysliyt6twazrc
2012-07-13 19:08:38 +02:00
Amit (OpenERP) f9c2437959 [FIX] account : Add access rules for entry analysis report
lp bug: https://launchpad.net/bugs/999506 fixed

bzr revid: amp@tinyerp.com-20120518103541-vfp9bh4p9dqwbr18
2012-05-18 16:05:41 +05:30
Raphael Collet ba1454149c [IMP] groups: remove auto-inclusion of admin in groups, and make the inclusion explicit in groups
bzr revid: rco@openerp.com-20120404090830-nteimn2kvz8nkk7h
2012-04-04 11:08:30 +02:00
Raphael Collet b8dea9ec32 [IMP] account.config.settings: remove redundant group 'Dates and Periods'
bzr revid: rco@openerp.com-20120403073128-nwngudl2z6sync1z
2012-04-03 09:31:28 +02:00
Raphael Collet 3df4146b94 [IMP] account.config.settings: rename id of usability groups
bzr revid: rco@openerp.com-20120329142731-843r2c34gpjsnw9i
2012-03-29 16:27:31 +02:00
Raphael Collet 04f33ca7ac [IMP] account.config.settings: move sale and purchase group fields in their respecive module
bzr revid: rco@openerp.com-20120329142121-lc5b6d3mcds68p34
2012-03-29 16:21:21 +02:00
Raphael Collet 532f125232 [MERGE] branch trunk-v62_config_account-uco (new config wizard for accounting)
bzr revid: rco@openerp.com-20120328074146-8bfa90nkus9bxbaf
2012-03-28 09:41:46 +02:00
Ujjvala Collins (OpenERP) 5128b93091 [ADD] account: Added config files.
bzr revid: uco@tinyerp.com-20120307124301-ey6qvcafb3uibuqy
2012-03-07 18:13:01 +05:30
Raphael Collet c0755c4218 [IMP] account, analytic, auction: add group categories
bzr revid: rco@openerp.com-20111212133523-ea0r5b47mc5tddl7
2011-12-12 14:35:23 +01:00
Olivier Dony 6bbfae0ccc [REM] account: duplicate ir.rule
bzr revid: odo@openerp.com-20111201103310-7nwtr9kt7z48uif5
2011-12-01 11:33:10 +01:00
Raphael Collet ba6342174e add group implications
bzr revid: rco@openerp.com-20110802130811-pkdmw43ufifz0tpj
2011-08-02 15:08:11 +02:00
Raphael Collet f813c99f1a [IMP] rename some groups
bzr revid: rco@openerp.com-20110722134847-tqk9w52gaf32qvim
2011-07-22 15:48:47 +02:00
Amit Parmar (OpenERP) 887ea79669 [IMP] modify the groups in sales and accounting
bzr revid: aar@tinyerp.com-20110720133703-7ntpnt6lqzana1x2
2011-07-20 19:07:03 +05:30
Quentin (OpenERP) 1950fc4216 [FIX] account: added Invoice Analysis multi-company record rule
bzr revid: qdp-launchpad@openerp.com-20110630142502-t95rt219e26ivwsb
2011-06-30 16:25:02 +02:00