Commit Graph
99161 Commits
Author SHA1 Message Date
Sandy Carter 043f7b84b8 [FIX] base: avoid having 'False' in name of a bank
The name_get of res.partner.bank uses the format_layout to generate the name
of the bank. As every field is not required, we may get 'False' in the name.
Replace these missing values by an empty string.

Fixes #3590
2014-11-27 13:09:01 +01:00
Mohammad Alhashash 2461baa0dd [FIX] stock: prevent serial number deletion on stock.move
prodlot_id field may be required due to constraint `_check_tracking`.
When a stock.production.lot is deleted, the constraint on linked stock.move is
not checked. To avoid inconsistency, restrict the suppression.
To allow the modification of existing stock.move, remove the states attribute on
the field definition.

As removal of serial may impact the traceability, it makes sense on buisness
point of view to force the modification of previous stock.move, even if the
constraint would not have been violated.
The list of linked stock.move is present on the serial form view making
the operation easier.

Fixes #3560, lp:1176912
2014-11-27 12:47:41 +01:00
Denis Ledoux 117d0d0ca2 [FIX] sale_margin: stored field functions cannot trigger other stored field functions
the update of sale.order margin field was trigger with the margin stored field of sale.order.line: This cannot work with the old api
2014-11-27 12:06:19 +01:00
Géry Debongnie b7ba307094 [IMP] allow many2many to specify formview (web client)
One2Many fields can specify sub tree and sub form view, to be used when
displaying a list view and when adding/editing an element.  Many2many
can display a sub tree view, but ignore sub formviews.  This can be
fixed by specifying an alternative_form_view to the popup form widget.
2014-11-27 11:18:36 +01:00
Will Stott c854404a2c [FIX] purchase(_requisition): typo negociation -> negotiation 2014-11-27 10:36:55 +01:00
David Monjoie f1c70d4cc9 [FIX] openerp: don't ignore active field on new views when updating a module
Without this fix, if you have a new view in a module with active=False, the active tag will be ignore when upgrading the module because of 'update' mode, and the view will be activated by default !
2014-11-27 09:52:17 +01:00
Olivier Dony 9bc712b075 [REV] product: rev. 42f5114 needs further review
Incorrect use of stock.move in product module + needs review.

