Commit Graph

198 Commits

Author SHA1 Message Date
Mantavya Gajjar 6a62b4ddf3 Small change
01:44:08  IST) Fabien (fp): Some notes: I think that when you put groups on the view, it's to hide the field, not to put it as readonly.

bzr revid: mga@tinyerp.com-74657c71138c95a49de7b5734d76c1b72b477766
2008-03-26 08:06:43 +00:00
Mantavya Gajjar 5c6316918b Small change
01:44:08  IST) Fabien (fp): Some notes: I think that when you put groups on the view, it's to hide the field, not to put it as readonly.

bzr revid: mga@tinyerp.com-77038d8c6fb145ffdc4599bd99c69eba711149df
2008-03-26 08:06:25 +00:00
Mantavya Gajjar 4ee1ffc4d0 Small change
01:44:08  IST) Fabien (fp): Some notes: I think that when you put groups on the view, it's to hide the field, not to put it as readonly.

bzr revid: mga@tinyerp.com-78252a0a6619393ed5fabb79219689dc32172f4a
2008-03-26 08:05:50 +00:00
Mantavya Gajjar 648c344cdf optimised the code for button signal check for the role
and also check role hierarchy sing inbuilt function

bzr revid: mga@tinyerp.com-b4b8e430f8339a0a5e5dce4ee593d1bf31cfb31a
2008-03-25 08:47:26 +00:00
Mantavya Gajjar 4a57a8978c implement to check the buttons which is related to the workflow, and make buttons enable disable in view according to the user roles assocation
bzr revid: mga@tinyerp.com-19e712f0d8f946e22fbeba6acd7695ca4fa60abb
2008-03-25 08:31:08 +00:00
Mantavya Gajjar abb08dd638 Implement group attribute on fields element
<field name="name" select="1" groups="base.group_admin,base.group_user"/>

bzr revid: mga@tinyerp.com-10c9ffa9e64414f435c9736eea795a59c8539aa4
2008-03-25 07:36:42 +00:00
Fabien Pinckaers 7e294cadad small bugfix for better error message when import crash
bzr revid: fp@tinyerp.com-fc168b62b0815bd5716855996c38be6d8341145a
2008-03-19 20:43:48 +00:00
Amit Mendapara 15102c89ee improved default calendar view (colors, date_stop, date_delay attributes).
bzr revid: ame@tinyerp.com-6a6eb44971d472e48032b96e4ca077713f2cedd9
2008-03-03 09:52:43 +00:00
Fabien Pinckaers 7fe8f9916b Modifs
bzr revid: fp@tinyerp.com-b32d0b73280684d12c458e97f5b3b45e98c7bb0f
2008-02-24 12:34:49 +00:00
ced a3c9ba0b90 Fix max_stack_depth by adding internal inselect clause
bzr revid: ced-56ab35cd89c69aa51a1e84088110d66c92c14025
2008-01-29 15:05:53 +00:00
ced 0373f7153a Fix enconding 'utf-8' of xml view
bzr revid: ced-60ae406f9459f00a5e541741db25163cd2aeee81
2008-01-07 15:14:50 +00:00
ced 8657fec59e Fix ondelete on many2one
Now change on the value of many2one are updated
Fix difference in base module between sql definition and ORM object

bzr revid: ced-8eb2888f04437d5e9edae98c9401d726f4122d47
2007-12-31 13:31:38 +00:00
Fabien Pinckaers 82d970f8ef Added comment line
bzr revid: fp@tinyerp.com-c2a7376283f63d02b0c228650ed92e51f60a3522
2007-12-27 08:13:33 +00:00
Fabien Pinckaers 58635d041d Accepting XPath queries in view inheritancies
<xpath expr="...." position="after">
		<inherited_view.../>
	</xpath>

