Commit Graph
102042 Commits
Author SHA1 Message Date
Rohan Patel 68863d101e [MOV] website_twitter: restructured module files 2016-04-07 14:18:05 +02:00
Mansi Trivedi 977d1acc7c [IMP] sale_stock,delivery: Various imp on delivery slips and picking reports
ON THE DELIVERY SLIP : 

1. CUSTOMER REFERENCE
- If a customer reference is filled in the SO, on the delivery slip, under
  Customer Address, add a section Customer Reference :
- Display every customer information in the header

2. SO NUMBER 
- Display the SO reference under the origin instead on the picking type name.
  Do not display it if unset

3. LOCATIONS AND STATUS
- remove the columns locations and status

4. ORDERED QUANTITY
- add a column (between product and quantity) named Ordered Quantity. It
  contains the quantity of the initial demand. Rename Quantity into
  Delivered Quantity

5. BACKORDER
- If the delivery is a backorder, add the string : This shipment is a backorder
  of "stock.picking.name".
- If a backorder has been created, add the string  : All items couldn't be shipped,
  the remaining ones will be shipped as soon as they become available.
- If it is a backorder and another backorder has been created, both strings should
  be printed.

6. SCHEDULE DATE
- Should be the date when the delivery order is validated.
- Rename Scheduled Date into "Date" 
    - If the DO is not yet validated, display the scheduled date.
    - If the DO is validated : display the date it was validated.

7. WEIGHT
- Add the unit of measure after the weight value
- Display only if set

8. CARRIER
- Display only if set

9. LOT/SERIAL NUMBERS
- Keep the header of the column + rename it into Serial Number / Lot

10. CUSTOMER/CONTACT ADDRESS
- Should be displayed on the right, keep only minimal information: Customer name,
  phone number

ON THE PICKING REPORT
- picking: https://drive.google.com/file/d/0Bx4JWs1efCreX1FrZUhaZDEtblU/view?usp=drivesdk
- form: https://drive.google.com/a/openerp.com/file/d/0B5BDHVRYo-q5X3VGVWI1aThWcWM/view?usp=drivesdk
2016-04-07 14:06:14 +02:00
Foram Shah fa3df7b9df [IMP] hr_expense: make group-by status a default 2016-04-07 13:39:35 +02:00
Nicolas Lempereur f54d760a69 [FIX] crm: add needed fields for Activities Analysis
The two fields used in the filter Lost were not available on the
crm.activity.report model.

closes #11623
opw-673533

note: in 9.0..saas-10 the filter was removed with 70ba0e9
2016-04-07 11:41:02 +02:00
Nicolas Martinelli 9f532ed22d [IMP] web_tip: dead code
opw-673946
2016-04-07 11:12:34 +02:00
Gaurav Panchal c466c12248 [MIG] product_visible_discount : migrate to new api 2016-04-07 10:44:39 +02:00
Gaurav Panchal 130e878469 [MOV] product_visible_discount : split a file by models 2016-04-07 10:44:39 +02:00
Gaurav Panchal a941bcd8d2 [MOV] product_visible_discount : reorganized module file structure 2016-04-07 10:44:38 +02:00
Yannick Tivisse 536dbc50db [IMP] account,sale,purchase,stock: Add groups to activate warnings 2016-04-07 10:08:20 +02:00
Yannick Tivisse 78e0313f3e [MOV] stock: Move stock part from warning module 2016-04-07 10:08:19 +02:00
Yannick Tivisse 91163236ca [MOV] sale: move sale part from warning module 2016-04-07 10:08:19 +02:00
Yannick Tivisse d143314442 [MOV] purchase: move purchase part from warning module 2016-04-07 10:08:19 +02:00
Yannick Tivisse df38cf9502 [MOV] account: Move account part from warning module 2016-04-07 10:08:19 +02:00
Yannick Tivisse 5a52c1bcfb [REM] warning: Remove module 2016-04-07 10:08:19 +02:00
Cedric Snauwaert 841f208b22 [REF] base_import: simplify import by reducing choice for the columns based on heuristic
automatically try to detect type of columns from the first 10 rows of file:
If column only contains integer, only show, int, float, monetary, m2o, o2m, m2m fields in wizard
If column only contains true/false values, only show boolean fields in wizard
etc

add an advanced mode which is the same as previous import (show all fields)

