Commit Graph
61 Commits
Author SHA1 Message Date
Laurent Smet bd90026c67 [IMP] account: check match_partner in the default reconcile rule 2018-11-19 16:01:02 +00:00
Laurent Smet 7053ae7828 [IMP] account: management of reconciliation rules
Bank statement lines need to be matched with entries; We have to automate this operation as much as possible.
At the same time, create an algorithm that fit everyone needs is quite impossible.
For that reason we will let users choose the rules they want with the improvement of reconciliation models.

Note that we did it only for bank statement reconliation, not for manual reconciliations.

Was task: 1877375
Was PR #26669
2018-09-20 17:11:52 +02:00
Mitali Patel 84f528bcff [IMP] Portal - Share link : Easily share the url of a document
Purpose
=======
- Quickly share the url to someone else (a client, a colleague,...)
- Ensure that the recipient can access at least
  the portal view of the shared record.
- Typically used when a client cannot retrieve the mail to access his order.
  The share link can be used in this case.

Specifications
==============
For any object inheriting form portal.mixin:
    - Add a button SHARE (not visible in edit mode)
    - When clicking on this button, a popup opens with :
        - A warning message for tasks and projects only (see below)
        - the link (like in gmail) that can be copied
        - Recipients
        - mail composer (with preselected template) ==> see below
        - button [Send Link] [Copy Link] Discard
        - After sharing document, put internal note like
          "Document shared to xyz,...." with template message
    - Anyone with the link, even anonymous user (not logged in) can have access
      to the document with the access token provided in the url.

Impacted models:
    - account.invoice (Community)
    - project.project (Community)
    - project.task (Community)
    - purchase.order (Community)
    - sale.order (Community)
    - helpdesk.ticket (Enterprise)

Warning messages and access rules:
    Allowed :
        - SO canceled or draft will be accessible with the link
          with access_token
        - If the customer account is B2B (signup not enabled), the recipient
          will anyway see the document as the user specifically wants the
          recipient to see the document.
    Restrictions :
        - For Project and Task, if the privacy is not public, then, there is a
          contradiction between the access_token mechanism
          and the privacy of the document.
        - A warning message will be displayed in the share wizard to inform the
          user if the document cannot be visible by the recipients and to
          ask him to set the privacy to 'Visible by following customer'.
          The send button will, in that case, be hidden.
        - To avoid to block the share for a new project, default privacy value
          is now set to 'Visible by followong customer'

Technical implementation
========================
- Move the access_token mechanism (field + methods + mail controller)
  to the portal.mixin to be able to use it in a generic way for each object
  inheriting the portal.mixin
- Generalise a part of the _*model*_get_page_view_values method
  into a single one in portal
- Generalize the _*model*_check_access into the portal controller of the
  portal module
- Remove the init_column + default value for the access_token
  > old records have an access_token,
  > new one won't but it will be generated on demand via the get_access_token
  Done for performance reasons
- Add share button into action menu separately. + kanban view context menu
  (except for task and project where button not in action menu but 'simple'
  button for task and project because other modules already provide action
  to send documents by email, which is not the case for project and task.)
- Add a sign_token used to authentify the recipient in the portal view chatter,
  if any. The message will be posted as if the user was logged in.
- Set the _get_share_url as private for security reason
- Add a redirect parameter to _get_share_url to get
    If false : The direct portal view url
    If True : The redirect url (mail/view/?)
- Cleaning up unnecessary code

- Bug fix :
    - Before, if user was not logged and record had partner_id,
      if partner id was null, post message was done as admin.
      Now, the post message is done as public user.
    - If the user had an uid but had no access_token, he could be able
      to gain the access token of the record.
      check_access_rights was missing in the get_access_action.

Task ID : 30985
Closes #25629
2018-08-03 15:20:42 +02:00
Sanjay Jamod a4df9f8c93 [IMP] account: vendor bill creation upon email reception
This allows to set up a mail alias per purchase journal. Then share that email address to your supplier, or use it internally to forward the vendor bills received by mail, to automatically create an empty vendor bill with the mail attachments linked, and the partner might be filled if the source email matches a supplier.

Thanks to the document preview on the side, it's now super easy and super fast to copy the vendor bill info from the received PDF into the account.invoice object. This would eventually be improved later on (IAP).