bzr revid: fp@tinyerp.com-53035ae03fd39343af57271d2a02570a8f68576c
2007-12-27 08:11:37 +00:00
ced acf7db176c Add update domain on view field by the domain of the action
bzr revid: ced-1a49be0bf2d049cf3f5af457f227e59803309920
2007-12-24 14:45:39 +00:00
ced f02188fee1 Remove lower for test of existing field
bzr revid: ced-c3a00b327f96e6f01d9d2e5a9f2c447bcd0a592a
2007-12-24 14:45:34 +00:00
ced 49d7cae04d Fix max_stack_depth for sql query with 'id in ()' in the orm
bzr revid: ced-e6c36932bc98a10352672caef2ad650393b608e8
2007-12-13 13:39:34 +00:00
ced 3bf8ca4bc4 Add property value in default_get function as it is a default value
bzr revid: ced-749c0bf0b658df3acbae76aaef27627cda2a5ec4
2007-12-12 13:24:37 +00:00
ced 4d3891892c Add search on one2many for list of ids
bzr revid: ced-a47b17426edd6b63655cd56cb9eb0ea1c695cf46
2007-12-06 12:13:58 +00:00
ced 59a83e403b Improve test on field reference for selection value
bzr revid: ced-829e4ae9aa3c83d3958b6b614823ffaa53515c99
2007-11-26 15:46:09 +00:00
ced 0caeaf1d9b Allow to translate en_US language (custom)
- en_US is translatable also
- fix cache on translation
- add view to language
- fix client translation windows

bzr revid: ced-b6ab18eba46eb8e1e8a97ed5afa6797078cec659
2007-11-26 15:46:03 +00:00
ced e3e9e296d8 Fix store on field function that are type of many2one and one2one
bzr revid: ced-d5229ebe4adcb28c71557b4b31582a333de41ada
2007-11-21 06:57:20 +00:00
ced 225740b533 Init variable before use
bzr revid: ced-4de85c31b03618d7d38a5c90ef7a349d1f210840
2007-11-21 06:57:12 +00:00
ced 8696d21603 Fix search count
Do no more use the context as it is propagated to all sub level.

bzr revid: ced-13f9b0188d8acfc312e8dd7ee297e17c1debcda7
2007-11-20 07:30:23 +00:00
Fabien Pinckaers e1bba990d2 Bugfix Default Value on Product
bzr revid: fp@tinyerp.com-a75366485dcf34e51d3de898b6ca88bbd9336e74
2007-11-02 20:37:10 +00:00
ced f259e56778 Fix default values:
- Take all default value not only those for a specific user
- Set transiant correctly to default value window
- Fix default value on many2many
- Put gui.main as default window

bzr revid: ced-55dbc0011ff7a63788309fc51e626ad2d544b67b
2007-10-31 14:14:06 +00:00
ced 4517aea8f0 Rollback transaction if any warning is generated when importing csv data
bzr revid: ced-cd1067e05b5c96b4627dd5ac9b11b06f7ebfae38
2007-10-30 09:06:48 +00:00
ced 5e66ff1d13 Fix default calendar view
bzr revid: ced-c403d900958eda7f9655e61d836fb157623f7e12
2007-10-30 09:05:56 +00:00
ced a874841869 Fix export data for xxx2many with multiple levels
bzr revid: ced-74db768988d45383eec3f70d33c3679b699f40c9
2007-10-25 08:07:39 +00:00
ced 83026c374b Fix default value for xxx2many field
bzr revid: ced-26e51a41e85c662b7f6d8048fa0937b75209b3ab
2007-10-24 13:29:28 +00:00
ced 2040798080 Fix import csv for selection field when keys are integer
bzr revid: ced-08a68c2e5a2be6621617941a1fd473a3f274b7bd
2007-10-24 13:29:25 +00:00
ced e7ac3b5f85 Improve translation
- Translate help text
- Better view of translation
- Fix wizard that import lang

