Commit Graph
106265 Commits
Author SHA1 Message Date
Foram Shah 4022a47de2 [IMP] mrp,sale_mrp: add origin of MO in chatter
Set sale order and production order link on Mo. override make_mo method in sale_mrp module to set sale order reference in mo.
.and to find final destination move, i created one common private method to get parent move.

MESSAGES TO DISPLAY:

-Set a Reordering Rule (stock.warehouse.orderpoint) that creates a manufacturing order:
"This manufacturing order has been created from: OP/00001"

-Create new Sales order of manufactured product , there will be a Source Document with procurement of that Sale Order
"This manufacturing order has been created from: SO001"

-create MO for BoM items of the product, there will be a Source Document with procurement of that Manufacturing Order
"This manufacturing order has been created from: MO/00001"
2016-11-02 14:18:24 +01:00
Mitali Patel 81acd4dee2 [IMP] stock_account: merge inventory reports menus
Previously we had 'Inventory at Date' (debug mode) and 'Inventory Valuation'
Both have been merged into 'Inventory Valuation' that pops up a wizard asking
whether you want the current one or the one from a specific date.

Depending on which one you choose you will get either report from the previous
menus. (stock.quant or stock.history model)
2016-11-02 13:59:54 +01:00
Kinjal Mehta 6481ff9d2f [IMP] mrp: Manufacturing Lead Time field moved from Sales tab to Inventory tab. 2016-11-02 13:28:44 +01:00
qsm-odoo dd560377e2 [IMP] web: improve traceback reporting
* Do not assault the user with a full traceback on bug, but indicates
an error occured and allow him to toggle the traceback
* Automatically scroll the traceback to the end (better for python
errors)
* Propose the user to report the traceback by using a new "Copy"
button which correctly copies the full error + traceback
2016-11-02 13:26:00 +01:00
Dhaval Panchal c8d0fd4a50 [IMP] website_forum: Change profile picture for forum users. 2016-11-02 11:11:27 +01:00
Christophe Simonis 4a5d060123 Revert "[ADD] purchase: Add python tests for default lead time"
Broken test.

This reverts commit 83de09d895.
2016-11-02 10:21:35 +01:00
Fabien Pinckaers 651cfbd626 [IMP] sale: report typo 2016-10-28 16:23:01 +05:30
qdp-odoo 4ed5369f50 [IMP] account_tax_cash_basis: take care of multi currencies use cases. 2016-10-28 11:55:57 +02:00
Mitali Patel 88ab33709f [IMP] pos_restaurant: resize the delete dialog box on the table 2016-10-28 10:24:41 +02:00
Dhaval Panchal e204340dd2 [IMP] stock: disable editing product from lot/SN
once it contains quants.
2016-10-28 10:17:26 +02:00
Christophe Simonis b3e5d28e92 [MERGE] forward port branch 10.0 up to dc62cd8 2016-10-27 18:58:54 +02:00
Christophe Simonis dc62cd8e00 [FIX] point_of_sale: correct variable access
oversight of previous forward-port
2016-10-27 18:33:35 +02:00
Christophe Simonis ea479ce6f3 [MERGE] forward port branch 10.0 up to 3bb022d 2016-10-27 18:23:44 +02:00
Christophe Simonis 3bb022d57c [MERGE] forward port branch saas-12 up to 6f8e40c 2016-10-27 18:17:59 +02:00
qsm-odoo 68b1c5c1fa [IMP] web: review date(time) field custom search filters
* Remove 'greater than'
* Remove 'less than'
* Rename 'greater than or equal to' with 'is after'
* Rename 'less than or equal to' with 'is before'
* Datepicker starts now by default with the current date
2016-10-27 17:57:14 +02:00
Christophe Simonis 6f8e40cdec [MERGE] forward port branch saas-11 up to 1304d13 2016-10-27 17:55:47 +02:00
Christophe Simonis 1304d13c7f [MERGE] forward port branch 9.0 up to 25616b9 2016-10-27 17:35:49 +02:00
Josse Colpaert 7a65ec28b9 [FIX] mrp: extra moves set correct quantity_done and product_uom_qty
Before, when we consumed 3 instead of 1 in a production order, it
gave a traceback.  It was because it created moves
with negative quantities.  So, something was wrong with
the quantity_done/product_uom_qty set when creating the extra moves

When creating an extra move because of the procurement,
but you still need to split afterwards (e.g. procurement 10, production order 12, you do 11),
then you should have a difference between quantity_done and product_uom_qty
in the extra move and not try to change it on the original.
That way, we make sure we pass the correct quantities.
2016-10-27 17:34:43 +02:00
qdp-odoo 7544c22de9 [REF] account: clean reconciliable entries when reversing a move.
There was some code taking care of reconciling the exchange rate entris and their reversal, but it was done in the unlink of full reconciliation. It's way more logical to deleguate that in reverse_move() as we want to completly cancel any line reversed (which means that partially reconciled line should be unreconciled first then totally reconciled with their reversal, for any line with an account set as reconcile=True.. not only in case of full reconciliation with exchange rate entries)
2016-10-27 17:14:40 +02:00
qdp-odoo f430736b79 [FIX] base, base_vat: constrains decorator does support only directs fields 2016-10-27 16:28:18 +02:00
Wolfgang Taferner cb5fd87e7f [FIX] point_of_sale: handle returns always correctly
We support 'returns' in the POS frontend by allowing the user to
specify a negative quantity. Before this patch however, the backend
would always generate a single picking per pos.order. This is
problematic when a pos.order contains both lines with a positive and
negative quantity. The generated move lines would not all have the same
source and destination location and so could not be added to the same
picking.