Was task: 37703
Was PR #22158
2018-06-06 14:17:03 +02:00
Kinjal Mehta ae23e7f083 [IMP] account: Add '45 Days' and '2 Months' in payment terms data 2017-11-29 15:42:53 +01:00
Thibault Delavallée 4fd6945535 [REM] base, various: remove res.request.link
Not used since a while, remaining of old res.request. Requests have been
removed at 881a76dbcf . Links have been kept because still
used in some reference fields. It seems the last use was in OpenERP v9.0
in crm_claim module. As links are not used since a while let us get rid of
it.
2017-10-19 14:53:39 +02:00
Thibault Delavallée dbe6aa4292 [FIX] account: finally allows to reinit the module
Otherwise a constraint is raised because new line are added to the
payment term instead of recreating them from scratch. This constraint
blocks people from reinitializing the module, which is quite boring
when developing.
2017-05-10 17:09:29 +02:00
dbh 4b074ca11c [IMP] account: rename 'Refund' to 'Credit Note' 2017-05-04 16:05:32 +02:00
Christophe Simonis 6a942a9e96 [MERGE] forward port branch 10.0 up to 8a0151b4bc 2017-02-02 12:42:51 +01:00
Christophe Simonis ba8a1c7ec2 [MERGE] forward port branch saas-11 up to e86983112e 2017-01-27 18:20:28 +01:00
Christophe Simonis 047efcbd58 [MERGE] forward port branch 9.0 up to 838beb12de 2017-01-27 16:21:51 +01:00
qdp-odoo 838beb12de [FIX] account: full reconcile sequence has to be shared among companies.
Otherwise, only the main company can make a full reconciliation
2017-01-27 16:05:00 +01:00
Kinjal Mehta b0185e15cc [FIX] all: fix some common typos
Sale Order --> Sales Order
Sale Report --> Sales Report
Sale Team -> Sales Team
Payment Term --> Payment Terms
2016-12-22 13:29:38 +01:00
Yannick Tivisse 4b60d5c1bd [IMP] account,sale,purchase: typo 'Payment Term' -> 'Payment Terms' 2016-08-30 13:20:23 +02:00
Yannick Tivisse d6e1d41128 [MIG] account: Migrate remaining old API chuncks of code 2016-08-08 12:24:40 +02:00
qdp-odoo 7a3d63b377 [MERGE] forward port of branch saas-7 up to revision 71d16a369e 2016-03-16 10:27:19 +01:00
Nicolas Martinelli b21af52ed8 [FIX] account: payment sequence
The payment sequence should depend on the company, which is not possible
with the harcoded reference to the sequence ids.

opw-670491
2016-03-02 14:05:45 +01:00
pvy 727a700720 [ADD] account: added the trust field to partners for followups 2015-12-31 16:32:08 +01:00
Denis Ledoux 17a630cd24 [FIX] account: use range_year for sequences using ranges
This is an oversight during the foward-port
57168a9e90
of the revision
57168a9e90

opw-652410
2015-10-19 12:12:52 +02:00
Nicolas Martinelli 5cb2943cca [IMP] account*: adaptation due to the new Sale module
Major changes:
- No use of UoS anymore
- No analytic journal (journal_id) on account move lines

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 18:10:18 +02:00
Divyesh Makwana 6e5db46626 [IMP] account: payment terms usability improvement 2015-08-26 15:08:48 +02:00
Thomas Groutars d861cdc1c4 [ADD] account: add tax_group on invoice to make reporting easier + create tax_group retention for l10n_co 2015-08-17 15:06:48 +02:00
qdp-odoo 0b3e01c13f [IMP] account*: various usability improvements. While most of them are simple renaming, it also includes the following field removals:
- [REM] account_budget: removal of field 'validating _user_id' on account.crossovered.budget, which is now replaced by inheritance with mail.thread
   - [REM] account_budget: removal of field 'code' of account.crossovered.budget, which was not used and redondant with its name
   - [REM] account_asset: removal of field 'note' of account.asset.category, which was not used and redondant with its name
   - [REM] account: removal of field 'to_check' of account.move, which was redondant with state == 'draft'
   - [REM] account_voucher: removal of field 'audit' of account.voucher, which was a fields.related on move_id.to_check
