Commit Graph

70240 Commits

Author SHA1 Message Date
Turkesh Patel (Open ERP) 2e4b5e8130 [MRG] add default values for currency in all l10n_ modules lp:~openerp-dev/openobject-addons/7.0-coa-wizard-data-cod
bzr revid: tpa@tinyerp.com-20130909053941-prtpliol6yeaw09g
2013-09-09 11:09:41 +05:30
Turkesh Patel (Open ERP) b8c1905e7b [MRG] merge with lp:openobject-addons/7.0
bzr revid: tpa@tinyerp.com-20130909053300-bfsxzkyk600fg473
2013-09-09 11:03:00 +05:30
Chirag Dodiya (OpenERP Trainee) a5de1c3230 [IMP]Improved currency as per country data file
bzr revid: chiragdd7@gmail.com-20130909052054-zkxbfhh6xcrzhprn
2013-09-09 10:50:54 +05:30
Launchpad Translations on behalf of openerp 1b3e67fc72 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130908050306-6ff4thsz8hd67x3z
bzr revid: launchpad_translations_on_behalf_of_openerp-20130909045922-jrx0xd00p3nszc9r
2013-09-09 04:59:22 +00:00
Launchpad Translations on behalf of openerp d8bd4d3652 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130907054014-6wekhttz1qczae31
bzr revid: launchpad_translations_on_behalf_of_openerp-20130908050234-ym1z7eoff4sxcfgf
2013-09-08 05:02:34 +00:00
Olivier Dony 54a8cbb7cd [MERGE] product: support string values for context `pricelist` key when computing prices
As of v7 search views will replace the value of any `self`
      literal in a @context attribute by the name of the
      record, whereas it used to be its ID.
      This means that the `Pricelist` filter used to display
      the product list with a specific pricelist would not
      work anymore.
      
      The fix requires a rather hackish name_search()
      override for product.pricelist because the display
      name of pricelists includes their currency, while
      that could be a valid name for a pricelist too.
      
      To avoid side-effects the name_search() override
      only picks up the special case used by the
      product.product._product_price() method when it
      tries to apply the context pricelist, that is
      with operator explicitly set to `=` and no extra
      domain `args`.

      Also avoid useless warning in log by disabling the actual
      filtering for the dummy pricelist_id field, whose
      only purpose is to alter the context.

      Finally, add a default _order for pricelists that is
      a bit more intuitive than the default sort by `id`.
      An explicit _order was required for the application of
      the `limit` in pure SQL, and using `name` seems slightly
      better than `id`.

lp bug: https://launchpad.net/bugs/1178835 fixed

bzr revid: odo@openerp.com-20130906161422-0huf2uwjg42shdqp
2013-09-06 18:14:22 +02:00
Olivier Dony 6de0051315 [FIX] product: support string values for context `pricelist` key when computing prices
As of v7 search views will replace the value of any `self`
      literal in a @context attribute by the name of the
      record, whereas it used to be its ID.
      This means that the `Pricelist` filter used to display
      the product list with a specific pricelist would not
      work anymore.
      
      The fix requires a rather hackish name_search()
      override for product.pricelist because the display
      name of pricelists includes their currency, while
      that could be a valid name for a pricelist too.
      
      To avoid side-effects the name_search() override
      only picks up the special case used by the
      product.product._product_price() method when it
      tries to apply the context pricelist, that is
      with operator explicitly set to `=` and no extra
      domain `args`.

lp bug: https://launchpad.net/bugs/1178835 fixed

bzr revid: odo@openerp.com-20130906155047-7dmozy2jpe1ca1p2
2013-09-06 17:50:47 +02:00
Martin Trigaux 8c2b5d2316 [FIX] l10n_be: VAT reports needs to have explicitly two digits, rounded values not accepted (sigh)
bzr revid: mat@openerp.com-20130906150835-zwg7zum91d713154
2013-09-06 17:08:35 +02:00
Olivier Dony fe15a49f0e [MERGE] res.partner: current name_search() implementation tends to skip a few valid results during early autocompletion - mitigation attempt
The main reason for the semi-random behavior
observed during auto-completion is the
missing ORDER BY clause in the pre-filtering
SQL query.

The ORDER BY clause is expensive but inevitable
if we want to apply a correct LIMIT, otherwise
we would return random `limit` results among
all the possible matches.

The current SQL query seems convoluted due
to the duplicated CASE clause but it
performs slightly better than the equivalent
CTE-based (WITH...) query, so it was preferred.