bzr revid: ced-008b5b15580909d32caa00121c0c1c20622c4fd3
2007-10-24 06:13:53 +00:00
ced cf3a4e503b Add warning if not finding many2many relation
bzr revid: ced-db99f423795c79294f5241bc1c11cf8ed78968d3
2007-10-19 12:15:51 +00:00
ced c51ac0093d Fix default value when ids is no more in the DB.
bzr revid: ced-ca2697f795913b8806133c02c73639a901869eaa
2007-10-17 13:49:16 +00:00
ced ffb8d85d0a Fix import data for selection field where selection is a function
bzr revid: ced-8dd3ea98c4f9874cd442505c3e30628ccdd7edb1
2007-10-16 06:27:28 +00:00
ced f89f0138c6 Don't strip \n because python dom doesn't work well
bzr revid: ced-dd80a485474c685e013d52292d40322df58d4e2f
2007-10-08 13:19:42 +00:00
Fabien Pinckaers 21bcadd7f3 Setting _view_look_dom_arch as not private
bzr revid: fp@tinyerp.com-a05c49a6f76c8e335f95f5a44b8ec8909a1d435e
2007-10-07 14:40:56 +00:00
ced e2e9b97fbb Fix typo
bzr revid: ced-375f8bbfe3740b346e6825b948182460145374f9
2007-10-05 13:31:08 +00:00
ced 18809d4016 Remove order_by for search_count
bzr revid: ced-c0bd66604c1c900b94cbacb94f57d35209176727
2007-10-05 13:30:56 +00:00
ced e84b31ca93 Remove old company_id code
bzr revid: ced-0b2732c58b881c5bebcd7f53f48efd95de23ff8b
2007-10-05 05:24:55 +00:00
ced d0d83300a5 Add encondig to xml and remove \n and \t
bzr revid: ced-a179ac742c1657026200e28c684a8548356be624
2007-10-05 05:24:45 +00:00
ced ab8468cf7c Don't change default value
bzr revid: ced-6637bedf617772af38f8ff994b8109e7f1f2a103
2007-10-04 05:59:10 +00:00
ced 9b7ee4ef58 Fix search_count to use search function
bzr revid: ced-8ef2e898671d6f301a19b5141215a84c6fde6bef
2007-10-04 05:58:57 +00:00
Fabien Pinckaers caa1908d54 Allows to link many2many on views
bzr revid: fp@tinyerp.com-63031530aabce50fbdb0c84fc7016b238466b60b
2007-09-30 18:16:41 +00:00
ced 65985ac3d1 Don't load the sxw by default in the DB
- New field function that return the content of the report that comes from
 the DB if it exist otherwise take it in the filesystem.
- In report, use the object insteaf of sql query -> can change the report depending of the context :-)
- Remove previous sxw tag in the xml files. This tag must no more used.

bzr revid: ced-969d06ca6051e973f017e37992778f058794671b
2007-09-07 14:02:45 +00:00
ced f41ea079a0 Check if field is on the object before checked if it is an selection
bzr revid: ced-0cb4862be7a5602527296e060750b5ea66bcb19b
2007-09-07 14:02:32 +00:00
ced 9b3131cae1 Add integrity on fields that are selections
bzr revid: ced-f106c9b085ebef6e5875e115540a30bb9daaf014
2007-09-06 14:12:23 +00:00
ced a66d67987e Allow to set integer field as _rec_name
bzr revid: ced-1c85419c92efafaca3fde44e939736016879301d
2007-08-31 13:47:29 +00:00
ced 1ba9cca6c1 Use the parent variable for check_recursion
bzr revid: ced-eb95870f779af23f873f54f6237a7145bd535774
2007-08-29 04:47:53 +00:00
ced 85b8870c42 Fix search on many2many, if there is no record matching
bzr revid: ced-3a1c70a85fa449dbe606e293a35fbc71e7e01d4d
2007-08-29 04:47:50 +00:00
ced 27c1378575 Browse function must return a browse_null when calling with wrong id
bzr revid: ced-dad6bf469c6753c765ecca277d6b018cd776324d
2007-08-29 04:47:33 +00:00
ced 4a3340a3d8 Fix import csv when there is id and many one2many
bzr revid: ced-24ea3f412755abe792ff6a51d04a402537f5455e
2007-08-23 14:07:19 +00:00
ced 4b28e2dc4d Coding declared on top of file was incorrect.
bzr revid: ced-d40f4ebca566275bb4a5241686245d5c0b0ece34
2007-08-23 14:07:16 +00:00
Fabien Pinckaers 4643654e65 Bugfix when droping / recreating db of the same name
Better es_ES translation
Script to test all installs

