summaryrefslogtreecommitdiff
path: root/addons/purchase/data
AgeCommit message (Collapse)Author
2019-02-13[IMP] sale,purchase,...: Improve description of demo data productPrakash Prajapati
Purpose of the task is some demo data values are not matching with the products mentioned so update the demo data values with matching product. Task: 1892754 closes odoo/odoo#28573
2019-01-29[IMP] purchase: Email sent from PO sent by the current user.Arnaud Baes
When an email was sent from a PO, the sender was by default the user who created the PO. The sender is now replaced by the current user. TaskID: 1934477 closes odoo/odoo#30660
2018-09-24[FIX] *: reassociate various demo data to admin instead of rootXavier Morel
2018-08-28[IMP] purchase: clean mail templateDarshil Trivedi
Usability change: - Remove amount from RFQ template - Remove origin from both templates - Modify last sentence to a proper English - Add partner reference in PO template Technically remove the conidtion on object state in order to guess if it's a RFQ or a PO since the check is already made in python and it exists a template for the RFQ and a template for PO. This commit is related to task ID 1835441
2018-08-08[IMP] purchase: correct demo dataKirti Choudhary
A service type product should be counted in hours instead of units
2018-08-03[IMP] Portal - Share link : Easily share the url of a documentMitali Patel
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-07-24[IMP] purchase: make templates more modern and updated with Odoo guidelinesShubham Johar
In this commit we improve templates used in purchase. Purpose of this commit is to have templates that embed or use standard Odoo email layouts to make them look modern and have a common style across all emails. Main guidelines * better use of div / p / br to try to lessen layout issues, especially when updating templates using the editor; * correctly sequence the templates fields definition; * correctly set templates values notably auto_delete and user_signature fields to avoid confusion; * correctly layout the email content using light notification email. It can either propagate the layout choice through various send mail methods or directly embed the styling in the templates for more technical or complex templates; * use email_formatted computed field when possible to avoid having hand-made from / to addresses; * fix various typos and improve subjects when necessary; Content of emails is not necessarily updated as the purpose of this task is about styling, not content itself. This commit is linked to task ID 1843151 (and 1868112) and to PR #25346 (and #25889).
2018-07-19[REF] purchase: clean send by email templatesThibault Delavallée
Purpose * use the new notification template allowing to display the payment button only in emails; * reorder the fields definition to ease the reading; * slightly clean the email body using a maximum of div and br tags as it seems better integrated with Odoo edition capabilities; This commit is linked to task ID 1860049 and PR #25824.
2018-07-05[IMP] product: Unify/Clean product demo dataFabien Pinckaers
PURPOSE ======= 1. Unified product demo data 2. Less demo: one per use case 3. Demo data for all models Specification ============= 1. Refactor all the brol in the demo data 2. Adapt the tests to make them green, as some products are renamed, removed, created in python instead of as demo data ...
2018-06-07[MERGE] forward port branch saas-11.3 up to c00df146547Christophe Simonis
2018-06-06[MERGE] forward port branch saas-11.2 up to c834c0f5879Christophe Simonis
2018-06-05[MERGE] forward port branch 11.0 up to 1b272a20504Christophe Simonis
2018-06-01[FIX] account, purchase, sale: properly quote the name of the email senderlen-odoo
formataddr (from the email python library) writes email_from as '"name" <email>' in the email_from field of the mail.compose.message record. When the mail is rendered, onchange_template_id is triggered. This then overwrites the values of email_from among other fields. What happens is that it uses the email_from field from the template to render the email_from, bypassing what was put by formataddr before. What happens in some cases is that it is rendered as 'name <email>' (note the quotes have been stripped away). If name contains arbitrary symbols, e.g. name = 'pépé [company] <pdg>, ohlala', then getaddresses which is supposed to parse the (name, email) pairs gets thrown off (in particular, <pdg> will be interpreted as an email address, and many other problems with the various special symbols). It then gives these wrong elements as email addresses, which will usually crash when getting non-ascii symbols (i.e. these strings don't respect the relevant RFC for email addresses). Closes: https://github.com/odoo/odoo/issues/23502 https://github.com/odoo/odoo/pull/2311823118 opw 815202 opw 1824243
2018-05-23[MOV] purchase_stock: move code from purchasejem-odoo
We want to break the dependency between stock and purchase for our furtur developpement. For more modularity, a new bridge module 'purchase_stock' is created. This commti move part of business code, views, data, ... related to stock management from purchase into purchase_stock without changing any feature. Task #47927
2018-04-23[MERGE] forward port branch saas-15 up to cae950e8262Christophe Simonis
2018-04-23[MERGE] forward port branch saas-14 up to dd18811e6c4Christophe Simonis
2018-04-23[FIX] purchase: use PO company for PO notificationNicolas Lempereur
In 41ffb503 the "Invoice Notification Email" and "Sale Order Notification Email" were modified so the company used was the one of the object if available or the sender otherwise. This had not been done for the "Purchase Order Notification Email" which was added in saas-14 which might be unexpected. Also as in 7a03f9ce9 specify the company when displaying the logo. opw-1838112 closes #24344
2018-04-23[FIX] account, purchase, sale: Wrong company displayed in the footerGoffin Simon
Steps to reproduce the bug: - Set a multi company environment with two company A and B - Set user admin in company A - Set user demo in company B - Create a PO with user demo - Send a RFQ Bug: The company of the admin user was displayed in the footer of the email. The function _notify called on res.parter model is called in sudo by the function _notify on mail.message model. The function render_template on mail.template model uses the user defined on self.env to render the template. So the user admin was always used. opw:1835647
2018-04-16[MERGE] forward port branch saas-11.2 up to 90f8f17fb4fChristophe Simonis
2018-04-16[MERGE] forward port branch 11.0 up to ad825b673b5Christophe Simonis
2018-04-11[FIX] purchase: Procurement rule Buy missing when installing PurchaseGoffin Simon
When installing Purchase, the procurement rule Buy for My Company, Chicago was missing. opw:1835411
2018-03-21[MERGE] forward port branch saas-11.2 up to 500e3f49705Christophe Simonis
2018-03-20[MERGE] forward port branch 11.0 up to 2835d299792Christophe Simonis
2018-03-19[MERGE] forward port branch saas-15 up to 0d552411852Christophe Simonis
2018-03-19[MERGE] forward port branch saas-14 up to 82effcca83dChristophe Simonis
2018-03-19[MERGE] forward port branch 10.0 up to caf6b4a7c79Christophe Simonis
2018-03-19[FIX] purchase: wrong condition in mail templatejem-odoo
Before checking the first element of 'partner_id.child_ids', rather check that the partner and not the object has children, to avoid crashes when the partner of the PO is a company. opw-1826359
2018-03-09[MERGE] forward port branch saas-11.2 up to 42659dc70c2Christophe Simonis
2018-03-01[MERGE] forward port branch 11.0 up to c2e878e34c8Christophe Simonis
2018-02-28[FIX] *: correcly format amounts in mail templatesChristophe Simonis
2018-02-26[IMP] product: move uom in a new addonXavierDo
Moves UoM models, test and data to a new addon in order to be able to use uom without product. A simple example is be to be able to use UoM for timesheets. This commit only move code, and adapt xml ids without chaging any feature or functionnal behavior. Note: 'product' module now depends on new 'uom' module.
2018-01-29[REF] various: use secondary notification templateThibault Delavallée
All those templates are basically the same except some bug fixes that were not propagated about company. Let us use just the one we just defined in the mail module.
2018-01-29[REF] mail: move email notification templates to QWebThibault Delavallée
In this commit we change notification templates used to render notification emails from jinja-based mail.template to pure QWeb templates. There are several reasons to do so * those are not real mail.template records. Indeed they cannot be used outside of the notification process as some values are computed and not available on the mail.message record used to render the template; * we do not really need other fields than body. Indeed fields like subject, email_from or email_to are computed from the notification process; * we do not want people to update the mail.template without knowing the consequences, especially for fields like recipients that may broke the mail gateway; * using the html editor easily break the mail.template as it is very custom and very to break without really realizing it. It also simplifies template management as it lessens number of mail template people have in their list view of mail.template. It avoids mixing technical and functional templates. We move to QWeb templates as those are not too hard to customize and allow to perform body rendering which is what we really need when notifying people of a new message. This commit does not change the functional purpose and layout of the templates. Behavior should be the same before and after this commit.
2018-01-25[FIX] account, l10n_be_invoice_bba, purchase, repair, sale: format_amountNicolas Martinelli
Use `format_amount` in the mail templates in order to format as a regular amount (with rounding and symbol). opw-805370
2017-11-16[IMP] purchase: Convert yml files to python and xmlPragnesh Mistry
2017-11-02[MERGE] forward port branch 11.0 up to ee2b9fae351Christophe Simonis
2017-10-30[FIX] stock, mrp, stock_dropshipping: location access rightamoyaux
Use case to reproduce the bug: - Enable multi company and create a second one. - Add both company to another user and give him stock manager rights - Login on the second user and select as active the created company - Go to product and create one -> access right error on stock.location.route message. It happens because the routes 'buy' is selected by default. However the route buy when created use the default company although it's generic for all companies. This commit change the data in order to remove the company on routes buy, mto, manufacture and drop_shipping. Since this commit was released after v11 release, it could happens that already created database still have the problem thus the solution is to remove manually the company on the routes quoted above. opw-777718
2017-10-19[REM] base, various: remove res.request.linkThibault Delavallée
Not used since a while, remaining of old res.request. Requests have been removed at 881a76dbcf47c877feb5efa14943010309d22eaf . 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-01-07[IMP] *: remove #general messages at module installationFabien Pinckaers
2016-12-22[IMP] purchase: RfQ email layout improvedFabien Pinckaers
2016-12-22[FIX] purchase: missing signature on RFQ's emailsFabien Pinckaers
2016-08-05[MIG] purchase: Migrate to new APIDenis Vermylen (dve)
2016-08-05[MOV] purchase/data: add purchase_sequence to dataDenis Vermylen (dve)
2016-08-05[MOV] purchase: move and rename files according to guidelinesDenis Vermylen (dve)
2016-07-17[IMP] purchase: improved email templateFabien Pinckaers
2016-03-21[FIX] english typo: amounting 00 --> amounting in 00Fabien Pinckaers
2016-02-23[MIGR] base: migrate base/res to the new APIRavi Gohil
- `ir.property`, improve API of method `get_by_record` - `res.bank`, `res.partner.bank` - `res.company` - `res.config`, `res.config.installer`, `res.config.settings`, fix usage of methods `get_default_` - `res.country`, `res.country.group`, `res.country.state` - `res.currency`, `res.currency.rate` - `res.font` - `res.lang` - `res.partner`, `res.partner.category`, `res.partner.title` - `res.request.link` - `res.groups`, `res.users`, `res.users.log`, change password wizard
2016-01-25[MERGE] forward port of branch 9.0 up to 6872aaeJulien Legros
2016-01-20[IMP] *: unnecessary safe filter for subject templateNicolas Lempereur
With 6dde919 email subject field are not autoescaped by default, thus using safe is not necessary. closes #10547
2015-12-10[FIX] fix various Lucida misspellingsDaniel Dico
closes #9997