This commit creates an extra 'return' picking when required and assigns
the generated moves to the correct picking.

opw-690812

Closes #13929

Forward-port of 19cca50e7c
2016-10-27 15:52:43 +02:00
Goffin Simon ba33ec7554 [FIX] sale_timesheet: wrong icon
The icon for projects is a puzzle piece.

opw:691142
2016-10-27 14:48:10 +02:00
Nicolas Lempereur 25616b9f2b [FIX] web: repair length field in view list
Underscore method _.each expects an array like object when a "length"
property is present.

This was an issue with a record having a numeric "length" field set to a
non-negative value. When changing a line the change would not appear on
blur.

This issue was fixed with 0e664c9e9 but introduced back with f0e331e00.

opw-691070

Forward-port of 5d17749ff4 which has been
forgotten during previous forward-port.
2016-10-27 14:46:08 +02:00
Christophe Simonis 477e69d850 [MERGE] forward port branch saas-6 up to 3c3ce75 2016-10-27 14:42:57 +02:00
Christophe Simonis 3c3ce750f7 [MERGE] forward port branch 8.0 up to 5ee4344 2016-10-27 14:11:46 +02:00
David Arnold 179f7c0767 [FIX] account: missing data in hook function
Oversight of commit 7e58821a9f

Closes #13998
2016-10-27 14:09:18 +02:00
David Arnold d3de63ec3f [FIX] account: nested group of taxes
When a group of tax is nested inside another group of taxes, the tax
amount and base are wrongly calculated. It is also the case when a tax
is applied after a group of taxes.

This is because the recursive call doesn't reuse the previously
calculated tax amounts and base, but always use the same entry amounts.

The fix introduces this behavior, and moreover makes sure to include the
tax group in the base amount only if it should.

Closes #13995
2016-10-27 14:09:18 +02:00
Christophe Simonis 147db011c7 [FIX] web: deactivate unreliable test 2016-10-27 14:05:16 +02:00
Goffin Simon 10e9aed584 [FIX] account: reconciliation_widget_auto_reconcile
The ids returned in notifications must be ids of account move.

opw:690621
2016-10-27 13:09:34 +02:00
Nicolas Lempereur b4d5246545 [IMP] mail: no jump for chatter show older messages
When clicking on "Show older messages" in the bottom of the chatter, the
page would jump to the top when the additional messages are loaded.

There is already a functionality in a discuss channel to stay at the
previous scrolling position (related to the content) :

 https://github.com/odoo/odoo/blob/ffe0db0d/addons/mail/static/src/js/client_action.js#L506-L521

This fix does the same steps for the chatter.

opw-692010
2016-10-27 10:31:48 +02:00
Olivier Dony 715860ea29 [FIX] mail, product: remove deprecated m2m params
`id1`, `id2`, `rel` are deprecated now that we switched to the
new API, and are simply ignored.
Keeping them is confusing because the default names are being
used instead.