Support different date format and float value with currency as well as float value with parenthesis to reprensent negative value.
2016-04-07 09:42:23 +02:00
Mitali Patel 3f82240614 [FIX] base: undefined variable
Forgotten during migration of base/ir/* to new API.
Was preventing to uninstall a module.
opw-673801
2016-04-07 08:36:56 +02:00
Srushti Patel 71fae64534 [MIG] product_expiry: migration to new api
Thanks rgo-odoo for the _get_dates method and the removal of the context abuse.
2016-04-06 16:43:44 +02:00
Srushti Patel 86033b0f93 [MOV] product_expiry: split file product_expiry.py 2016-04-06 16:43:44 +02:00
Srushti Patel 1119681de0 [MOV] product_expiry: reorganizing the directory structure 2016-04-06 16:43:44 +02:00
Ravi Gadhia 4c2cda3fd8 [IMP] website_sale_digital: almost a new api migration
Ok it was already written in new api, so what is the purpose of this commit?
Just a nice spring code cleaning.

Closes #10941
2016-04-06 16:37:54 +02:00
Martin Trigaux aa555099f3 [MERGE] website_sale_options: migration to the new API 2016-04-06 16:09:07 +02:00
Ravi Gadhia 008494e977 [IMP] website_sale_options: new api migration 2016-04-06 16:07:51 +02:00
Martin Trigaux 1a6970b1ed [IMP] website_sale_options: modal context cleanup
Do not make a global context but only set it where it's useful, to fetch the
price of the product based on the quantity (pricelist)
2016-04-06 16:06:48 +02:00
Christophe Simonis 962de5230b [FIX] website_sale: do not use undefined variable
Error introduced by previous forward-port
2016-04-05 22:44:33 +02:00
Christophe Simonis 658989868c [MERGE] forward port of branch saas-10 up to aa6ebd1 2016-04-05 20:08:50 +02:00
Christophe Simonis aa6ebd146a [MERGE] forward port of branch saas-9 up to 549daaa 2016-04-05 19:27:34 +02:00
Christophe Simonis 549daaaba4 [MERGE] forward port of branch saas-7 up to 3e639f4 2016-04-05 19:08:01 +02:00
Christophe Simonis 3e639f4bea [MERGE] forward port of branch 9.0 up to 9e2de9b 2016-04-05 19:06:25 +02:00
Christophe Simonis 9e2de9b1ae [MERGE] forward port of branch saas-6 up to 7f5ca1d 2016-04-05 19:04:36 +02:00
Christophe Simonis 7f5ca1d94a [MERGE] forward port of branch 8.0 up to ceb87b7 2016-04-05 18:59:00 +02:00
Julien Legros ec444bf091 [FIX] calendar: mail_thread overrides
Since calendar_event overrides read to handle virtual ids, we need to do
the same for mail_thread _get_message_unread and _get_message_needaction
methods. Otherwise virtual ids may end up in the cache and browsing them
would fail.
2016-04-05 18:19:52 +02:00
Martin Trigaux 44c0245a6a [FIX] base_import: example files
SQL dump:
- Recent export with -O to remove owners
- correct poor Ramzy name

purchase order CSV:
- use correct column names
- remove destination and pricelist columns
- first file should not contain order lines
- second file should be same as first + lines
2016-04-05 13:57:44 +02:00
Xavier Morel ceb87b78f0 [REV] usage of m2m listview for o2m
Turns out to break way more than it fixes.
2016-04-05 11:32:59 +02:00
pgu-odoo f0c2585536 [MIG] sale_order_dates: converted yml test to python 2016-04-05 10:09:54 +02:00
pgu-odoo c1cfbf6436 [MIG] sale_order_dates:mMigrated to new api 2016-04-05 10:09:19 +02:00
pgu-odoo 520d9658a7 [REF] sale_order_dates: rearranged files according to new API file structure 2016-04-05 10:08:39 +02:00
Joren Van Onder 7318ab6710 [FIX] web_calendar: fix read_slice race condition
When quickly changing the range in the calendar view, multiple
asynchronous read_slice requests will be launched. The read_slice
returns the records and sets the ids property on the dataset according
to a set domain, context etc.

This creates a race condition because although the read_slice calls will
be launched in the correct order, there is no guarantee that they will
resolve in the correct order. In practice issues will occur quite
frequently on a slower connection and with a big read followed by a
small read. The big read that matches a lot of records will be slower to
complete than the small read which will result in it resolving later
than the small read. This causes the dataset to not be in sync with the
rest of the view. When you click on an affected event everything will
look fine in the popup, but when clicking on edit the form view will
show a new event instead. The reason for this is that switching to the
form view requires a correct dataset.index, which is set by
dataset.get_id_index(id) which won't exist.

A potential way of fixing this would be guaranteeing the order of
read_slice calls by only allowing one of them to be active at a
time. This would not be ideal because you could end up with a long chain
of read_slice calls when changing the range fast on a slow
connection. In theory the UI would have to block as well then.

Instead of that, we will simply ignore responses to out-of-date
requests. This is done by manually resetting the ids property of the
dataset to its previous value when we detect the range of the calendar
has changed since the read_slice call was launched.

opw-673425
2016-04-05 09:29:53 +02:00
Jeremy Kersten 3373af527c [FIX] sales_team: allow to pass False as default saleteam
Before this fix, sales_team.team_sales_department was always used ignoring default_ in context.
Now we check before in context if a default sale team is forced.
We allow False as saleteam, eg you assign a lead to a employee who is not a saleman.

Now we check that the default saleteam sales_team.team_sales_department is configured to use_leads
to avoid undefined saleteam in the front end.
2016-04-04 17:21:14 +02:00
Martin Trigaux 33c094d218 [ADD] payment_stripe
https://stripe.com/docs/api

Closes #11587
2016-04-04 17:09:08 +02:00
Damien Bouvy 8ae6406a37 [FIX] account: allow forcing company when fetching fpos
The code to fetch the fiscal position of a partner uses ACLs and
ir_rules to select the correct ones, but when calling the function
as admin, multi-company rules flight out the window.

By allowing to force a company in the context, we can get the fpos
as the admin from the pov of any company.
2016-04-04 15:37:22 +02:00
Alexandre Fayolle cc60504bff [FIX] base: only run postinstall tests for installed or updated modules
Uninstalled modules are skipped with the filtering on the state.
Fixes #9768, Closes #11378
2016-04-04 14:32:20 +02:00
Nicolas Martinelli a0e04afe62 [FIX] purchase: supplier currency
When a supplier is added, the potential change of currency should be
taken into account.

opw-672862
2016-04-04 14:17:41 +02:00
Nicolas Martinelli 7c410c7c12 [FIX] purchase: do not add contact in suppliers
When the PO is related to a contact of a company, the current behavior
is to add the contact in the list of suppliers of the product. However,
there is little chance that this is actually the desired behavior.
Indeed, in most of the cases, this will simply add a lot of useless
suppliers on a product.

The fix is to add the parent company of the contact in the list of
vendors, since `_select_seller` wil also search in the parent companies
to get a purchase price.

opw-672862
2016-04-04 14:17:41 +02:00
Aaron Bohy 8b596e8e1b [FIX] packaging: wrong version in release.py
introduced by forward-port, breaking nightly builds of master.
2016-04-04 13:53:10 +02:00
Géry Debongnie 3d4954b88f [FIX] web: some float fields silently ignores their changes
We have an interesting problem when editing all custom float fields and all
fields with no explicit digit attributes: the propertiesmixin tries to
check if the number was changed, according to their declared precision.
But for these specific fields, it does not find a digit attribute, and
defaults to 2.  Then, it makes sure that the changes are ignored if the
new value is too close to the old value (with 2 digits precision)

For example, if the user sets the value to 1.234, then save, then change
it to 1.235, then save, the form view will display 1.234 and totally
ignore the change.

Not that handling the digit precision is done in the propertiesmixin and
in the field float widget.  Also, they do different things, and in some
case, may not be the same.   All this logic should be moved to the
fieldfloat widget.
2016-04-04 12:18:17 +02:00
Aaron Bohy 7014579d22 [FIX] hr_attendance: display of attendance button in systray
In the enterprise client, in mobile, the buttons in the systray are 'display:
inline-block'. This rule was overriden in the case of the attendance button
by a 'this.$el.show()', which changed the display to 'block'. This rev. uses
'do_show' and 'do_hide' functions of widgets instead, as they don't change the
display.
2016-04-04 10:52:23 +02:00
Yannick Tivisse 8db497185d [IMP] stock_account: Hide 'Account Stock Properties' if 'Perpetual' valuation
Because if you set the inventory valuation as manual you don't create
accounting entries automatically when stock moves are confirmed.
2016-04-04 09:59:24 +02:00
Fabien Pinckaers e64b84ed9a [IMP] payment amount in payment.transaction 2016-04-03 16:15:34 -07:00
Fabien Pinckaers 9755842538 [IMP] order of fields in invoice form 2016-04-03 16:12:58 -07:00
Fabien Pinckaers 765d68b41f [IMP] better order of fields in invoice form 2016-04-03 16:11:48 -07:00