There is still a chance of returning too
few results due to double limit application,
as further discussed in bug 1203727

lp bug: https://launchpad.net/bugs/1203727 fixed

bzr revid: odo@openerp.com-20130906134950-gi0szic3uw3onyuv
2013-09-06 15:49:50 +02:00
Chirag Dodiya (OpenERP Trainee) 78aec83d2f [IMP] Improved code as per coding convention
bzr revid: chiragdd7@gmail.com-20130906125557-3gid1ewa4qjmixsn
2013-09-06 18:25:57 +05:30
Chirag Dodiya (OpenERP Trainee) 7d4eec0418 [IMP] Improved data for account chart template
bzr revid: chiragdd7@gmail.com-20130906120536-y31ix9g9s8e00kqc
2013-09-06 17:35:36 +05:30
Turkesh Patel (Open ERP) bf1649ff74 [ADD] remove currency_id logic and set currency_id based on ir.values
bzr revid: tpa@tinyerp.com-20130906090052-mr2hcurvsu573pm1
2013-09-06 14:30:52 +05:30
Launchpad Translations on behalf of openerp 7de48c9694 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130906060710-1qwkxqo16uzz2p0c
bzr revid: launchpad_translations_on_behalf_of_openerp-20130905051828-i1zdq38yhq6s25t3
bzr revid: launchpad_translations_on_behalf_of_openerp-20130906060727-odhvfd4fhco9svya
bzr revid: launchpad_translations_on_behalf_of_openerp-20130830052505-e346k0xxesqii63n
bzr revid: launchpad_translations_on_behalf_of_openerp-20130902053728-uro81onc51apjhyk
bzr revid: launchpad_translations_on_behalf_of_openerp-20130904050346-hhqkp2lcpiuhxrvo
bzr revid: launchpad_translations_on_behalf_of_openerp-20130905051839-5lbu7tnnilowbws2
bzr revid: launchpad_translations_on_behalf_of_openerp-20130906060737-4r2sin3a91544c6s
2013-09-06 06:07:37 +00:00
Olivier Dony 95b7d5bcaf [FIX] res.partner: current name_search() implementation tends to skip a few valid results during early autocompletion - mitigation attempt
The main reason for the semi-random behavior
observed during auto-completion is the
missing ORDER BY clause in the pre-filtering
SQL query.

The ORDER BY clause is expensive but inevitable
if we want to apply a correct LIMIT, otherwise
we would return random `limit` results among
all the possible matches.

The current SQL query seems convoluted due
to the duplicated CASE clause but it
performs slightly better than the equivalent
CTE-based (WITH...) query, so it was preferred.


There is still a chance of returning too
few results due to double limit application,
as further discussed in bug 1203727

lp bug: https://launchpad.net/bugs/1203727 fixed

bzr revid: odo@openerp.com-20130905170251-x47w1zrm43d0k9wb
2013-09-05 19:02:51 +02:00
Olivier Dony bb67905bc5 [DOC] module dev: description of view attributes @edit|@create|@delete, courtesy of Alexande Fayolle (Camptopcamp)
bzr revid: odo@openerp.com-20130905091841-ncn16pmcck54tj76
2013-09-05 11:18:41 +02:00
Launchpad Translations on behalf of openerp 1d02a933e3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130905051758-jl50461zfgvthh7j
2013-09-05 05:17:58 +00:00
Martin Trigaux d60c0be37c [FIX] point_of_sale: pass reference of customer from pos to order
bzr revid: mat@openerp.com-20130904140628-4p9xnedoh3p2xgcw
2013-09-04 16:06:28 +02:00
alexandre.fayolle@camptocamp.com cebc744117 [IMP] update the documentation patch
add all supported attributes
add list of supported views
add example use case
add information about the default value of these attributes

bzr revid: alexandre.fayolle@camptocamp.com-20130904125842-wza567qnuc2m9gdu
2013-09-04 14:58:42 +02:00
Olivier Dony 04560e356e [FIX] product: avoid triggering warning about pricelist_id being non-searchable
It is a dummy file that is not meant to be used
for filtering, but only for setting the context.

