This class referenced demo data but even if they weren't installed, the
tests were passing. Remove the definition and usages.
closesodoo/odoo#35343
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Reproduce:
1. I create a product with fifo and real_time valuation (make sure the invoicing policy is 'delivered' and make it available in pos).
2. set the cost of the product to be 5.0 and sale price to be 10.0.
3. I update its inventory and set 5 items. -> total valuation of 25.
4. I change the cost of the product to 1.0.
5. I update again the quantity to 10, making the valuation of the product to 30.0.
6. I configure point of sale to allow invoicing.
7. Open a pos session then sell 7 items of the product (invoice the order).
8. Since the product is fifo, this means that the cost of goods sold is 5 * 5.0 + 2 * 1.0 = 27.0.
9. The correct expense account line should have balance of 27.0.
10. The correct output account line should have balance of -27.0
However, instead of 27.0 as stock valuation amount, the value in the
pos.order invoice is currently 7 * 2.0 = 14 -- and this is wrong. It is
not taking into account the value of the previous stock
Solution:
Missing refactoring from https://github.com/odoo/odoo/commit/14812f41710282f9923078f6764323086500ae85closesodoo/odoo#35335
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Since #34996, in some case, the error detail was not logged keeping
only the final summary "x errors, x failures" when running TestSuite.
Making fail test test_cache_invalidation for instance won't show
a detailed message when breaking test_01_project_tour will.
This issue occurs when using subtest, like with assertQueryCount,
@users decorator, test_all_l10n, and test_youtube_urls.
Since Testresult addSubTest append directly to error and failures
instead of calling addError and addFailure, we need to ovewrite
addSubtest too.
closesodoo/odoo#35270
Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
The "company_id" fields for the iap account has
been changed by the "company_ids" fields to allow
the use of an iap account with multiple company.
closesodoo/odoo#35093
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Before this commit, you can delete only canceled MO.
Now, if you want to delete a non-canceled MO, it will try to cancel it
then to unlink it.
Task #1969034closesodoo/odoo#34026
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Usecase:
- Set table top as manufacture and MTO
- Create a MO for table(MTO)
- Confirm the MO
- Cancel the MO
The activity with the exception is not logged on the child MO
It happens because the _get_upstream_documents_and_responsible for move
linked to a MO is based on the created_production_id field. However it
is only set on the move that created the move_finished_ids for the new
MO. In the case of a MO that directly create a child MO the chain is:
MO -> move_raw_ids -> move_finished_ids -> MO2
The log_activity on cancel is based on the move_raw_ids and their
move_orig_ids in the previous case it's the move_finished_ids for MO2.
However the move_finished_ids for MO2 is directly link to the child MO
and the created_production_id is set on the move_raw_ids for MO parent.
Compare to PO, we could directly base the parent document on production_id
since the move_finished_ids are directly created.
Manufacturing Order can now be cancelled even if some move lines or Work
Orders are done (in this case, a wizard ask confirmation to the user).
Task #1969034
Co-authored-by: Arnold Moyaux <arm@odoo.com>
Using path such as '/dev/ttyUSB0' to connect to a serial port
makes it impossible to use the bluetooth.
We now use the locations in '/dev/serial/by-path' to connect to serial port,
which does not affect bluetooth connections
closesodoo/odoo#35302
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Before this commit, the tooltip message for the credits lacks clarity when making a request for companies and contacts. The sentence 'making a total of X credits for this request' was only the total of the credits for the contacts, without the credits for the companies.
Now, the tooltip is clearer, the total takes into account the credits for the companies and the contacts.
Task-ID 2036946
closesodoo/odoo#35049
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
the KID number is base on invoice and payment
the KID number control digit is calculated from the MOD10 (luan)
the last digit in the KID number is a control digit.
task-1969040
closes#33779
Signed-off-by: Josse Colpaert <jco@openerp.com>
Adds two stats button on res.partner form view :
- The first one will show all the courses that the partner is following.
- The second one will show all the certifications the partner has passed.
When the partner is a company :
- All the courses followed by all the partners are shown without duplicate.
- All the certifications passed by all the partners are shown.
PR : #34908
Task ID : 2034097
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit changes the method _get_default_team_id so that it removes
the xmlid reference to the default team. Instead, we will now use
the team sequence (with default team's sequence being set as 1)
and falling back to the next team with the highest sequence if the
default team got deleted.
Therefore, teams will now be ordered by sequence instead of name,
allowing the users to reorder their teams as they see fit
This commit also removes useless sudo when searching teams
Task: #1962182
PR: #32372
wip
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit improves the ux in CRM by changing a few things:
- Restore the use_leads and use_quotations fields
along with their features as they were in 12.0.
- Hide the email alias if use_upportunities and use_leads
are unchecked.
- Show a link to the general settings instead of the alias_domain
if no alias_domain has been configured.
- fixes the "unassigned lead(s)" link so that
it redirects the user to the actually unassigned leads
Task: #1962182
PR: #32372
This commit adds the number of comments on
the comments tab and also improves the design of the
pdf sharing options
Task: 1978736
PR: #34232
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit improves the user experience in the slide.slide
form view by reorganizing fields, renaming fields and hiding
unnecessary fields.
This commit also introduces two new fields:
- comment_count: computed field that gets the number of comments on the slide
- channel_allow_comment: Related field to the channel_id.allow_coment.
This field is used to hide/show unnecessary fields
TaskID: 1978736
PR: #34232
* gamification, website_forum, stock
Fix for: https://github.com/odoo/odoo/pull/32132
Some problems with the mentioned PR had to be fixed and after some
discussions, it was decided to revert back to the original crashmanager
warnings for the backend.
See sub-commits for details.
closesodoo/odoo#35209
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
The purpose of quiet parameter is to return a barcode image
without left and right margins.
It could be usefull on report where the barcode size should be
minize or align to another element.
closesodoo/odoo#29209
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Improve batch picking demo data.
The first page shows the summary of all the pickings. next page onwards we can see the picking information in the report.
task-1889404
Closes#29209
Add the total weight of the picking on the delivery slip (next to the date field) (only if different than 0)
Add a column "HS code" on the product line if there is at least one product with an HS code
task-1889404
Closes#29209
Fix for: https://github.com/odoo/odoo/pull/32132
We had changed the display of the warnings in the back-end to be like the
front-end (notification toast). This change needs to be reverted. Now
the warnings in the front-end are toast notifications and in the
back-end they are Warning modals.
Part of: https://github.com/odoo/odoo/pull/35209
* = website_forum, stock
Fix for: https://github.com/odoo/odoo/pull/32132
crash_manager.js was using the services while bypassing
ServiceProviderMixin That means all services are duplicated, each having
their own state.
To fix this issue, CrashManager now extends AbstractService. Also
crash_manager is now registered in serviceRegistry instead of being
instanciated on the fly.
The crash_manager now being a Service raise one issue with the tests:
The services are not run for the tests but some tests needs the
crash_manager 'unhandledrejection' listener. For that matter the
services are reenable in qunit. Also the crash_manager's
'unhandledrejection' listener has to have precedence over the qunit
listener as it will handle rejections wich have no reason or are not
Errors.
Part of: https://github.com/odoo/odoo/pull/35209
This commit improves a few methods related to the user profiles:
- Change _prepare_all_users_values so that it
works with a batch of users
- Change the _get_user_certificates and rename it to _get_users_certificates
so that it works with a batch of users to avoid doing a search in a
list comprehension.
This method will also be used to get the number of certificates per users
TaskID: 1952064
PR: #32229
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit fixes an issue where only three slides would be
displayed instead of four in a category of the course page.
This was due to the promoted slide being ignored in its own
category.
After this commit, the promoted slide will appear in the promoted
slot AND in its category
TaskID: 1952064
PR: #32229
By default the main Leads menu doesn't have a submenu anymore
But when the website_crm_score module is installed, it appears
as a submenu like before
PR : #34595
Task ID : 2031626
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
* theme_bootswatch, theme_default, website_theme_install
It is now possible to add very easily a font from Google Fonts under
Customize Theme > Fonts > Add Google Font.
The merge also improves the customize dialog possibilities with a
new 'auto' widget and a 'fontselection' tag.
See sub-commits for details.
task-1974659
closesodoo/odoo#33442
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: Andrea Ulliana <aul@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
It is now possible to add very easily a font from Google Fonts under
Customize Theme > Fonts > Add Google Font.
Part of https://github.com/odoo/odoo/pull/33442
task-1974659
Co-authored-by: qsm-odoo <qsm@odoo.com>
Before this commit, if a theme had more fonts that the default number
(6), it had to override the customize dialog. Now, the number of fonts
to add in the list is found automatically.
To do so, instead of defining a <selection/> tag with 6+ <opt/> tag, we
are now able to define an unique new tag: <fontselection/> which will do
automatically the job.
Part of https://github.com/odoo/odoo/pull/33442
task-1974659
* theme_bootswatch, theme_default, website_theme_install
This commit makes use of the new 'auto' widget for font selection:
instead of enabling a template which will enable a scss file which sets
a font variable to a specific value... we directly allow to do a scss
custo which sets that value.
The code in charge of resetting font customizations on theme switching
is also moved and refactored here in website (instead of being specific
to each theme).
Part of https://github.com/odoo/odoo/pull/33442
task-1974659
Co-authored-by: qsm-odoo <qsm@odoo.com>
The theme customize dialog implements its own system of widgets. For
example: data-widget="color" and data-widget="input". Now, a new type of
widget data-widget="auto" exists. The goal is the same as the
data-widget="input" but with a predefined value that the user cannot
choose.
Also, as "data-value" was badly chosen during its implementation, it
is now renamed to "data-variable" and "data-value" is now used with the
new widget.
Example of the new widget "auto":
<opt data-widget="auto" data-variable="logo-height" data-value="3rem"
string="Logo Height"/>
-> Allows to create a button forcing the logo height to 3rem.
Part of https://github.com/odoo/odoo/pull/33442
task-1974659
Breaks doc-building all the time, more advanced ES6 features are not
supported by the JS parsing library.
closesodoo/odoo#35288
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
PURPOSE
Purpose of this merge is to set the new attribute OPTIONAL = SHOW/Hide on
tree views so the user can easily hide/show the optional fields on the tree view.
SPECIFICATIONS
contacts (not used as main view but generic to all modules):
* phone: show
* email: show
* city: hide
* state: hide
* country: hide
* next partner review: hide
* level: hide
* activation: hide
* tags: hide
* current membership status: hide
leads
* created on: show
* company name: hide
* contact name: show
* email: show
* phone: show
* city: show
* state: hide
* country: show
* score: hide
* assigned partner: show
* sales team: show
* salesperson: show
* company: show
* tags: hide
* priority: hide
product template
* internal reference: show
* barcode: hide (to move after internal ref)
* website: show
* company: hide
* sales price: show
* cost: show:
* product category: hide
* product type: hide
* quantity on hand: show
* forecast quantity: show (rename to Forecasted Quantity)
* unit of measure: show
* ebay status: show
product product
* internal reference: show
* barcode: hide (to move after internal ref)
* website: show
* company: hide
* public price: show (to rename in Sales price, to be consistent with product template form)
* cost: show:
* product category: hide
* product type: hide
* quantity on hand: show
* forecast quantity: show
* unit of measure: show
quotation
* quotation date: show
* website: show
* sales team: hide (before sales person)
* sales person: show
* company: show
* warehouse: hide
* company: show
* total: show
* status: show
* invoice status: hide
* tags: hide
sales order
* confirmation date: show
* website: show
* sales team: hide
* salesperson: show
* company: show
* warehouse: hide
* total: show
* invoice status: show
* tags: hide
helpdesk tickets
* customer: show
* assigned to: show
* ticket type: hide
* priority: hide
* tags: hide
* stage: show
* company: show
RQP/purchase orders
* vendor reference: hide
* order date: show
* company: show
* scheduled date: show
* Purchase rep: show
* source document: show
* untaxed: hide
* total: show
* status: show
Purchase agreement
* purchase rep: show
* company: show
* ordering date: show
* delivery date: hide
* deadline: show
* source document: show
* status: show
Incoming products
* date: hide (to rename into Creation date)
* source document: show
* status: show
Invoices & bills:
* invoice date: show
* origin: show
* payment reference: hide
* company: show
* sales team: hide
* salesperson: show
* due date: show
* tax excluded: show
* tax: hide
* total: show
* amount due: show
* payment status: hide
Journal entries
* partner: show
* reference: show
* company: show (after journal)
Journal items
* reference: show
* partner: show
* analytic account: show
* matching number: show
* due date: hide
Analytic items
* ref: hide
* tags: hide (after analytic account)
* financial account: hide
* journal item: hide
* partner: hide (before company)
* company: show
* product: hide
* quantity: hide
* unit of measure: hide
* amount: show
Transfers (stock.picking)
* from: show
* to: show
* partner: show
* responsible: hide
* operation type: hide
* company: show
* scheduled date: show
* effective date: hide
* source document: show
* back order of: hide
* status: show
* batch picking: show
* carrier: hide
* tracking ref: hide
* weight: hide
* weight for shipping: hide
* priority: hide
Inventory adjustment
* location: hide (to add after inventory date)
* company: show
* accounting date: hide
Inventory report (stock.quant)
* reserved: hide
* company: show
Lot/serial
* best before: hide (after creation date)
* removal date: hide
* end of life date: hide
* alert date: hide
* created on: show
* internal ref: show
MO
* deadline start: show
* planning start date: hide (rename to planned start date)
* product: show
* bill of material: hide
* source: show
* responsible: hide
* company: show
* quantity: show
* uom: show
* routing: show
* state: show
* material availability: show
BoM
* Reference: show
* variant: show
* version: show
* quantity: show
* unit of measure: show
* bom type: hide
* company: show
* routing: show
Repair order:
* product to repair: show
* product quantity: hide
* uom: hide
* customer: show
* delivery address: show
* warranty expiration: show
* location: hide
* company: show
* status: show
Quality alerts
* product: show
* product variant: hide
* lot: hide
* work center: show
* team: show
* responsible: show
* check: show
* tags: hide
* root cause: hide
* priority: hide
* description: hide
* date assigned: show
* vendor: hide
Quality control points (and reorder tree view according to the list)
* reference
* title: show
* product: show
* product variant: hide
* operation type: show
* operation: hide
* work order operation: hide
* control type: hide
* device: hide
* type: show
* team: show
* responsible: hide
* company: show
Quality checks (add the fields in the following order in the list view)
* product: show
* lot: show
* picking: hide (rename to Transfer)
* checked date: show
* checked by: show
* control point: hide
* team: show
* status: show
Project tasks
* project: show
* assigned to: show
* customer: hide
* tags: hide
* planned hour: show
* remaining hour: show
* deadline: hide
* stage: show
* progress: show
* company: show
LINKS
See task 1997453
closesodoo/odoo#33888
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
* = sale_crm, sale_stock, website_sale
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes: #33888
* = stock_account, stock_picking_batch, stock_product_expiry, delivery
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
Update string date field from incoming products tree view.
Update string virtual_available field from product tree view.
task-1997453
Closes#33888
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes: #33888
* = website_crm_partner_assign
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes: #33888
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes#33888
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes: #33888
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes: #33888
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree
view so the user can easily hide/show the optional fields on the tree view.
task-1997453
Closes: #33888