@rco-odoo: We should add a warning in the m2m constructor if these
unsupported parameters are still passed.
2016-10-27 10:20:17 +02:00
Christophe Simonis 83eaaab801 [FIX] web: correct tests to mock fields_get method 2016-10-26 19:09:26 +02:00
Raphael Collet ea9ef7c39d [FIX] base: prevent deletion of custom fields when other fields depend on them (#13978)
Consider that you have a custom one2many field based on a custom many2one
field, and that you delete the many2one field.  From that point on, it is
impossible to load the registry of the corresponding database.  To prevent this
from happening, we add a check before modifying or deleting custom fields.
2016-10-26 14:25:17 +02:00
Goffin Simon 69c41c7e3c [FIX] account: invoices on unmatched payment
When unreconciling a payment from an invoice, the link between
the payment and the invoice (in many2many invoice_ids)was kept
and then the invoice still appeared when clicking on the button
invoices in the payment form view.

The invoice must be removed from invoice_ids.

opw:691692
2016-10-26 13:50:55 +02:00
Aaron Bohy 1f06cc4168 [FIX] web: list editable: traceback when removing a row in edition
When clicking on the trash to remove a line (e.g. a sale order line
in a quotation form view) while editing another line, it produces a
traceback (in most cases), or behaves randomly (less frequently)
like removing both lines, or one of them, or maybe none of them.

Anyway, this feature doesn't work at all, so this commit simply disables
it when we are in edition mode.

In a perfect world, we would fix the feature instead of disabling it,
but the code of the list editable is so instable that it would most
certainly break something else.

Closes #13778
2016-10-26 13:38:57 +02:00
Aaron Bohy 5591a44e0f [FIX] board: traceback when removing calendar from dashboard
The dashboard instantiates an action manager for each view it contains.
When removing a view from the dashboard, the $el of its action manager
is simply removed from the DOM, unbinding all DOM event handlers
attached on it and its children, but the action manager isn't destroyed.
It means that Odoo event handlers (like core.bus.on(...)) aren't unbound.

This causes a traceback when removing a calendar view from the dashboard,
because such an Odoo handler is defined, and tries to access some
autocomplete stuff that doesn't exist anymore since the element has been
removed.

This commit ensures to destroy the action_manager.

Closes #13858
2016-10-26 13:38:47 +02:00
Aaron Bohy cc59da1fc8 [FIX] web_diagram: wait for dialog's form view to be ready
Since rev. 002660a, form views are instantiated with their fields_view.
This has an impact in FormViewDialog as the inner form view
instantiation is now asynchronous. The diagram view instantiates several
FormViewDialogs but doesn't wait for the form view to be instantiated
before accessing it, which produces a traceback.

Closes #13775
2016-10-26 13:37:28 +02:00
Nicolas Martinelli e99e0d6922 [FIX] point_of_sale: journal of closing entries
- Invoice a POS order => the invoice number is for example 0001
- Close the POS session
- Invoice another POS order => the invoice number is 0003

This is because the journal used for the POS closing entries is the same
than the journal used for the customer invoices. Therefore, the closing
entry consumes a sequence number of the invoices.

This affects POS orders, but potentially SO as well if they use the same
journal.

This is fixed in v10 from commit b5b0d36b31. In v9, we use a workaround
by looking first if a `ir.config_parameter` named
`pos.closing.journal_id` exists. We use this journal for the session
closing.

opw-691771
2016-10-26 10:57:16 +02:00
Xavier Morel 4d60c1f62e [FIX] partially revert 3e2e1d6b90
One of the behavioural divergences between "create or replace" view and
DROP; CREATE turns out to be that "create or replace" can only add
columns *at the end* of the view, and can not change the name or type of
the view during replacement, which can break migrations.

Reinstate the old drop;create as replacement is not necessary for this
specific view.
2016-10-26 09:44:37 +02:00
qdp-odoo f643bca6cf [IMP] base_vat: allow to re-use the 'vat' field of res.partner for localized TIN number algorithm without forcing to prefix that number with the country code (which is weird for people). 2016-10-26 08:27:49 +02:00
Jeremy Kersten 651738303a [FIX] website_sale: typo in checkout form
This commit closes odoo/odoo@13981
2016-10-25 22:50:14 +02:00
Goffin Simon 4d59cc8637 [FIX] website_event_track: slug function with non existing record
The slug function cannot be used with non existing records.

opw:692017
2016-10-25 15:24:17 +02:00
Leonardo Rochael Almeida 5ee4344efd [IMP] Allow configuration of server_wide_modules from file
Allow reading and saving the value of `server_wide_modules` from the
configuration file, instead of just the command line.
2016-10-25 15:23:41 +02:00
Mansi Gandhi ba6a5ddc8d [IMP] website_crm: add 'Default Sales Team' and 'Default Salesperson'
To leads created from the 'contact_us' form from the website.
2016-10-25 13:56:00 +02:00
Martin Trigaux d183de7aae [FIX] point_of_sale: do not strip name on backend report
The max size of 20 is for the pos ticket which has a limited size.
Strip on client side to keep the full name for the pdf report.
opw-691483
2016-10-25 13:26:28 +02:00
Nicolas Martinelli 135a5daeb8 [FIX] website_mail_channel: message count
The message count on a mailing list looks incorrect since notifications
are counted but not displayed.

opw-691948
2016-10-25 10:31:59 +02:00
dut-odoo 500b73323d [IMP] l10n_in: changed account tag ids 2016-10-25 09:52:49 +02:00
dut-odoo 0e02d0e9da [IMP] l10n_in: applied new tax structure for the India 2016-10-25 09:52:49 +02:00
Atul Patel f65ae49f38 [ADD] hr_holidays: Add track visibility onchange to employee, start and end date and number of days to take leaves to easily track in history with mail. 2016-10-25 09:55:00 +05:30
Wolfgang Taferner 19cca50e7c [FIX] point_of_sale: create two pickings for one POS order when required
We support 'returns' in the POS frontend by allowing the user to
specify a negative quantity. Before this patch however, the backend
would always generate a single picking per pos.order. This is
problematic when a pos.order contains both lines with a positive and
negative quantity. The generated move lines would not all have the same
source and destination location and so could not be added to the same
picking.

This commit creates an extra 'return' picking when required and assigns
the generated moves to the correct picking.

Closes #13699
Closes #13762

opw-690812
2016-10-24 17:25:15 -07:00