bzr revid: odo@openerp.com-20130904123949-z1zfoxucspx7avwv
2013-09-04 14:39:49 +02:00
Christophe Simonis d30b756c1e [FIX] project_mrp: correct process to not depends of indirect installation of sale_stock
bzr revid: chs@openerp.com-20130904085533-ehpqffbvkb9wd91r
2013-09-04 10:55:33 +02:00
Launchpad Translations on behalf of openerp 3ef8dbeac3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130904050344-pjsmx05h22n09162
2013-09-04 05:03:44 +00:00
Olivier Dony 1b004bce32 [FIX] ir.filters: deduplicate redundant ACL on ir.filters
By default everybody should be able to read and modify
filters, and this is coupled with a global ir.rule that
only permits viewing and touching global filters and
owned filters.

bzr revid: odo@openerp.com-20130903172606-7vn0z2gz71urfdtz
2013-09-03 19:26:06 +02:00
Launchpad Translations on behalf of openerp 6186327ac5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130830052438-jvtrussyel6pvhct
bzr revid: launchpad_translations_on_behalf_of_openerp-20130831052818-otlyca13ztra51hb
bzr revid: launchpad_translations_on_behalf_of_openerp-20130904050324-d39zv23qepnx3bzm
2013-09-04 05:03:24 +00:00
Olivier Dony 1d1b66bdee [FIX] hr_expense: duplicate copy() method corrected, courtesy of Yannick Vaucher, Camptocamp
lp bug: https://launchpad.net/bugs/1219691 fixed

bzr revid: odo@openerp.com-20130903170433-u6f66lcgjp4w57th
2013-09-03 19:04:33 +02:00
Martin Trigaux 9530012d09 [IMP] account: set default value on account invoice line and fallback on id for ordering if no sequence is available
bzr revid: mat@openerp.com-20130903160108-gc7hnhdmzx7rg6tm
2013-09-03 18:01:08 +02:00
Martin Trigaux 2130335727 [FIX] account: order on invoice lines based on sequence number (for complains, please refer to dle)
bzr revid: mat@openerp.com-20130903125900-wl1r1etx9pyhe185
2013-09-03 14:59:00 +02:00
Martin Trigaux cfd7130b74 [MERGE] various changes
account: move button on analytic chart wizard to bottom
account: use button Target Moves in financial report views (bug lp:1078146)
project: set duplicated task in default stage instead of current