2015-07-14 21:48:23 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
Bhavik Bagdiya 351f5231e2 [IMP] account, sale: allow to follow created and confirmed
invoices on the sales team.
2015-02-03 16:22:22 +01:00
qdp-odoo d6e9abd8b8 [IMP] base, ir_sequence: removed ir.sequence.type object, added test for ir.sequence.date_range, refactored ir.sequence and ir.sequence.date_range implementation 2014-12-18 11:03:45 +01:00
Quentin (OpenERP) f5718efa6e [MERGE] merged with trunk
bzr revid: qdp-launchpad@openerp.com-20131230102802-y1ux8470wxnj4yfr
2013-12-30 11:28:02 +01:00
Denis Ledoux 7b23df235b [FIX] account: move purchase journal from demo to data
bzr revid: dle@openerp.com-20131210152957-hn0c3zvli62vhi0a
2013-12-10 16:29:57 +01:00
Christophe Simonis a8eebfe6b4 [FIX] account,account_followup,l10n_{ch,es,pt,us,ve}: correct or remove wrong fields in <record> creation
bzr revid: chs@openerp.com-20131031184321-2nqqpxowhg03wt4t
2013-10-31 19:43:21 +01:00
Fabien Pinckaers e58748609a [IMP] removed warning in account
bzr revid: fp@tinyerp.com-20130630142927-juf7c4pa70lw7l6q
2013-06-30 16:29:27 +02:00
Quentin (OpenERP) eed1a93749 [FIX] account: removal of warnings at database creation due to unknown fields in account.payment.term.line model
bzr revid: qdp-launchpad@openerp.com-20130314145337-vriuhu2sozdeyu5a
2013-03-14 15:53:37 +01:00
Thibault Delavallée 1ea0204f6b [IMP] Message subtypes: set almost all subtypes as False by default, to avoid spamming contact partners.
bzr revid: tde@openerp.com-20130130090942-duiwfvtcj2d0ad6c
2013-01-30 10:09:42 +01:00
Thibault Delavallée 8d26e78582 [IMP] Addons: removed bold in subtype descriptions.
bzr revid: tde@openerp.com-20121219212330-xfx3lykstl1nsa8m
2012-12-19 22:23:30 +01:00
Thibault Delavallée 33ea9c9f73 [CLEAN] account, account_voucher: updated subtypes, removed dead code and unnecessary chatter message.
bzr revid: tde@openerp.com-20121219130024-bmf584gyw5p8khrc
2012-12-19 14:00:24 +01:00
Thibault Delavallée 8806ee77ca [FIX] account: fixed crash when evaluating some subtypes because of unread field. Modified tracked (old name) to track_visibility. Added description on subtypes of account.
bzr revid: tde@openerp.com-20121219121520-riwt9w52ntsa9dhm
2012-12-19 13:15:20 +01:00
Foram Katharotiya (OpenERP) 955f2588a2 [MERGE] with trunk
bzr revid: fka@tinyerp.com-20121210045724-sk2hk8mmi8iahfwn
2012-12-10 10:27:24 +05:30
Fabien Pinckaers 94d94a9d54 [IMP] implification of payment terms, it even works without balance line
bzr revid: fp@tinyerp.com-20121208135723-ori198g559b1sxsu
2012-12-08 14:57:23 +01:00
Atul Patel (OpenERP) 8e974146ab [FIX]: Remove editable tree view.
bzr revid: atp@tinyerp.com-20121204130150-ng08xtg1mipt5590
2012-12-04 18:31:50 +05:30
Atul Patel (OpenERP) f24ec66090 [ADD]: Add immediate data in payment term.
bzr revid: atp@tinyerp.com-20121204062326-l0pexulus41zut59
2012-12-04 11:53:26 +05:30
pankita shah (Open ERP) 0c375a3d6f [IMP] improve data(Immediate Payment,15days) and remove data from data(30 Days end of Month,30% Advance, End 30 Days) and keep in demo
bzr revid: shp@tinyerp.com-20121203121900-fb52ryi5d2acolj8
2012-12-03 17:49:00 +05:30
Thibault Delavallée ce923903b5 [IMP] [REVIEW] [DOC] addons: added some comments in the various data files about subtypes.
bzr revid: tde@openerp.com-20121203114009-obtca9gf3t7b909y
2012-12-03 12:40:09 +01:00
Thibault Delavallée c3a3492848 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121203093454-lf21qlsuse1ve8ro
2012-12-03 10:34:54 +01:00
Denis Ledoux dle@openerp.com 7e1ffaf613 [REM]Remove all account.journal.view and account.journal.column references
bzr revid: dle@openerp.com-20121122104504-ezgj2666zkhgybpj
2012-11-22 11:45:04 +01:00
Amit Patel d756f85a2a [REM]:account:removed created from account
bzr revid: apa@tinyerp.com-20121121093200-hx4pi4vvk54vgn1x
2012-11-21 15:02:00 +05:30
Foram Katharotiya (OpenERP) 0dbf8e7d78 [IMP] add subtype in account
bzr revid: fka@tinyerp.com-20121120090657-2dhw9kew0425bjjj
2012-11-20 14:36:57 +05:30
Turkesh Patel (Open ERP) 97f37e4297 [FIX] remove invisible field from account_data.xml
bzr revid: tpa@tinyerp.com-20121019051438-gg0zk0wordvvi215
2012-10-19 10:44:38 +05:30
Quentin (OpenERP) 5057b6a516 [IMP] account: usability improvement (hide the state column of account.move.line which doesn't provide useful information most of the time)
bzr revid: qdp-launchpad@openerp.com-20121017094142-uxi6obk1byojzjm1
2012-10-17 11:41:42 +02:00
Fabien Pinckaers c93d70e919 [MERGE] chm - improved subtype - fixes
bzr revid: fp@openerp.com-20121002204023-8v3jf2n84xe2jol9
2012-10-02 22:40:23 +02:00
Thibault Delavallée 10458eb098 [CLEAN] mrp_operation, analytic, account, account_voucher: cleaned subtypes.
bzr revid: tde@openerp.com-20120919133540-e0d8huak2g3v915o
2012-09-19 15:35:40 +02:00
Sanjay Gohel (Open ERP) 8ca3f76711 [IMP]code improvement and other minor changes
bzr revid: sgo@tinyerp.com-20120913062928-hvqnp116y49yrl4d
2012-09-13 11:59:28 +05:30