bzr revid: fp@tinyerp.com-9e12f02dffd05c4b1b0a092d7917124614f2e4cb
2007-08-15 06:56:06 +00:00
ced 9afa410c7e Don't read all inherit fields if no one is asked
bzr revid: ced-b25e0b174877a12db8c7510f199b490faea4e8dc
2007-08-14 14:13:00 +00:00
ced d05f2481cc Merge branch 'assert'
Conflicts:

	server/bin/addons/account/__terp__.py

bzr revid: ced-81132660cb78828bcc06e9d50939915e1909ae06
2007-08-09 13:12:25 +00:00
ced abf02b087b fix pg_type for fields function
bzr revid: ced-143b72e11e6d271c6aa3338ccc95d6e6c70225bd
2007-08-09 11:20:59 +00:00
ced 5c3609a570 fix raise string deprecated in python 2.5
bzr revid: ced-ba57e04979dcd47a40b22b2b586489996b06a3d9
2007-08-09 08:18:06 +00:00
ced f7ea1ce562 Add minimal new view type calendar
bzr revid: ced-3e20a47bc638b8f772c277f74bfa0a90a830ed81
2007-08-09 06:07:21 +00:00
ced c5c5186ee2 Now property are also browse record
bzr revid: ced-8eb51832fdd367c1baeddb83a96cf069c25d1af8
2007-08-09 06:06:56 +00:00
ced 7ebb0508bc kernel: use type for browse record test instead os instance
the fields function must also pass the test, so we need to use _type for this.

bzr revid: ced-27883e70b9eaa4598cdd3b980899f050f6e659fb
2007-08-09 06:06:22 +00:00
ced 21e2436edc kernel: fix orm for sql query with reserved words
bzr revid: ced-dca8da8ba18b897545d7ee28f4d972bad8e4a554
2007-08-01 14:03:40 +00:00
ced eab36ac71f kernel: allow id in csv file without module prefix
bzr revid: ced-e58d8435a0aac09342841880680750a0f58fcd0e
2007-07-31 14:08:52 +00:00
ced d9b2eee071 kernel: remove test on active in child_of
Use the context to pass if we must check for active or not.

bzr revid: ced-bb3eaaa15cfd13159e3583280b44d4cb5f137799
2007-07-31 14:08:39 +00:00
Fabien Pinckaers 686a5cad00 Bugfix in o2m child_of
bzr revid: fp@tinyerp.com-687eb49dfb101dd966fb12cfc96db72716e52d4c
2007-07-31 04:37:44 +00:00
Fabien Pinckaers 5ef2194dc0 ORM:
bugfix on child_of on many2many
Project: start date
Partners:
	Click on a category to get partners (chilf_od)

bzr revid: fp@tinyerp.com-34022ebc4df94ad47bcb900f6bc73ceda15fda4d
2007-07-30 18:23:17 +00:00
ced 0c7faf0ea1 account, kernel: fix recursion in analytic account
- add constraint against recursion (in orm)
- modify compute quantity, because now browse record in recursive compute will no more work.