bzr revid: mat@openerp.com-20130903093640-7jfbmhc441pnrz7y
2013-09-03 11:36:40 +02:00
Martin Trigaux 39ccb90b91 [IMP] account: pass target_move in common report instead of only financial report
bzr revid: mat@openerp.com-20130903092732-4zs6g63jgo0jjayi
2013-09-03 11:27:32 +02:00
Turkesh Patel (Open ERP) 3bbe2330af [IMP] improved code to set default accounts in l10n_us,l10n_ma and added new currency_id field to set currency based on select coa, fixed installation time error of l10n_ve
bzr revid: tpa@tinyerp.com-20130903070707-7ib7qi5yubhr11u8
2013-09-03 12:37:07 +05:30
Launchpad Translations on behalf of openerp 043a93132d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130903060845-m8b568p0wk2zcy20
2013-09-03 06:08:45 +00:00
Denis Ledoux 641f19aedf [FIX]account: field partner_id, define store param to handle updates of partner changes in entries
bzr revid: dle@openerp.com-20130902124648-340vz90i1ng1zh01
2013-09-02 14:46:48 +02:00
Martin Trigaux dbe9e41257 [IMP] account: unify wizard view for chart of analytic accounts with other wizards
bzr revid: mat@openerp.com-20130902121412-m6ovn2yt4bngbfns
2013-09-02 14:14:12 +02:00
Martin Trigaux 56bb110c46 [FIX] project: set duplicated task in default stage (opw #589907)
bzr revid: mat@openerp.com-20130902121017-xjtnuhf9llqpy7ch
2013-09-02 14:10:17 +02:00
Martin Trigaux 108936286e [FIX] account: use field taget_move for generation of account financial report (all entires or all posted entries)
lp bug: https://launchpad.net/bugs/1078146 fixed
lp bug: https://launchpad.net/bugs/1135349 fixed

bzr revid: mat@openerp.com-20130902120450-k0gqnclqhgq8nbe6
2013-09-02 14:04:50 +02:00
Yannick Vaucher 90999af991 [FIX] hr_expense - merge 2 declarations of method copy for hr_expense_expense
lp bug: https://launchpad.net/bugs/1219691 fixed

bzr revid: yannick.vaucher@camptocamp.com-20130902093234-fyfytwjzexnzc9s3
2013-09-02 11:32:34 +02:00
Martin Trigaux b23587cce2 [FIX] base_calendar: avoid duplication of event on invitation acceptance (opw 586763)
bzr revid: mat@openerp.com-20130902082742-gm422qo1qzev9r35
2013-09-02 10:27:42 +02:00
Martin Trigaux 5739cac5fb [FIX] membership: set priority on search view to avoid getting it for other modules
bzr revid: mat@openerp.com-20130902075012-y6o3wjgz9qhqm837
2013-09-02 09:50:12 +02:00
alexandre.fayolle@camptocamp.com ad1ed63670 [IMP] document create/delete=false in view definitions
lp bug: https://launchpad.net/bugs/1219655 fixed

bzr revid: alexandre.fayolle@camptocamp.com-20130902062641-f8hzfnfo7ci2b9jy
2013-09-02 08:26:41 +02:00
Launchpad Translations on behalf of openerp fb49bb4fb3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130831052828-a5n010v6fokrjpfc
bzr revid: launchpad_translations_on_behalf_of_openerp-20130901045249-hckidxuc7v6109fp
2013-09-01 04:52:49 +00:00
Denis Ledoux 9979078aa8 [FIX]mrp: _bom_explode, rounding used must be max(bom.product_rounding, bom.product_uom.rounding), in order to avoid asking 0.5 Unit
bzr revid: dle@openerp.com-20130830125155-1vedifnupu2xvth7
2013-08-30 14:51:55 +02:00
Denis Ledoux 5018ff5a49 [FIX]delivery: sxw report did not match the rml report
bzr revid: dle@openerp.com-20130830091509-xj82mh1bk3zj08yz
2013-08-30 11:15:09 +02:00
Launchpad Translations on behalf of openerp 7a75fa6ef5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130830052500-0164t59q0z42znde
2013-08-30 05:25:00 +00:00
Martin Trigaux 78c82fc0c6 [FIX] tree views: rename variable parent-id to avoid conflicts with record fields name (eg: account.account)
bzr revid: mat@openerp.com-20130829124448-xr89v0gsuoukqhao
2013-08-29 14:44:48 +02:00
Olivier Dony cbad29493e [FIX] purchase: res.partner.copy() must properly return the super() call's result
lp bug: https://launchpad.net/bugs/1189966 fixed

bzr revid: odo@openerp.com-20130829095240-19ka4u1ikgd6ti5n
2013-08-29 11:52:40 +02:00
Launchpad Translations on behalf of openerp 4e77cb6d26 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130829052759-jx9b15a0ss1lxapn
2013-08-29 05:27:59 +00:00
Denis Ledoux 18193da769 [FIX]account: in wizard of refund, replace type(line.reconcile_id) != osv.orm.browse_null with simply if line.reconcile_id: + imp of the following line
bzr revid: dle@openerp.com-20130828155815-0i8uoez4guh0i85x
2013-08-28 17:58:15 +02:00
Martin Trigaux 33001ec5ff [FIX] stock: post messages on stock.pciking instead of stock.picking.in/out to be able to display messages on the form
This will only display newly posted messages, not already existing.
To do so apply the following SQL command:
UPDATE mail_message SET model = 'stock.picking' WHERE model = 'stock.picking.in' OR model = 'stock.picking.out';

lp bug: https://launchpad.net/bugs/1197169 fixed

bzr revid: mat@openerp.com-20130828151434-5nu7o0ybguh86w6f
2013-08-28 17:14:34 +02:00
Martin Trigaux cf45a9fa01 [FIX] project: correct name_search for analytic accounts, use args, name, limit and context
bzr revid: mat@openerp.com-20130828141123-ws38n7353f717not
2013-08-28 16:11:23 +02:00
Denis Ledoux 57818bb779 [FIX]res_config: in _install_modules, result returned by button_immediate_install must be returned, in order to launch the action if there is one. TODO fix,at the moment, if there are missing modules, this return statement prevent their installation
bzr revid: dle@openerp.com-20130828125209-5jqwjqhrl17x7kpa
2013-08-28 14:52:09 +02:00
Martin Trigaux 3b549486e9 [FIX] pos: correctly link refund order to a current session and set to today's date (opw 589810)
lp bug: https://launchpad.net/bugs/1123575 fixed

bzr revid: mat@openerp.com-20130828123940-ik9gvx7flywia0oe
2013-08-28 14:39:40 +02:00