This reverts commit 42f511405a:
"[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit"
2014-11-26 18:20:28 +01:00
Josse Colpaert 42f511405a [IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM. #3440 Enhancement request richard-willowit
The default UoM can only be changed when there are no stock moves (or only cancelled ones), but to any category.
The purchase UoM can be changed whenever you want, but has to be in the same category as the default UoM.

Closes #3440

[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit

[FIX] Remove line

[FIX] Constraint should be applied when UoM or PO UoM is changed
2014-11-26 18:01:00 +01:00
Jeremy Kersten 0313218123 [FIX] website_forum: Forum, use old API in v8. forum was not a browse record, so we need to re-browse. Tags: Force to delete tag. Before old tag deleted was not removed from relation, Now we use a 6 to force the update, followed by 0 to create. 2014-11-26 17:44:52 +01:00
Denis Ledoux 2b0a8363d9 [FIX] sale_layout: set 0 as default value for categ_sequence
Otherwise, in some cases, the categ_sequence can be set to null, which is not ordered the same way than 0, and you won't be able to sort lines with null and 0 as categ_sequence between each others
2014-11-26 17:03:42 +01:00
Maria G fde2046d5e [FIX] hr_attendance: use float division for worked_hours field
Used to be rounded to integer while the field is a float.
Fixes #3526
2014-11-26 16:46:26 +01:00
Frédéric Van der Essen 94aded554c Merge pull request #3803 from TheCloneMaster/patch-7
POS is loading all partners, not only customers
2014-11-26 16:38:44 +01:00
Richard Mathot a15ea2651b [REV] stock: partial revert of 52c3b52bf0
The <div> were introduced to correct alignement issues in this form view. Actually, they are generic and due to inherited invisible group, so CSS is sometimes incorrect when you hide groups. Should be fixed in form view implementation.
2014-11-26 15:56:03 +01:00
Pierre Verkest f0e331e005 [FIX] correctly update many2many in listview (web client)
Fixes the issue #1216 (follow the link for more information). The issue
was caused by a hack in list view: the magical suffix __display is used
in render_cell to determine if a many2many field should be updated. This
commit simply makes sure that old many2many fields + __display keys are
cleared.

A better way would be to redesign/refactor the list view to avoid that
hack in the first place.  But this would be a much more complex task.
2014-11-26 15:42:34 +01:00
Richard Mathot 5c1c3ac058 [REF] stock: replace <div> in view by nolabel
This patch does not change the look of the view; it is only intended to
use the standard feature "nolabel" instead of hacking the HTML with a
<div> tag.
2014-11-26 15:32:51 +01:00
Mario Arias Badila d349723271 [point_of_sale] Domain functions to literals
Replaced domain functions with literals where there are only constants
2014-11-26 08:32:33 -06:00
Edy Kendengis 002664ed79 [IMP] stock: display company in location tree view 2014-11-26 15:32:25 +01:00
Richard Mathot 39606a7d27 [FIX] stock: correct label for picking_id 2014-11-26 15:20:41 +01:00
Frédéric van der Essen e5ff73763f [FIX] pos_loyalty: incorrect xpath 2014-11-26 15:04:11 +01:00
Richard Mathot f229d40fb7 [REM] product: leftovers of unused field "mes_type"
Also removed in data in point_of_sale, project_timesheet and sale_mrp.
2014-11-26 15:00:37 +01:00
Richard Mathot 0a26a8dda1 [REF] stock: product quantity stat button
Clean version of stat button of product quantity. Will also work in
creation mode and avoid unuseful computed string field

(fix parts of commit 52c3b52bf0)
2014-11-26 14:52:56 +01:00
Christophe Matthieu d3c562d4e8 [FIX] product: keep attribute on a variant with only one attribute
When adding informational attribute, with only one possible value, it used to be skipped.
Instead keep it and add it on every variant.

To avoid dropping and recreating product (and lose eventual customisations), the attributes with only one possible value are set on every product.
This makes sure that in following test, these are not considered in variants_inactive variable.

Fixes #3204
2014-11-26 14:35:08 +01:00
Denis Ledoux 02f4f9a572 [MERGE] forward port of branch 7.0 up to e2dd18f 2014-11-26 12:35:36 +01:00
Denis Ledoux e2dd18f1e7 [FIX] mrp: prevent recursion from phantom boms with no lines
if the bom is phantom and has no line, we attempt to find a new bom with the default product uom
This is possible that we find the same bom that the current one
In such a case, we must not explode, to avoid recursion.
2014-11-26 12:34:45 +01:00
Somesh Khare f317fedc4b [Fix] ir_translation: fix the problem of base_field object has no attribute model (Maintenance Case:618054)
Fixes #3859
2014-11-26 12:25:58 +01:00
Frédéric van der Essen 24875c11d0 [IMP] point_of_sale: enable product re-ordering in the point of sale. 2014-11-26 12:18:52 +01:00
Frederic van der Essen 7d647eb903 [IMP] point_of_sale: better names for the pos config fields 2014-11-26 12:18:52 +01:00
Frederic van der Essen 0071914277 [IMP] point_of_sale: removing obsolete field 2014-11-26 12:18:51 +01:00
Frederic van der Essen 3574112422 [IMP] point_of_sale: pos config view improvement 2014-11-26 12:18:51 +01:00
Frederic van der Essen 940dc69ad5 [IMP] point_of_sale: moved the barcode field to the view header, and gave it a simpler name 2014-11-26 12:18:50 +01:00
Frederic van der Essen 1ba6aca37d [IMP] pos_restaurant: automatically display floors if they have been setup (removed config option)
Conflicts:
	addons/pos_restaurant/restaurant.py
	addons/pos_restaurant/restaurant_view.xml
2014-11-26 12:18:50 +01:00
Frederic van der Essen 4079c4afa0 [IMP] pos_restaurant: allow re-ordering of the restaurant floors 2014-11-26 12:18:49 +01:00
Frederic van der Essen 52c2f74e21 [IMP] point_of_sale: order payment methods by journal order + a bit of code cleanup 2014-11-26 12:18:49 +01:00
Frederic van der Essen f27bb59189 [IMP] account: add a sequence to account journals to allow reordering. This is used to re-order the point of sale's payment methods
Conflicts:
	addons/account/account.py
2014-11-26 12:18:46 +01:00
Frederic van der Essen 5130f5b9ed [FIX] barcodes: some small fixes in the default barcode patterns 2014-11-26 12:12:01 +01:00
Aaron Bohy f486594c1a [FIX] account_anglo_saxon (test): invoice_state defined in the stock_move and in the stock.picking in tests 2014-11-26 12:12:01 +01:00
Aaron Bohy 84b0d99a63 [FIX] stock: barcode_nomenclature_id field on stock.picking.type instead of stock.picking 2014-11-26 12:12:00 +01:00
Aaron Bohy c90ff19fb4 [FIX] account_anglo_saxon (test): invoice_state defined in the stock_move and not in the stock.picking in tests 2014-11-26 12:12:00 +01:00
Frederic van der Essen 2e60044f80 [FIX] pos_restaurant: remove console.log 2014-11-26 12:11:59 +01:00
Aaron Bohy 58fb939436 [FIX] stock, point_of_sale: required='True' replaced by required=True in barcode_nomenclature_id field definition and _get_default_nomenclature function refactored
Conflicts:
	addons/point_of_sale/point_of_sale.py
2014-11-26 12:11:59 +01:00
Aaron Bohy d6ea949993 [DOC]: barcodes: documentation 2014-11-26 12:11:58 +01:00
Frederic van der Essen 21b1cc3f89 [FIX] point_of_sale: only load cashier belonging to the pos's company, cashier without PINs could not be set
Conflicts:
	addons/point_of_sale/static/src/js/models.js
2014-11-26 12:11:58 +01:00
Frederic van der Essen 18f698c952 [FIX] point_of_sale: fix crash when scanning a cashier badge
Conflicts:
	addons/point_of_sale/static/src/js/screens.js
2014-11-26 12:11:57 +01:00
Frederic van der Essen 301ba1b4e4 [IMP] pos_restaurant: add table information to the bill and the payment receipt 2014-11-26 12:11:57 +01:00
Frederic van der Essen 7f40375f6b [IMP] pos_restaurant: improve the kitchen receipts based on customer feedback : Put the quantities ont the left, Add the the time, and make the table name more legible 2014-11-26 12:11:56 +01:00
Frederic van der Essen 91ebdd714e [FIX] point_of_sale: fix crash on customer barcode scan 2014-11-26 12:11:56 +01:00
Aaron Bohy d4680cc4fe [FIX] barcodes: added the web dependency to prevent web.assets.backend not found error 2014-11-26 12:11:55 +01:00
Aaron Bohy dbcc93154f [FIX] barcodes: parse_barcode functions in PY and JS commented 2014-11-26 12:11:55 +01:00
Aaron Bohy 658f310223 [IMP] barcodes: more specific ValidationError messages in pattern constraint 2014-11-26 12:11:54 +01:00
Aaron Bohy 0d9a1226b0 [IMP] point_of_sale: Weighted Barcode rule removed from PoS data since already loaded in WMS 2014-11-26 12:11:54 +01:00