bzr revid: ced-4f2a6158659ee9b00e45069429868af1f32f3a24
2007-07-30 13:35:15 +00:00
Fabien Pinckaers 6fc5854910 Resolved conflict
bzr revid: fp@tinyerp.com-f0f40b7421754ebbf2dcfa62652c86903358cd55
2007-07-26 08:50:39 +00:00
ced 0e8e28ef6c kernel: fix context
bzr revid: ced-07f25fbd1709a44913b83a24b9b2528e9f69a24e
2007-07-26 08:32:37 +00:00
ced c4f3e062eb kernel,base: allow to specify in the context to not use the default test on field active
bzr revid: ced-d28a0a444b59bf5b673b6b74eb61d46d6ab4a0a5
2007-07-26 08:32:15 +00:00
ced 6f7fe0b39d kernel: browse record compute also all the function fields
bzr revid: ced-1cab0c6f2969cc27398152a842c079530f9d6912
2007-07-26 08:32:02 +00:00
ced 556296cb2e account,account_report,base,product,scrum,stock,kernel: fix name_search
- add limit
- use context for the search
- fix mutable default args

bzr revid: ced-16b45131f168656508b7a570d11802a1e1b245e7
2007-07-26 08:31:51 +00:00
ced 0378bd09b0 kernel: copy args in name_search as it is changed in the function
bzr revid: ced-8677a5581fd55cb789ca504b5fd657e921452371
2007-07-26 08:31:27 +00:00
ced 9afe3f7a36 kernel: fix context in search / where_calc
bzr revid: ced-f229f1e7b377fdc7eee72c308a66cd86be9b3766
2007-07-26 08:31:18 +00:00
ced 93ee283306 kernel: don't use mutable as default value in function defintion.
bzr revid: ced-1b7caf79864d1c0bf516a2d1058f4bc431374f21
2007-07-26 08:31:10 +00:00
ced f17c417a7a kernel: don't modify the args of the call
_where_calc can not modify the args given in the call, need to copy it first

bzr revid: ced-754405cd95ea03504506c88132fe228f13216b11
2007-07-26 08:31:07 +00:00
ced 98f82b0766 kernel: don't use mutable as default value in function defintion.
bzr revid: ced-363da370daff2fbef4b44c34ef12d353e2b13647
2007-07-26 08:30:53 +00:00
ced 47f1b7bebd kernel: don't modify the args of the call
_where_calc can not modify the args given in the call, need to copy it first

bzr revid: ced-bd9bb054ebc906020858191f950a770b878e6fdb
2007-07-26 08:30:50 +00:00
ced 3c034d2fb4 kernel: improve test ids for name_get
bzr revid: ced-ed26c0c27c75dd1688db599ccee2d06bc4b068e5
2007-07-26 08:30:41 +00:00
ced 6c4b31cf08 kernel,base,account: fix multi company rule and property
- provide the rule to add active condition
- add main company to property that are linked to object that have company_id

bzr revid: ced-c4efb4ec04d47883c4570266f63beace14387499
2007-07-23 05:16:24 +00:00
ced d9d0678328 kernel: don't use mutable as default value in function defintion.
bzr revid: ced-824ee7e22dca5a4b4f2d8d5095aa20650f5a2469
2007-07-23 05:16:03 +00:00
ced 4669379c8b kernel: don't modify the args of the call
_where_calc can not modify the args given in the call, need to copy it first

bzr revid: ced-3792b6e2f1350f8ba46045217b9621963f50ed25
2007-07-23 05:15:49 +00:00
ced 304cccc36d kernel: improve test ids for name_get
bzr revid: ced-8d20968ff269080c977a0fa1f5bccabb766f94c6
2007-07-19 13:36:23 +00:00
ced 044bb55a17 kernel: allow to use also single id in orm function
bzr revid: ced-388bcac19b0be9761b2ed0e8a674baa0e27fae41
2007-07-13 14:28:02 +00:00
Fabien Pinckaers c881d2c9cb ORM bugfix in importing .CSV files
bzr revid: fp@tinyerp.com-c49b3d6cb3802432801c0d78a712d864e78409ca
2007-07-10 04:21:51 +00:00
bch 496221cf3d KERNEL : Data loading : id in csv files are now handled like id on xml record.
bzr revid: bch-7e208314be3c1b2c9a88e766964578e338ecf47b
2007-07-05 07:37:05 +00:00
Fabien Pinckaers 1807dadbfc Better views in project management
Improving dashboards for preoject and analytic accounts
Bugfix in departments
More digits in secondary unit
Improvement in the ORM for reading/searching in write_date and create_date: used for base_synchro module

