In v9, stages are not shared by default. So when you create a new job position,
you need to specify manually which stages are available for this job position.
But the field stage_ids was not available.
onchange_picking_type func now return picking_type_code
The stock.picking has an attrs to hide the partner_id for internal transfers.
It was not set as picking_type_code was not set.
Closes#12117
>Remove the Sale Service option, because 'sale_service' module doesn't exist anymore.
>Remove the option "Time on Tasks" and link the Time Scheduling (resource_calendar_id) to Forecast.
>Hide the Timesheets section if the 'hr_timesheet_sheet' app is not installed.
>Change the label "Timesheets on Issues" instead of "Timesheets Invoicing".
>"Timesheets on Issues" shouldn't appear if hr_timesheet_sheet + project_issue apps are not installed.
When creating an invoice line from a PO, if the product is linked to an Asset type
then the account used for this line must be the expense account.
When creating an invoice line from a SO, if the product is linked to an deferred revenue type
then the account used for this line must be the income account.
`all([]) = True`, therefore if there is no `matched_debit_ids` or
`matched_credit_ids` on a payment ==> boom when you access
`payment.matched_debit_ids[0]`
opw-677157
Closes#12232Closes#12242
- Only SAFE CODES (specified in openerp/tools/safe_eval.py) are allowed in server actions
- Validating basic python errors eg. SyntaxError, IndentationError etc.
Odoo serves files based on the mimetype imported with python module Mimetype.
In some case, mimetype on windows for svg is undefined or misconfigured and
the svg is returned as text/plain (and so xml and not img).
This commit overrides the default mimetype to render .svg file with mimetype
'image/svg+xml'.
It is similar to add/override the key from windows registry with:
```
[HKEY_CLASSES_ROOT\.svg]
@="svgfile"
"Content Type"="image/svg+xml"
```
The advantage to override it in Odoo, is to be sure that even if this key has
been updated or deleted by a cleaner software or malware, Odoo continue to work
This closesodoo/odoo#12150, closesodoo/odoo#9061, closesodoo/odoo#9118
An availability selection field with 3 values :
- Display nothing
- In stock
- Warning + a warning message that could be something like 'available with
a variable delay of 15 days
The object ir.filters has no security rules. anyone can access and
delete other people rules.
Add several rules:
- The administrators have all the rights on ir_filters
- An employee can create/modify a filter for him or everyone. But not for someone else
- An employee can delete only delete the filters he created
- A portal/public user can only access the filters for which he's the user
When a user goes through the trouble of manually modifying the
depreciation lines he will lose all his work when clicking on 'reset to
draft'. Furthermore, if he then goes through the trouble of repairing
the problem by once again manually changing the depreciation lines he
will again lose his work when pressing confirm.
opw-678678
Used case:
Create a SO with invoicing policy based on delivery. Don't deliver
anything and Create invoice for all invoiceable lines.
Result:
There was no invoice created and no warning message.
After the fix:
A warning message is raised when after clicking "Create
invoice",for any reason it doesn't create an invoice.
opw:678567
The field generation is most of the time following the pattern
`field_<table name>_<field name>`
but in case of name clash (e.g. res.partner.category - id and res.partner -
category_id), the id of ir.model.field is added at the end of the external id
during the field creation.
The more flexible way to link to an ir.model.field is to use the syntax
`search=[('model', '=', <model>), ('name', '=', <field name>)]`
to avoid errors as in #12192 when the "first" external id no longer exists.
Fixes#12192Closes#12198
In the sales receipts :
- In Sales Receipts : Change the String Date into Bill Date
- Always display the Journal Items tab
- In the Journal Items tab : Display the date. the string should be Accounting Date
- In draft : There should be an onchange on the accounting date when the bill date is changed
- In draft : It should be possible to change indenpendently the accounting date
- The entries should be posted at the accounting date
In the purchase receipts :
- Always display the Journal Items tab
- In the Journal Items tab : Change the string Date into Accounting Date
- In draft : There should be an onchange on the accounting date when the bill date is changed
- In draft : It should be possible to change indenpendently the accounting date
- The entries should be posted at the accounting date
Contrary to other payment acquirers all transactions through stripe are
s2s transactions. Because of this payment_stripe has to create it's own
payment.transactions which is unusual.
Because of this payment_stripe needs a sale order id which will be
provided by website_sale in request.session. website_quote doesn't do
this so this extracts it from the return_url, just like
website_quotation.js does.
opw-678117
The attendance module needs to know if the user is an employee before
putting itself in the systray. This commit add the information in the
session infos, and use it directly.