bzr revid: fp@tinyerp.com-286d97a45b5a54d28245ce5caceb4f937405db92
2007-07-04 10:44:05 +00:00
ced 9d2a08dea5 kernel: concurency access only on classic_write fields
for non classic_write it is the child object that check the concurency

bzr revid: ced-019ad1e8ff46a5e0ec0352ae8ea418a3f013917e
2007-07-03 14:28:23 +00:00
ced 04686e345d kernel: fix update of tuple in where_calc
This bug appears only in netrpc, because xmlrpc transforms the tuple in list

bzr revid: ced-cb5b07db6e7a759c2bb4402edd72d95e66fd4926
2007-07-03 07:49:04 +00:00
ced f94600c862 KERNEL: fix ilike search when empty string
bzr revid: ced-6c84ebdcd7e48715cb4160e34b39357f0b00e73c
2007-06-26 09:42:01 +00:00
Fabien Pinckaers c1941337ff Modifs for allowing to not put report in the right toolbar (multi="1")
bzr revid: fp@tinyerp.com-42fd4b1052091cfe4169652f6e3fa6b5e4d01628
2007-06-25 08:10:39 +00:00
ced 61052ef256 KERNEL: fix search on fields function of type one2many, many2many
bzr revid: ced-40c3614244f9343240bee07535dcfc15562b38a9
2007-06-20 07:12:51 +00:00
ced fda5aae990 CLIENT,SERVER: improve language
- use lang of the context for the language of the client and store it in the .terprc
- change en_EN in en_US which is the standard

bzr revid: ced-bf07a4a200daf6fe371271d9c046799a4a2578fe
2007-06-20 05:54:26 +00:00
ced 68f271613a KERNEL: fix create_date and write_date as there are timestamp now
bzr revid: ced-54cda387806fb989cf811807e4af06c5a37e3c51
2007-06-19 14:15:13 +00:00
ced 071353e560 KERNEL: allow subfield query on one2many
bzr revid: ced-067e4ec9e0ff4b8507528a6a2340fa6a889489ee
2007-06-19 13:34:06 +00:00
ced 655ee8cf3d CLIENT,SERVER: add sum tag on tree view that display sum of the selected lines
bzr revid: ced-29c0dc80cfd619f24d4c96fb8e74708c64a68e8d
2007-06-19 06:25:04 +00:00
ced 2793e2cec6 KERNEL: fix import multi-level one2many
bzr revid: ced-69f85868730b467a6bbbd20253b3d668222442e4
2007-06-18 11:22:10 +00:00
Fabien Pinckaers 663685e4e0 Search count in protected
bzr revid: fp@tinyerp.com-df111ef81ea1a0e2d5df12d56e715cc954ff3488
2007-06-16 06:46:47 +00:00
ced f922ea5522 KERNEL: add check if all id exist and add search_count from ame
bzr revid: ced-2323d89a2163f9218413615befdce0400441eb67
2007-06-15 06:02:22 +00:00
bch 3b2c8bd169 OSV, bugfix:\nauto-readonly fields if write access forbidden by access_model now handle the states field correctly (i.e. blank the states dict before sending it to the client. )
bzr revid: bch-819c980f7041c0cd4cfeea8901c8ad9bff8c587c
2007-06-13 13:57:10 +00:00