Merge lp:~openerp-commiter/openobject-addons/chricar_trunk_stock_SoPo_account_project_mrp_crm into lp:openobject-addons
- chricar_trunk_stock_SoPo_account_project_mrp_crm
- Merge into trunk
Proposed by
Ferdinand
Status: | Rejected |
---|---|
Rejected by: | qdp (OpenERP) |
Proposed branch: | lp:~openerp-commiter/openobject-addons/chricar_trunk_stock_SoPo_account_project_mrp_crm |
Merge into: | lp:openobject-addons |
Diff against target: |
1053 lines (+338/-190) 17 files modified
account/account_invoice_view.xml (+56/-58) account/account_view.xml (+9/-10) account/project/project_view.xml (+4/-4) account_tax_include/account_tax_include_view.xml (+1/-1) mrp/mrp_view.xml (+8/-10) procurement/procurement_view.xml (+3/-2) project/project.py (+2/-2) project/project_view.xml (+28/-31) purchase/partner.py (+13/-5) purchase/partner_view.xml (+14/-0) purchase/purchase.py (+5/-3) purchase/purchase_view.xml (+15/-12) sale/sale.py (+96/-4) sale/sale_view.xml (+21/-14) sale/stock_view.xml (+16/-4) sale_order_dates/sale_order_dates_view.xml (+11/-1) stock/stock_view.xml (+36/-29) |
To merge this branch: | bzr merge lp:~openerp-commiter/openobject-addons/chricar_trunk_stock_SoPo_account_project_mrp_crm |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
qdp (OpenERP) | Disapprove | ||
Review via email: mp+34726@code.launchpad.net |
Commit message
Description of the change
unified layout according to proposed specs (accounting experts) for crm related forms
please merge after
https:/
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'account/account_invoice_view.xml' | |||
2 | --- account/account_invoice_view.xml 2010-09-01 03:33:18 +0000 | |||
3 | +++ account/account_invoice_view.xml 2010-09-07 06:36:14 +0000 | |||
4 | @@ -147,31 +147,36 @@ | |||
5 | 147 | <field name="priority">2</field> | 147 | <field name="priority">2</field> |
6 | 148 | <field name="arch" type="xml"> | 148 | <field name="arch" type="xml"> |
7 | 149 | <form string="Supplier invoice"> | 149 | <form string="Supplier invoice"> |
10 | 150 | <group col="8" colspan="4"> | 150 | |
11 | 151 | <field domain="[('type', '=', 'purchase')]" name="journal_id"/> | 151 | <group col="6" colspan="4"> |
12 | 152 | <field name="number" readonly="1"/> | 152 | <field name="number" readonly="1"/> |
13 | 153 | <field name="type" invisible="1"/> | ||
14 | 154 | <field name="currency_id" on_change="onchange_currency_id(currency_id, company_id)" width="50"/> | ||
15 | 155 | <button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/> | ||
16 | 156 | <newline/> | ||
17 | 157 | <field name="partner_id" domain="[('supplier','=', 1)]" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'default_customer': 0}"/> | ||
18 | 158 | <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/> | ||
19 | 159 | <field name="fiscal_position" groups="base.group_extended" widget="selection"/> | ||
20 | 160 | <newline/> | ||
21 | 161 | <field name="date_invoice"/> | 153 | <field name="date_invoice"/> |
22 | 154 | <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/> | ||
23 | 155 | <field name="partner_id" domain="[('supplier','=', 1)]" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'default_customer': 0}" colspan="4"/> | ||
24 | 156 | <field name="reference_type" nolabel="1" size="0"/> | ||
25 | 157 | <field name="reference" nolabel="1"/> | ||
26 | 158 | <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id" colspan="4"/> | ||
27 | 159 | <newline/> | ||
28 | 160 | <field name="type" /> | ||
29 | 162 | <field name="period_id" groups="account.group_account_user"/> | 161 | <field name="period_id" groups="account.group_account_user"/> |
34 | 163 | <group colspan="2" col="1" groups="account.group_account_user"> | 162 | <group col="4" colspan="2"> |
35 | 164 | <label align="0.0" string="(keep empty to use the current period)"/> | 163 | <field name="currency_id" on_change="onchange_currency_id(currency_id, company_id)" widget="selection"/> |
36 | 165 | </group> | 164 | <button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/> |
37 | 166 | </group> | 165 | </group> |
38 | 166 | </group> | ||
39 | 167 | |||
40 | 167 | <notebook colspan="4"> | 168 | <notebook colspan="4"> |
41 | 168 | <page string="Invoice"> | 169 | <page string="Invoice"> |
48 | 169 | <field domain="[('type','<>','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id" groups="account.group_account_user"/> | 170 | <group col="6" colspan="4"> |
49 | 170 | <field name="reference_type" nolabel="1" size="0"/> | 171 | <field domain="[('type', '=', 'purchase')]" name="journal_id"/> |
50 | 171 | <field name="reference" nolabel="1"/> | 172 | <field name="fiscal_position" groups="base.group_extended" widget="selection"/> |
51 | 172 | <field name="date_due"/> | 173 | <field name="payment_term" widget="selection"/> |
52 | 173 | <field name="check_total" required="2"/> | 174 | <field domain="[('type','<>','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id" groups="account.group_account_user" colspan="4"/> |
53 | 174 | <field colspan="4" default_get="{'check_total': check_total, 'invoice_line': invoice_line, 'address_invoice_id': address_invoice_id, 'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False}" name="invoice_line" nolabel="1"> | 175 | <field name="date_due"/> |
54 | 176 | <field name="name" colspan="4"/> | ||
55 | 177 | <field name="reconciled"/> | ||
56 | 178 | </group> | ||
57 | 179 | <field colspan="4" default_get="{'check_total': check_total, 'invoice_line': invoice_line, 'address_invoice_id': address_invoice_id, 'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False}" name="invoice_line" nolabel="1"> | ||
58 | 175 | <tree string="Invoice lines"> | 180 | <tree string="Invoice lines"> |
59 | 176 | <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.currency_id, {'company_id': parent.company_id})"/> | 181 | <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.address_invoice_id, parent.currency_id, {'company_id': parent.company_id})"/> |
60 | 177 | <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)"/> | 182 | <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id" on_change="onchange_account_id(parent.fiscal_position,account_id)"/> |
61 | @@ -202,7 +207,7 @@ | |||
62 | 202 | <field name="amount_untaxed"/> | 207 | <field name="amount_untaxed"/> |
63 | 203 | <label string="" colspan="2"/> | 208 | <label string="" colspan="2"/> |
64 | 204 | <field name="amount_tax"/> | 209 | <field name="amount_tax"/> |
66 | 205 | <field name="reconciled"/> | 210 | <field name="check_total" required="2" string="Vendor Total"/> |
67 | 206 | <field name="amount_total"/> | 211 | <field name="amount_total"/> |
68 | 207 | <field name="state"/> | 212 | <field name="state"/> |
69 | 208 | <field name="residual"/> | 213 | <field name="residual"/> |
70 | @@ -216,16 +221,11 @@ | |||
71 | 216 | </group> | 221 | </group> |
72 | 217 | </page> | 222 | </page> |
73 | 218 | <page string="Other Info"> | 223 | <page string="Other Info"> |
81 | 219 | <field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)"/> | 224 | <field domain="[('partner_id','=',partner_id)]" name="address_contact_id" groups="base.group_extended" colspan="4"/> |
82 | 220 | 225 | <field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)" colspan="4"/> | |
83 | 221 | <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/> | 226 | <field name="user_id"/> |
77 | 222 | <newline/> | ||
78 | 223 | <field name="payment_term" widget="selection"/> | ||
79 | 224 | <field name="name"/> | ||
80 | 225 | <newline/> | ||
84 | 226 | <field name="origin" groups="base.group_extended"/> | 227 | <field name="origin" groups="base.group_extended"/> |
87 | 227 | <field domain="[('partner_id','=',partner_id)]" name="address_contact_id" groups="base.group_extended"/> | 228 | |
86 | 228 | <field name="user_id"/> | ||
88 | 229 | <field name="move_id" groups="account.group_account_user"/> | 229 | <field name="move_id" groups="account.group_account_user"/> |
89 | 230 | <separator colspan="4" string="Additional Information"/> | 230 | <separator colspan="4" string="Additional Information"/> |
90 | 231 | <field colspan="4" name="comment" nolabel="1"/> | 231 | <field colspan="4" name="comment" nolabel="1"/> |
91 | @@ -255,29 +255,33 @@ | |||
92 | 255 | <field name="type">form</field> | 255 | <field name="type">form</field> |
93 | 256 | <field name="arch" type="xml"> | 256 | <field name="arch" type="xml"> |
94 | 257 | <form string="Invoice"> | 257 | <form string="Invoice"> |
111 | 258 | <group colspan="4" col="8"> | 258 | <group colspan="4" col="6"> |
112 | 259 | <field name="journal_id" groups="base.group_user"/> | 259 | <field name="number"/> |
113 | 260 | <field name="number"/> | 260 | <field name="date_invoice"/> |
114 | 261 | <field name="type" invisible="1"/> | 261 | <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/> |
115 | 262 | <field name="currency_id" on_change="onchange_currency_id(currency_id, company_id)" width="50"/> | 262 | <newline/> |
116 | 263 | <button name="%(action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/> | 263 | <field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" groups="base.group_user" colspan="4"/> |
117 | 264 | <newline/> | 264 | <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id" colspan="4"/> |
118 | 265 | <field name="partner_id" on_change="onchange_partner_id(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" groups="base.group_user"/> | 265 | <newline/> |
119 | 266 | <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id"/> | 266 | <field name="type" /> |
120 | 267 | <field name="fiscal_position" groups="base.group_extended" widget="selection"/> | 267 | <field name="period_id" groups="account.group_account_user"/> |
121 | 268 | <newline/> | 268 | <group colspan="2" col="4"> |
122 | 269 | <field name="date_invoice"/> | 269 | <field name="currency_id" on_change="onchange_currency_id(currency_id, company_id)" width="50" widget="selection"/> |
123 | 270 | <field name="period_id" groups="account.group_account_user"/> | 270 | <button name="549" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/> |
124 | 271 | <group colspan="2" col="1" groups="account.group_account_user"> | 271 | </group> |
109 | 272 | <label align="0.0" string="(keep empty to use the current period)"/> | ||
110 | 273 | </group> | ||
125 | 274 | </group> | 272 | </group> |
126 | 275 | <notebook colspan="4"> | 273 | <notebook colspan="4"> |
127 | 276 | <page string="Invoice"> | 274 | <page string="Invoice"> |
130 | 277 | <field domain="[('type','<>','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id" groups="account.group_account_user"/> | 275 | <group col="6" colspan="4"> |
131 | 278 | <field name="name"/> | 276 | <field name="journal_id" groups="base.group_user"/> |
132 | 277 | <field name="fiscal_position" groups="base.group_extended" widget="selection"/> | ||
133 | 279 | <field name="payment_term" widget="selection"/> | 278 | <field name="payment_term" widget="selection"/> |
135 | 280 | <field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list"/> | 279 | <field domain="[('type','<>','view'), ('company_id', '=', company_id),('journal_id','=',journal_id)]" name="account_id" groups="account.group_account_user" colspan="4"/> |
136 | 280 | <field name="date_due"/> | ||
137 | 281 | <field name="name" colspan="4"/> | ||
138 | 282 | <field name="reconciled"/> | ||
139 | 283 | </group> | ||
140 | 284 | <field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list"/> | ||
141 | 281 | <group col="1" colspan="2"> | 285 | <group col="1" colspan="2"> |
142 | 282 | <field name="tax_line" nolabel="1"> | 286 | <field name="tax_line" nolabel="1"> |
143 | 283 | <tree editable="bottom" string="Taxes"> | 287 | <tree editable="bottom" string="Taxes"> |
144 | @@ -294,7 +298,7 @@ | |||
145 | 294 | <field name="amount_untaxed"/> | 298 | <field name="amount_untaxed"/> |
146 | 295 | <label string="" colspan="2"/> | 299 | <label string="" colspan="2"/> |
147 | 296 | <field name="amount_tax"/> | 300 | <field name="amount_tax"/> |
149 | 297 | <field name="reconciled"/> | 301 | <label align="0.0" string="" colspan="2"/> |
150 | 298 | <field name="amount_total"/> | 302 | <field name="amount_total"/> |
151 | 299 | <field name="state"/> | 303 | <field name="state"/> |
152 | 300 | <field name="residual"/> | 304 | <field name="residual"/> |
153 | @@ -310,16 +314,10 @@ | |||
154 | 310 | </group> | 314 | </group> |
155 | 311 | </page> | 315 | </page> |
156 | 312 | <page string="Other Info"> | 316 | <page string="Other Info"> |
160 | 313 | <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id)" widget="selection" groups="base.group_multi_company"/> | 317 | <field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id" groups="base.group_extended"/> |
161 | 314 | <newline/> | 318 | <field colspan="4" domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id" groups="base.group_extended"/> |
159 | 315 | <field name="date_due"/> | ||
162 | 316 | <field name="user_id"/> | 319 | <field name="user_id"/> |
163 | 317 | <newline/> | ||
164 | 318 | <field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id" | ||
165 | 319 | groups="base.group_extended"/> | ||
166 | 320 | <field name="origin"/> | 320 | <field name="origin"/> |
167 | 321 | <field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id" | ||
168 | 322 | groups="base.group_extended"/> | ||
169 | 323 | <field name="move_id" groups="account.group_account_user"/> | 321 | <field name="move_id" groups="account.group_account_user"/> |
170 | 324 | <separator colspan="4" string="Additional Information"/> | 322 | <separator colspan="4" string="Additional Information"/> |
171 | 325 | <field colspan="4" name="comment" nolabel="1"/> | 323 | <field colspan="4" name="comment" nolabel="1"/> |
172 | 326 | 324 | ||
173 | === modified file 'account/account_view.xml' | |||
174 | --- account/account_view.xml 2010-09-03 07:24:13 +0000 | |||
175 | +++ account/account_view.xml 2010-09-07 06:36:14 +0000 | |||
176 | @@ -121,7 +121,7 @@ | |||
177 | 121 | </tree> | 121 | </tree> |
178 | 122 | </field> | 122 | </field> |
179 | 123 | </record> | 123 | </record> |
181 | 124 | 124 | ||
182 | 125 | <record id="view_account_period_search" model="ir.ui.view"> | 125 | <record id="view_account_period_search" model="ir.ui.view"> |
183 | 126 | <field name="name">account.period.search</field> | 126 | <field name="name">account.period.search</field> |
184 | 127 | <field name="model">account.period</field> | 127 | <field name="model">account.period</field> |
185 | @@ -137,7 +137,7 @@ | |||
186 | 137 | </search> | 137 | </search> |
187 | 138 | </field> | 138 | </field> |
188 | 139 | </record> | 139 | </record> |
190 | 140 | 140 | ||
191 | 141 | <record id="action_account_period_form" model="ir.actions.act_window"> | 141 | <record id="action_account_period_form" model="ir.actions.act_window"> |
192 | 142 | <field name="name">Periods</field> | 142 | <field name="name">Periods</field> |
193 | 143 | <field name="res_model">account.period</field> | 143 | <field name="res_model">account.period</field> |
194 | @@ -157,14 +157,13 @@ | |||
195 | 157 | <field name="type">form</field> | 157 | <field name="type">form</field> |
196 | 158 | <field name="arch" type="xml"> | 158 | <field name="arch" type="xml"> |
197 | 159 | <form string="Account"> | 159 | <form string="Account"> |
206 | 160 | <group col="6" colspan="4"> | 160 | <group col="6" colspan="6"> |
207 | 161 | <field name="name" select="1"/> | 161 | <field name="code" select="1"/> |
208 | 162 | <field name="code" select="1"/> | 162 | <field name="company_id" widget="selection" groups="base.group_multi_company"/> |
209 | 163 | <field name="company_id" widget="selection" groups="base.group_multi_company"/> | 163 | <field name="name" select="1" colspan="6"/> |
210 | 164 | <newline/> | 164 | <field name="parent_id" colspan="6"/> |
211 | 165 | <field name="parent_id"/> | 165 | <field name="type" select="1"/> |
212 | 166 | <field name="type" select="1"/> | 166 | <field name="user_type" select="1"/> |
205 | 167 | <field name="user_type" select="1"/> | ||
213 | 168 | </group> | 167 | </group> |
214 | 169 | <notebook colspan="4"> | 168 | <notebook colspan="4"> |
215 | 170 | <page string="General Information"> | 169 | <page string="General Information"> |
216 | 171 | 170 | ||
217 | === modified file 'account/project/project_view.xml' | |||
218 | --- account/project/project_view.xml 2010-09-01 15:09:45 +0000 | |||
219 | +++ account/project/project_view.xml 2010-09-07 06:36:14 +0000 | |||
220 | @@ -71,16 +71,16 @@ | |||
221 | 71 | <field name="arch" type="xml"> | 71 | <field name="arch" type="xml"> |
222 | 72 | <form string="Analytic account"> | 72 | <form string="Analytic account"> |
223 | 73 | <group colspan="4" col="6"> | 73 | <group colspan="4" col="6"> |
224 | 74 | <field name="name" select="1" colspan="4"/> | ||
225 | 75 | <field name="code" select="1"/> | 74 | <field name="code" select="1"/> |
226 | 76 | <field name="parent_id" on_change="on_change_parent(parent_id)" groups="base.group_extended"/> | ||
227 | 77 | <field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/> | 75 | <field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/> |
228 | 76 | <field name="name" select="1" colspan="6"/> | ||
229 | 77 | <field name="parent_id" on_change="on_change_parent(parent_id)" groups="base.group_extended" colspan="6"/> | ||
230 | 78 | <field name="type" select="2"/> | 78 | <field name="type" select="2"/> |
232 | 79 | <field name="company_currency_id" select="2"/> | 79 | <field name="company_currency_id" select="2" widget="selection" /> |
233 | 80 | </group> | 80 | </group> |
234 | 81 | <notebook colspan="4"> | 81 | <notebook colspan="4"> |
235 | 82 | <page string="Account Data"> | 82 | <page string="Account Data"> |
237 | 83 | <field name="partner_id" select="1"/> | 83 | <field name="partner_id" select="1" colspan="4"/> |
238 | 84 | <newline/> | 84 | <newline/> |
239 | 85 | <field name="date_start"/> | 85 | <field name="date_start"/> |
240 | 86 | <field name="date" select="2"/> | 86 | <field name="date" select="2"/> |
241 | 87 | 87 | ||
242 | === modified file 'account_tax_include/account_tax_include_view.xml' | |||
243 | --- account_tax_include/account_tax_include_view.xml 2010-08-12 20:45:13 +0000 | |||
244 | +++ account_tax_include/account_tax_include_view.xml 2010-09-07 06:36:14 +0000 | |||
245 | @@ -21,7 +21,7 @@ | |||
246 | 21 | <field name="model">account.invoice</field> | 21 | <field name="model">account.invoice</field> |
247 | 22 | <field name="inherit_id" ref="account.invoice_form"/> | 22 | <field name="inherit_id" ref="account.invoice_form"/> |
248 | 23 | <field name="arch" type="xml"> | 23 | <field name="arch" type="xml"> |
250 | 24 | <field name="payment_term" position="after"> | 24 | <field name="invoice_line" position="before"> |
251 | 25 | <field name="price_type"/> | 25 | <field name="price_type"/> |
252 | 26 | </field> | 26 | </field> |
253 | 27 | </field> | 27 | </field> |
254 | 28 | 28 | ||
255 | === modified file 'mrp/mrp_view.xml' | |||
256 | --- mrp/mrp_view.xml 2010-09-03 11:44:46 +0000 | |||
257 | +++ mrp/mrp_view.xml 2010-09-07 06:36:14 +0000 | |||
258 | @@ -297,6 +297,7 @@ | |||
259 | 297 | <field name="type">form</field> | 297 | <field name="type">form</field> |
260 | 298 | <field name="arch" type="xml"> | 298 | <field name="arch" type="xml"> |
261 | 299 | <form string="Bill of Material"> | 299 | <form string="Bill of Material"> |
262 | 300 | |||
263 | 300 | <group colspan="4" col="6"> | 301 | <group colspan="4" col="6"> |
264 | 301 | <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/> | 302 | <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/> |
265 | 302 | <field name="name" select="1"/> | 303 | <field name="name" select="1"/> |
266 | @@ -562,27 +563,24 @@ | |||
267 | 562 | <group colspan="4" col="6"> | 563 | <group colspan="4" col="6"> |
268 | 563 | <field name="name" string="Reference"/> | 564 | <field name="name" string="Reference"/> |
269 | 564 | <field name="date_planned"/> | 565 | <field name="date_planned"/> |
270 | 566 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
271 | 567 | |||
272 | 568 | <field name="product_id" on_change="product_id_change(product_id)" colspan="4"/> | ||
273 | 565 | <field name="origin"/> | 569 | <field name="origin"/> |
274 | 566 | <field name="product_id" on_change="product_id_change(product_id)"/> | ||
275 | 567 | <field name="product_qty"/> | 570 | <field name="product_qty"/> |
276 | 568 | <group colspan="2" col="3"> | ||
277 | 569 | <field name="product_uom"/> | 571 | <field name="product_uom"/> |
278 | 570 | <button type="action" | 572 | <button type="action" |
279 | 571 | name="%(mrp.action_change_production_qty)d" | 573 | name="%(mrp.action_change_production_qty)d" |
280 | 572 | string="Change Qty" states="ready,confirmed" /> | 574 | string="Change Qty" states="ready,confirmed" /> |
283 | 573 | </group> | 575 | <newline/> |
282 | 574 | <label string="" colspan="2"/> | ||
284 | 575 | <field name="product_uos_qty" groups="product.group_uos"/> | 576 | <field name="product_uos_qty" groups="product.group_uos"/> |
289 | 576 | <group colspan="2" col="3" groups="product.group_uos"> | 577 | <field name="product_uos"/> |
286 | 577 | <field name="product_uos"/> | ||
287 | 578 | <label string=""/> | ||
288 | 579 | </group> | ||
290 | 580 | </group> | 578 | </group> |
291 | 581 | 579 | ||
292 | 582 | <notebook colspan="4"> | 580 | <notebook colspan="4"> |
293 | 583 | <page string="Consumed Products"> | 581 | <page string="Consumed Products"> |
296 | 584 | <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)" /> | 582 | <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)" colspan="4"/> |
297 | 585 | <field name="routing_id" groups="base.group_extended" select="1"/> | 583 | <field name="routing_id" groups="base.group_extended" select="1" colspan="4"/> |
298 | 586 | <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/> | 584 | <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/> |
299 | 587 | <field name="location_dest_id" domain="[('usage','=','internal')]"/> | 585 | <field name="location_dest_id" domain="[('usage','=','internal')]"/> |
300 | 588 | <separator string="" colspan="4"/> | 586 | <separator string="" colspan="4"/> |
301 | 589 | 587 | ||
302 | === modified file 'procurement/procurement_view.xml' | |||
303 | --- procurement/procurement_view.xml 2010-08-18 06:30:58 +0000 | |||
304 | +++ procurement/procurement_view.xml 2010-09-07 06:36:14 +0000 | |||
305 | @@ -45,8 +45,9 @@ | |||
306 | 45 | <notebook colspan="4"> | 45 | <notebook colspan="4"> |
307 | 46 | <page string="Procurement Details"> | 46 | <page string="Procurement Details"> |
308 | 47 | <separator colspan="4" string="Product & Location"/> | 47 | <separator colspan="4" string="Product & Location"/> |
311 | 48 | <field name="product_id" on_change="onchange_product_id(product_id)"/> | 48 | <field name="product_id" on_change="onchange_product_id(product_id)" colspan="4"/> |
312 | 49 | <field name="location_id" domain="[('usage','=','internal')]"/> | 49 | <field name="location_id" domain="[('usage','=','internal')]"/> |
313 | 50 | <newline/> | ||
314 | 50 | <field name="product_qty"/> | 51 | <field name="product_qty"/> |
315 | 51 | <field name="product_uom" widget="selection"/> | 52 | <field name="product_uom" widget="selection"/> |
316 | 52 | 53 | ||
317 | 53 | 54 | ||
318 | === modified file 'project/project.py' | |||
319 | --- project/project.py 2010-08-27 12:05:25 +0000 | |||
320 | +++ project/project.py 2010-09-07 06:36:14 +0000 | |||
321 | @@ -416,8 +416,8 @@ | |||
322 | 416 | help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\ | 416 | help='If the task is created the state is \'Draft\'.\n If the task is started, the state becomes \'In Progress\'.\n If review is needed the task is in \'Pending\' state.\ |
323 | 417 | \n If the task is over, the states is set to \'Done\'.'), | 417 | \n If the task is over, the states is set to \'Done\'.'), |
324 | 418 | 'create_date': fields.datetime('Create Date', readonly=True), | 418 | 'create_date': fields.datetime('Create Date', readonly=True), |
327 | 419 | 'date_start': fields.datetime('Starting Date'), | 419 | 'date_start': fields.datetime('Date Start'), |
328 | 420 | 'date_end': fields.datetime('Ending Date'), | 420 | 'date_end': fields.datetime('Date End'), |
329 | 421 | 'date_deadline': fields.date('Deadline'), | 421 | 'date_deadline': fields.date('Deadline'), |
330 | 422 | 'project_id': fields.many2one('project.project', 'Project', ondelete='cascade', | 422 | 'project_id': fields.many2one('project.project', 'Project', ondelete='cascade', |
331 | 423 | help="If you have [?] in the project name, it means there are no analytic account linked to this project."), | 423 | help="If you have [?] in the project name, it means there are no analytic account linked to this project."), |
332 | 424 | 424 | ||
333 | === modified file 'project/project_view.xml' | |||
334 | --- project/project_view.xml 2010-08-27 11:36:48 +0000 | |||
335 | +++ project/project_view.xml 2010-09-07 06:36:14 +0000 | |||
336 | @@ -17,13 +17,18 @@ | |||
337 | 17 | <field name="type">form</field> | 17 | <field name="type">form</field> |
338 | 18 | <field name="arch" type="xml"> | 18 | <field name="arch" type="xml"> |
339 | 19 | <form string="Project"> | 19 | <form string="Project"> |
344 | 20 | <group colspan="6" col="6"> | 20 | <group colspan="4" col="6"> |
345 | 21 | <field name="name" string="Project Name" select="1"/> | 21 | <field name="name" string="Project Name" select="1" colspan="4"/> |
346 | 22 | <field name="parent_id" string="Parent Project"/> | 22 | <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> |
347 | 23 | <field name="user_id" string="Project Manager" select="1" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/> | 23 | <field name="parent_id" string="Parent Project" colspan="4"/> |
348 | 24 | <field name="user_id" string="Project Manager" select="1" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}" colspan="2"/> | ||
349 | 24 | <field name="date_start" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/> | 25 | <field name="date_start" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/> |
350 | 25 | <field name="date" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/> | 26 | <field name="date" attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"/> |
352 | 26 | <field name="progress_rate" widget="progressbar"/> | 27 | <field name="progress_rate" widget="progressbar" /> |
353 | 28 | <field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id)" select="1" /> | ||
354 | 29 | <field name="warn_customer"/> | ||
355 | 30 | <field domain="[('partner_id','=',partner_id)]" name="contact_id" string="Contact Address" colspan="4"/> | ||
356 | 31 | <field name="warn_manager"/> | ||
357 | 27 | </group> | 32 | </group> |
358 | 28 | <notebook colspan="4"> | 33 | <notebook colspan="4"> |
359 | 29 | <page string="Administration"> | 34 | <page string="Administration"> |
360 | @@ -39,8 +44,8 @@ | |||
361 | 39 | </group> | 44 | </group> |
362 | 40 | <group col="2" colspan="2" name="misc"> | 45 | <group col="2" colspan="2" name="misc"> |
363 | 41 | <separator colspan="2" string="Miscelleanous"/> | 46 | <separator colspan="2" string="Miscelleanous"/> |
366 | 42 | <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> | 47 | |
367 | 43 | <field name="warn_manager"/> | 48 | |
368 | 44 | </group> | 49 | </group> |
369 | 45 | <newline/> | 50 | <newline/> |
370 | 46 | <group col="9" colspan="8"> | 51 | <group col="9" colspan="8"> |
371 | @@ -61,10 +66,6 @@ | |||
372 | 61 | <field colspan="4" name="members" nolabel="1"/> | 66 | <field colspan="4" name="members" nolabel="1"/> |
373 | 62 | </page> | 67 | </page> |
374 | 63 | <page groups="base.group_extended" string="Partner Info"> | 68 | <page groups="base.group_extended" string="Partner Info"> |
375 | 64 | <field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id)" select="1"/> | ||
376 | 65 | <field domain="[('partner_id','=',partner_id)]" name="contact_id" string="Contact Address"/> | ||
377 | 66 | <field name="warn_customer"/> | ||
378 | 67 | <newline/> | ||
379 | 68 | <separator colspan="2" string="Mail Header"/> | 69 | <separator colspan="2" string="Mail Header"/> |
380 | 69 | <separator colspan="2" string="Mail Footer"/> | 70 | <separator colspan="2" string="Mail Footer"/> |
381 | 70 | <field name="warn_header" nolabel="1" colspan="2"/> | 71 | <field name="warn_header" nolabel="1" colspan="2"/> |
382 | @@ -197,31 +198,31 @@ | |||
383 | 197 | <field eval="2" name="priority"/> | 198 | <field eval="2" name="priority"/> |
384 | 198 | <field name="arch" type="xml"> | 199 | <field name="arch" type="xml"> |
385 | 199 | <form string="Task edition"> | 200 | <form string="Task edition"> |
391 | 200 | <group colspan="6" col="6"> | 201 | <group colspan="4" col="6"> |
392 | 201 | <field name="name" select="1"/> | 202 | <field name="project_id" required="1" select="1" domain="[('user_id','=',uid)]" colspan="4"/> |
393 | 202 | <field name="project_id" required="1" select="1" domain="[('user_id','=',uid)]"/> | 203 | <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> |
394 | 203 | <field name="total_hours" widget="float_time"/> | 204 | <field name="name" select="1" colspan="4"/> |
390 | 204 | <field name="date_deadline" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> | ||
395 | 205 | <field name="user_id" select="1" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> | 205 | <field name="user_id" select="1" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> |
396 | 206 | <field name="date_start" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> | ||
397 | 207 | <field name="date_end" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> | ||
398 | 206 | <field name="progress" widget="progressbar"/> | 208 | <field name="progress" widget="progressbar"/> |
399 | 209 | <field name="date_deadline" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> | ||
400 | 210 | <field name="total_hours" widget="float_time"/> | ||
401 | 207 | </group> | 211 | </group> |
402 | 208 | <notebook colspan="4"> | 212 | <notebook colspan="4"> |
403 | 209 | <page string="Information"> | 213 | <page string="Information"> |
413 | 210 | <group col="2" colspan="2"> | 214 | <group colspan="4" col="6"> |
414 | 211 | <field | 215 | <field name="partner_id" colspan="6" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/> |
415 | 212 | name="planned_hours" | 216 | <field name="planned_hours" |
416 | 213 | widget="float_time" | 217 | widget="float_time" |
417 | 214 | attrs="{'readonly':[('state','!=','draft')]}" | 218 | attrs="{'readonly':[('state','!=','draft')]}" |
418 | 215 | on_change="onchange_planned(planned_hours, effective_hours)"/> | 219 | on_change="onchange_planned(planned_hours, effective_hours)"/> |
410 | 216 | <field name="effective_hours" widget="float_time"/> | ||
411 | 217 | </group> | ||
412 | 218 | <group col="3" colspan="2"> | ||
419 | 219 | <field name="remaining_hours" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" colspan="2"/> | 220 | <field name="remaining_hours" widget="float_time" attrs="{'readonly':[('state','!=','draft')]}" colspan="2"/> |
420 | 220 | <button name="%(action_project_task_reevaluate)d" string="Reevaluate" type="action" colspan="1" target="new" states="open,pending" icon="gtk-edit"/> | 221 | <button name="%(action_project_task_reevaluate)d" string="Reevaluate" type="action" colspan="1" target="new" states="open,pending" icon="gtk-edit"/> |
422 | 221 | 222 | <newline/> | |
423 | 223 | <field name="effective_hours" widget="float_time"/> | ||
424 | 222 | <field name="delay_hours" widget="float_time"/> | 224 | <field name="delay_hours" widget="float_time"/> |
425 | 223 | </group> | 225 | </group> |
426 | 224 | |||
427 | 225 | <field colspan="4" name="description" nolabel="1" attrs="{'readonly':[('state','=','done')]}" widget="text_wiki"/> | 226 | <field colspan="4" name="description" nolabel="1" attrs="{'readonly':[('state','=','done')]}" widget="text_wiki"/> |
428 | 226 | <field colspan="4" name="work_ids" nolabel="1" attrs="{'readonly':[('state','in',['draft','done'])]}"> | 227 | <field colspan="4" name="work_ids" nolabel="1" attrs="{'readonly':[('state','in',['draft','done'])]}"> |
429 | 227 | <tree string="Task Work" editable="top"> | 228 | <tree string="Task Work" editable="top"> |
430 | @@ -268,13 +269,9 @@ | |||
431 | 268 | </group> | 269 | </group> |
432 | 269 | <group colspan="2" col="2"> | 270 | <group colspan="2" col="2"> |
433 | 270 | <separator string="Dates" colspan="2"/> | 271 | <separator string="Dates" colspan="2"/> |
434 | 271 | <field name="date_start"/> | ||
435 | 272 | <field name="date_end"/> | ||
436 | 273 | <field name="create_date"/> | 272 | <field name="create_date"/> |
437 | 274 | </group> | 273 | </group> |
438 | 275 | <separator string="Miscelleanous" colspan="4"/> | 274 | <separator string="Miscelleanous" colspan="4"/> |
439 | 276 | <field name="partner_id"/> | ||
440 | 277 | <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/> | ||
441 | 278 | <group col="4" colspan="2"> | 275 | <group col="4" colspan="2"> |
442 | 279 | <field name="type_id" widget="selection" readonly="1"/> | 276 | <field name="type_id" widget="selection" readonly="1"/> |
443 | 280 | <button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage"/> | 277 | <button name="prev_type" string="Previous" type="object" icon="gtk-go-back" help="Change to Previous Stage"/> |
444 | 281 | 278 | ||
445 | === modified file 'purchase/partner.py' | |||
446 | --- purchase/partner.py 2010-06-29 09:13:12 +0000 | |||
447 | +++ purchase/partner.py 2010-09-07 06:36:14 +0000 | |||
448 | @@ -1,6 +1,6 @@ | |||
449 | 1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
450 | 2 | ############################################################################## | 2 | ############################################################################## |
452 | 3 | # | 3 | # |
453 | 4 | # OpenERP, Open Source Management Solution | 4 | # OpenERP, Open Source Management Solution |
454 | 5 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). | 5 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). |
455 | 6 | # | 6 | # |
456 | @@ -15,7 +15,7 @@ | |||
457 | 15 | # GNU Affero General Public License for more details. | 15 | # GNU Affero General Public License for more details. |
458 | 16 | # | 16 | # |
459 | 17 | # You should have received a copy of the GNU Affero General Public License | 17 | # You should have received a copy of the GNU Affero General Public License |
461 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
462 | 19 | # | 19 | # |
463 | 20 | ############################################################################## | 20 | ############################################################################## |
464 | 21 | 21 | ||
465 | @@ -27,13 +27,21 @@ | |||
466 | 27 | _columns = { | 27 | _columns = { |
467 | 28 | 'property_product_pricelist_purchase': fields.property( | 28 | 'property_product_pricelist_purchase': fields.property( |
468 | 29 | 'product.pricelist', | 29 | 'product.pricelist', |
471 | 30 | type='many2one', | 30 | type='many2one', |
472 | 31 | relation='product.pricelist', | 31 | relation='product.pricelist', |
473 | 32 | domain=[('type','=','purchase')], | 32 | domain=[('type','=','purchase')], |
475 | 33 | string="Purchase Pricelist", | 33 | string="Purchase Pricelist", |
476 | 34 | method=True, | 34 | method=True, |
477 | 35 | view_load=True, | 35 | view_load=True, |
478 | 36 | help="This pricelist will be used, instead of the default one, for purchases from the current partner"), | 36 | help="This pricelist will be used, instead of the default one, for purchases from the current partner"), |
479 | 37 | 'property_purchase_payment_term': fields.property( | ||
480 | 38 | 'account.payment.term', | ||
481 | 39 | type='many2one', | ||
482 | 40 | relation='account.payment.term', | ||
483 | 41 | string ='Purchase Payment Term', | ||
484 | 42 | method=True, | ||
485 | 43 | view_load=True, | ||
486 | 44 | help="This purchase payment term will be used instead of the default one for the current partner"), | ||
487 | 37 | } | 45 | } |
488 | 38 | res_partner() | 46 | res_partner() |
489 | 39 | 47 | ||
490 | 40 | 48 | ||
491 | === modified file 'purchase/partner_view.xml' | |||
492 | --- purchase/partner_view.xml 2010-06-12 16:50:46 +0000 | |||
493 | +++ purchase/partner_view.xml 2010-09-07 06:36:14 +0000 | |||
494 | @@ -17,5 +17,19 @@ | |||
495 | 17 | </field> | 17 | </field> |
496 | 18 | </record> | 18 | </record> |
497 | 19 | 19 | ||
498 | 20 | <record id="view_partner_term_property_form" model="ir.ui.view"> | ||
499 | 21 | <field name="name">res.partner.account.term.property.form.inherit</field> | ||
500 | 22 | <field name="model">res.partner</field> | ||
501 | 23 | <field name="type">form</field> | ||
502 | 24 | <field name="inherit_id" ref="account.view_partner_property_form"/> | ||
503 | 25 | <field name="priority">36</field> | ||
504 | 26 | <field name="arch" type="xml"> | ||
505 | 27 | <field name="property_account_payable" position="after"> | ||
506 | 28 | <field name="property_purchase_payment_term"/> | ||
507 | 29 | </field> | ||
508 | 30 | </field> | ||
509 | 31 | </record> | ||
510 | 32 | |||
511 | 33 | |||
512 | 20 | </data> | 34 | </data> |
513 | 21 | </openerp> | 35 | </openerp> |
514 | 22 | 36 | ||
515 | === modified file 'purchase/purchase.py' | |||
516 | --- purchase/purchase.py 2010-09-03 09:38:12 +0000 | |||
517 | +++ purchase/purchase.py 2010-09-07 06:36:14 +0000 | |||
518 | @@ -208,6 +208,7 @@ | |||
519 | 208 | 'product_id': fields.related('order_line','product_id', type='many2one', relation='product.product', string='Product'), | 208 | 'product_id': fields.related('order_line','product_id', type='many2one', relation='product.product', string='Product'), |
520 | 209 | 'create_uid': fields.many2one('res.users', 'Responsible'), | 209 | 'create_uid': fields.many2one('res.users', 'Responsible'), |
521 | 210 | 'company_id': fields.many2one('res.company','Company',required=True,select=1), | 210 | 'company_id': fields.many2one('res.company','Company',required=True,select=1), |
522 | 211 | 'payment_term': fields.many2one('account.payment.term', 'Payment Term'), | ||
523 | 211 | } | 212 | } |
524 | 212 | _defaults = { | 213 | _defaults = { |
525 | 213 | 'date_order': time.strftime('%Y-%m-%d'), | 214 | 'date_order': time.strftime('%Y-%m-%d'), |
526 | @@ -260,12 +261,13 @@ | |||
527 | 260 | def onchange_partner_id(self, cr, uid, ids, part): | 261 | def onchange_partner_id(self, cr, uid, ids, part): |
528 | 261 | 262 | ||
529 | 262 | if not part: | 263 | if not part: |
531 | 263 | return {'value':{'partner_address_id': False, 'fiscal_position': False}} | 264 | return {'value':{'partner_address_id': False, 'payment_term': False,'fiscal_position': False}} |
532 | 264 | addr = self.pool.get('res.partner').address_get(cr, uid, [part], ['default']) | 265 | addr = self.pool.get('res.partner').address_get(cr, uid, [part], ['default']) |
533 | 265 | part = self.pool.get('res.partner').browse(cr, uid, part) | 266 | part = self.pool.get('res.partner').browse(cr, uid, part) |
534 | 266 | pricelist = part.property_product_pricelist_purchase.id | 267 | pricelist = part.property_product_pricelist_purchase.id |
535 | 267 | fiscal_position = part.property_account_position and part.property_account_position.id or False | 268 | fiscal_position = part.property_account_position and part.property_account_position.id or False |
537 | 268 | return {'value':{'partner_address_id': addr['default'], 'pricelist_id': pricelist, 'fiscal_position': fiscal_position}} | 269 | payment_term = part.property_purchase_payment_term and part.property_purchase_payment_term.id or False |
538 | 270 | return {'value':{'partner_address_id': addr['default'], 'pricelist_id': pricelist, 'payment_term': payment_term, 'fiscal_position': fiscal_position}} | ||
539 | 269 | 271 | ||
540 | 270 | def wkf_approve_order(self, cr, uid, ids, context={}): | 272 | def wkf_approve_order(self, cr, uid, ids, context={}): |
541 | 271 | self.write(cr, uid, ids, {'state': 'approved', 'date_approve': time.strftime('%Y-%m-%d')}) | 273 | self.write(cr, uid, ids, {'state': 'approved', 'date_approve': time.strftime('%Y-%m-%d')}) |
542 | @@ -378,7 +380,7 @@ | |||
543 | 378 | 'origin': o.name, | 380 | 'origin': o.name, |
544 | 379 | 'invoice_line': il, | 381 | 'invoice_line': il, |
545 | 380 | 'fiscal_position': o.partner_id.property_account_position.id, | 382 | 'fiscal_position': o.partner_id.property_account_position.id, |
547 | 381 | 'payment_term': o.partner_id.property_payment_term and o.partner_id.property_payment_term.id or False, | 383 | 'payment_term': o.payment_term.id, |
548 | 382 | 'company_id': o.company_id.id, | 384 | 'company_id': o.company_id.id, |
549 | 383 | } | 385 | } |
550 | 384 | inv_id = self.pool.get('account.invoice').create(cr, uid, inv, {'type':'in_invoice'}) | 386 | inv_id = self.pool.get('account.invoice').create(cr, uid, inv, {'type':'in_invoice'}) |
551 | 385 | 387 | ||
552 | === modified file 'purchase/purchase_view.xml' | |||
553 | --- purchase/purchase_view.xml 2010-08-25 15:03:33 +0000 | |||
554 | +++ purchase/purchase_view.xml 2010-09-07 06:36:14 +0000 | |||
555 | @@ -87,24 +87,28 @@ | |||
556 | 87 | <field name="model">purchase.order</field> | 87 | <field name="model">purchase.order</field> |
557 | 88 | <field name="type">form</field> | 88 | <field name="type">form</field> |
558 | 89 | <field name="arch" type="xml"> | 89 | <field name="arch" type="xml"> |
560 | 90 | <form string="Purchase Order"> | 90 | <form string="Purchase Order"> |
561 | 91 | <group col="6" colspan="4"> | 91 | <group col="6" colspan="4"> |
562 | 92 | <field name="name"/> | 92 | <field name="name"/> |
563 | 93 | <field name="date_order"/> | 93 | <field name="date_order"/> |
567 | 94 | <field name="invoiced"/> | 94 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> |
568 | 95 | <newline/> | 95 | <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('supplier','=', 1)]" colspan="4"/> |
566 | 96 | <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/> | ||
569 | 97 | <field name="partner_ref"/> | 96 | <field name="partner_ref"/> |
572 | 98 | <field name="shipped"/> | 97 | <field name="partner_address_id" colspan="4"/> |
571 | 99 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
573 | 100 | </group> | 98 | </group> |
574 | 101 | <notebook colspan="4"> | 99 | <notebook colspan="4"> |
575 | 102 | <page string="Purchase Order"> | 100 | <page string="Purchase Order"> |
578 | 103 | <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('supplier','=', 1)]"/> | 101 | <group col="6" colspan="4"> |
579 | 104 | <field name="partner_address_id"/> | 102 | <field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)" colspan="4"/> |
580 | 103 | <field name="shipped"/> | ||
581 | 104 | <newline/> | ||
582 | 105 | <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/> | ||
583 | 106 | <field name="minimum_planned_date"/> | ||
584 | 107 | <field name="invoiced"/> | ||
585 | 108 | <newline/> | ||
586 | 105 | <field domain="[('type','=','purchase')]" name="pricelist_id" groups="base.group_extended"/> | 109 | <field domain="[('type','=','purchase')]" name="pricelist_id" groups="base.group_extended"/> |
589 | 106 | <field name="origin" groups="base.group_extended"/> | 110 | <field name="payment_term" widget="selection"/> |
590 | 107 | <newline/> | 111 | </group> |
591 | 108 | <field colspan="4" name="order_line" nolabel="1" mode="tree,form"> | 112 | <field colspan="4" name="order_line" nolabel="1" mode="tree,form"> |
592 | 109 | <tree colors="red:date_planned<=current_date;black:date_planned>current_date" string="Purchase Order Lines"> | 113 | <tree colors="red:date_planned<=current_date;black:date_planned>current_date" string="Purchase Order Lines"> |
593 | 110 | <field name="date_planned"/> | 114 | <field name="date_planned"/> |
594 | @@ -138,9 +142,8 @@ | |||
595 | 138 | <page string="Delivery & Invoices" groups="base.group_extended"> | 142 | <page string="Delivery & Invoices" groups="base.group_extended"> |
596 | 139 | <group colspan="2" col="2"> | 143 | <group colspan="2" col="2"> |
597 | 140 | <separator string="Delivery" colspan="2"/> | 144 | <separator string="Delivery" colspan="2"/> |
598 | 141 | <field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)"/> | ||
599 | 142 | <field name="minimum_planned_date"/> | ||
600 | 143 | <field name="location_id"/> | 145 | <field name="location_id"/> |
601 | 146 | <field name="origin" groups="base.group_extended"/> | ||
602 | 144 | </group> | 147 | </group> |
603 | 145 | <group colspan="2" col="2"> | 148 | <group colspan="2" col="2"> |
604 | 146 | <separator string="Invoice Control" colspan="2"/> | 149 | <separator string="Invoice Control" colspan="2"/> |
605 | 147 | 150 | ||
606 | === modified file 'sale/sale.py' | |||
607 | --- sale/sale.py 2010-09-03 04:58:47 +0000 | |||
608 | +++ sale/sale.py 2010-09-07 06:36:14 +0000 | |||
609 | @@ -165,6 +165,7 @@ | |||
610 | 165 | res[sale.id] = False | 165 | res[sale.id] = False |
611 | 166 | return res | 166 | return res |
612 | 167 | 167 | ||
613 | 168 | |||
614 | 168 | def _invoiced_search(self, cursor, user, obj, name, args, context=None): | 169 | def _invoiced_search(self, cursor, user, obj, name, args, context=None): |
615 | 169 | if context is None: | 170 | if context is None: |
616 | 170 | context = {} | 171 | context = {} |
617 | @@ -175,6 +176,92 @@ | |||
618 | 175 | for arg in args: | 176 | for arg in args: |
619 | 176 | if arg[1] == '=': | 177 | if arg[1] == '=': |
620 | 177 | if arg[2]: | 178 | if arg[2]: |
621 | 179 | clause += 'AND inv.state = \'open\'' | ||
622 | 180 | else: | ||
623 | 181 | clause += 'AND inv.state <> \'open\'' | ||
624 | 182 | no_invoiced = True | ||
625 | 183 | cursor.execute('SELECT rel.order_id ' \ | ||
626 | 184 | 'FROM sale_order_invoice_rel AS rel, account_invoice AS inv ' \ | ||
627 | 185 | 'WHERE rel.invoice_id = inv.id ' + clause) | ||
628 | 186 | res = cursor.fetchall() | ||
629 | 187 | if no_invoiced: | ||
630 | 188 | cursor.execute('SELECT sale.id ' \ | ||
631 | 189 | 'FROM sale_order AS sale ' \ | ||
632 | 190 | 'WHERE sale.id NOT IN ' \ | ||
633 | 191 | '(SELECT rel.order_id ' \ | ||
634 | 192 | 'FROM sale_order_invoice_rel AS rel)') | ||
635 | 193 | res.extend(cursor.fetchall()) | ||
636 | 194 | if not res: | ||
637 | 195 | return [('id', '=', 0)] | ||
638 | 196 | return [('id', 'in', [x[0] for x in res])] | ||
639 | 197 | |||
640 | 198 | def _paid(self, cursor, user, ids, name, arg, context=None): | ||
641 | 199 | if context is None: | ||
642 | 200 | context = {} | ||
643 | 201 | res = {} | ||
644 | 202 | for sale in self.browse(cursor, user, ids, context=context): | ||
645 | 203 | res[sale.id] = True | ||
646 | 204 | for invoice in sale.invoice_ids: | ||
647 | 205 | if invoice.reconciled != True: | ||
648 | 206 | res[sale.id] = False | ||
649 | 207 | break | ||
650 | 208 | if not sale.invoice_ids: | ||
651 | 209 | res[sale.id] = False | ||
652 | 210 | return res | ||
653 | 211 | |||
654 | 212 | def _paid_search(self, cursor, user, obj, name, args, context=None): | ||
655 | 213 | if context is None: | ||
656 | 214 | context = {} | ||
657 | 215 | if not len(args): | ||
658 | 216 | return [] | ||
659 | 217 | clause = '' | ||
660 | 218 | no_invoiced = False | ||
661 | 219 | for arg in args: | ||
662 | 220 | if arg[1] == '=': | ||
663 | 221 | if arg[2]: | ||
664 | 222 | clause += 'AND inv.state = \'open\'' | ||
665 | 223 | else: | ||
666 | 224 | clause += 'AND inv.state <> \'open\'' | ||
667 | 225 | no_invoiced = True | ||
668 | 226 | cursor.execute('SELECT rel.order_id ' \ | ||
669 | 227 | 'FROM sale_order_invoice_rel AS rel, account_invoice AS inv ' \ | ||
670 | 228 | 'WHERE rel.invoice_id = inv.id ' + clause) | ||
671 | 229 | res = cursor.fetchall() | ||
672 | 230 | if no_invoiced: | ||
673 | 231 | cursor.execute('SELECT sale.id ' \ | ||
674 | 232 | 'FROM sale_order AS sale ' \ | ||
675 | 233 | 'WHERE sale.id NOT IN ' \ | ||
676 | 234 | '(SELECT rel.order_id ' \ | ||
677 | 235 | 'FROM sale_order_invoice_rel AS rel)') | ||
678 | 236 | res.extend(cursor.fetchall()) | ||
679 | 237 | if not res: | ||
680 | 238 | return [('id', '=', 0)] | ||
681 | 239 | return [('id', 'in', [x[0] for x in res])] | ||
682 | 240 | |||
683 | 241 | def _paid(self, cursor, user, ids, name, arg, context=None): | ||
684 | 242 | if context is None: | ||
685 | 243 | context = {} | ||
686 | 244 | res = {} | ||
687 | 245 | for sale in self.browse(cursor, user, ids, context=context): | ||
688 | 246 | res[sale.id] = True | ||
689 | 247 | for invoice in sale.invoice_ids: | ||
690 | 248 | if invoice.reconciled != True: | ||
691 | 249 | res[sale.id] = False | ||
692 | 250 | break | ||
693 | 251 | if not sale.invoice_ids: | ||
694 | 252 | res[sale.id] = False | ||
695 | 253 | return res | ||
696 | 254 | |||
697 | 255 | def _paid_search(self, cursor, user, obj, name, args, context=None): | ||
698 | 256 | if context is None: | ||
699 | 257 | context = {} | ||
700 | 258 | if not len(args): | ||
701 | 259 | return [] | ||
702 | 260 | clause = '' | ||
703 | 261 | no_invoiced = False | ||
704 | 262 | for arg in args: | ||
705 | 263 | if arg[1] == '=': | ||
706 | 264 | if arg[2]: | ||
707 | 178 | clause += 'AND inv.state = \'paid\'' | 265 | clause += 'AND inv.state = \'paid\'' |
708 | 179 | else: | 266 | else: |
709 | 180 | clause += 'AND inv.state <> \'paid\'' | 267 | clause += 'AND inv.state <> \'paid\'' |
710 | @@ -250,8 +337,10 @@ | |||
711 | 250 | 'shipped': fields.boolean('Picked', readonly=True, help="It indicates that a picking has been done. It will be set to True if the ordered quantities are available and the picking is done. If the ordered quantities are not available it generates a Purchase/Manufacturing order. Unless its Picking and Purchase/Manufacturing order are not in the done state it wont be set to True"), | 337 | 'shipped': fields.boolean('Picked', readonly=True, help="It indicates that a picking has been done. It will be set to True if the ordered quantities are available and the picking is done. If the ordered quantities are not available it generates a Purchase/Manufacturing order. Unless its Picking and Purchase/Manufacturing order are not in the done state it wont be set to True"), |
712 | 251 | 'picked_rate': fields.function(_picked_rate, method=True, string='Picked', type='float'), | 338 | 'picked_rate': fields.function(_picked_rate, method=True, string='Picked', type='float'), |
713 | 252 | 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'), | 339 | 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'), |
716 | 253 | 'invoiced': fields.function(_invoiced, method=True, string='Paid', | 340 | 'invoiced': fields.function(_invoiced, method=True, string='Invoiced', |
717 | 254 | fnct_search=_invoiced_search, type='boolean', help="It indicates that an invoice has been paid"), | 341 | fnct_search=_invoiced_search, type='boolean', help="It indicates that an invoice has been invoiced"), |
718 | 342 | 'paid': fields.function(_invoiced, method=True, string='Paid', | ||
719 | 343 | fnct_search=_paid_search, type='boolean', help="It indicates that an invoice has been paid"), | ||
720 | 255 | 'note': fields.text('Notes'), | 344 | 'note': fields.text('Notes'), |
721 | 256 | 345 | ||
722 | 257 | 'amount_untaxed': fields.function(_amount_all, method=True, digits_compute= dp.get_precision('Sale Price'), string='Untaxed Amount', | 346 | 'amount_untaxed': fields.function(_amount_all, method=True, digits_compute= dp.get_precision('Sale Price'), string='Untaxed Amount', |
723 | @@ -276,7 +365,7 @@ | |||
724 | 276 | 'invoice_quantity': fields.selection([('order', 'Ordered Quantities'), ('procurement', 'Shipped Quantities')], 'Invoice on', help="The sale order will automatically create the invoice proposition (draft invoice). Ordered and delivered quantities may not be the same. You have to choose if you invoice based on ordered or shipped quantities. If the product is a service, shipped quantities means hours spent on the associated tasks.", required=True), | 365 | 'invoice_quantity': fields.selection([('order', 'Ordered Quantities'), ('procurement', 'Shipped Quantities')], 'Invoice on', help="The sale order will automatically create the invoice proposition (draft invoice). Ordered and delivered quantities may not be the same. You have to choose if you invoice based on ordered or shipped quantities. If the product is a service, shipped quantities means hours spent on the associated tasks.", required=True), |
725 | 277 | 'payment_term': fields.many2one('account.payment.term', 'Payment Term'), | 366 | 'payment_term': fields.many2one('account.payment.term', 'Payment Term'), |
726 | 278 | 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'), | 367 | 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'), |
728 | 279 | 'company_id': fields.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True) | 368 | 'company_id': fields.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True), |
729 | 280 | } | 369 | } |
730 | 281 | _defaults = { | 370 | _defaults = { |
731 | 282 | 'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'sale.order', context=c), | 371 | 'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'sale.order', context=c), |
732 | @@ -290,6 +379,8 @@ | |||
733 | 290 | 'partner_invoice_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['invoice'])['invoice'], | 379 | 'partner_invoice_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['invoice'])['invoice'], |
734 | 291 | 'partner_order_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['contact'])['contact'], | 380 | 'partner_order_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['contact'])['contact'], |
735 | 292 | 'partner_shipping_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['delivery'])['delivery'], | 381 | 'partner_shipping_id': lambda self, cr, uid, context: context.get('partner_id', False) and self.pool.get('res.partner').address_get(cr, uid, [context['partner_id']], ['delivery'])['delivery'], |
736 | 382 | |||
737 | 383 | |||
738 | 293 | } | 384 | } |
739 | 294 | _order = 'name desc' | 385 | _order = 'name desc' |
740 | 295 | 386 | ||
741 | @@ -800,7 +891,7 @@ | |||
742 | 800 | 'order_id': fields.many2one('sale.order', 'Order Reference', required=True, ondelete='cascade', select=True, readonly=True, states={'draft':[('readonly',False)]}), | 891 | 'order_id': fields.many2one('sale.order', 'Order Reference', required=True, ondelete='cascade', select=True, readonly=True, states={'draft':[('readonly',False)]}), |
743 | 801 | 'name': fields.char('Description', size=256, required=True, select=True, readonly=True, states={'draft':[('readonly',False)]}), | 892 | 'name': fields.char('Description', size=256, required=True, select=True, readonly=True, states={'draft':[('readonly',False)]}), |
744 | 802 | 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of sale order lines."), | 893 | 'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of sale order lines."), |
746 | 803 | 'delay': fields.float('Delivery Lead Time', required=True, help="Number of days between the order confirmation the the shipping of the products to the customer", readonly=True, states={'draft':[('readonly',False)]}), | 894 | 'delay': fields.float('Delivery Lead Time', required=True, help="Number of days between the order confirmation and the shipping of the products to the customer", readonly=True, states={'draft':[('readonly',False)]}), |
747 | 804 | 'product_id': fields.many2one('product.product', 'Product', domain=[('sale_ok', '=', True)], change_default=True), | 895 | 'product_id': fields.many2one('product.product', 'Product', domain=[('sale_ok', '=', True)], change_default=True), |
748 | 805 | 'invoice_lines': fields.many2many('account.invoice.line', 'sale_order_line_invoice_rel', 'order_line_id', 'invoice_id', 'Invoice Lines', readonly=True), | 896 | 'invoice_lines': fields.many2many('account.invoice.line', 'sale_order_line_invoice_rel', 'order_line_id', 'invoice_id', 'Invoice Lines', readonly=True), |
749 | 806 | 'invoiced': fields.boolean('Invoiced', readonly=True), | 897 | 'invoiced': fields.boolean('Invoiced', readonly=True), |
750 | @@ -830,6 +921,7 @@ | |||
751 | 830 | 'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', string='Customer'), | 921 | 'order_partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', string='Customer'), |
752 | 831 | 'salesman_id':fields.related('order_id', 'user_id', type='many2one', relation='res.users', string='Salesman'), | 922 | 'salesman_id':fields.related('order_id', 'user_id', type='many2one', relation='res.users', string='Salesman'), |
753 | 832 | 'company_id': fields.related('order_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True, states={'draft':[('readonly',False)]}), | 923 | 'company_id': fields.related('order_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True, states={'draft':[('readonly',False)]}), |
754 | 924 | |||
755 | 833 | } | 925 | } |
756 | 834 | _order = 'sequence, id' | 926 | _order = 'sequence, id' |
757 | 835 | _defaults = { | 927 | _defaults = { |
758 | 836 | 928 | ||
759 | === modified file 'sale/sale_view.xml' | |||
760 | --- sale/sale_view.xml 2010-09-03 06:17:18 +0000 | |||
761 | +++ sale/sale_view.xml 2010-09-07 06:36:14 +0000 | |||
762 | @@ -102,21 +102,27 @@ | |||
763 | 102 | <group col="6" colspan="4"> | 102 | <group col="6" colspan="4"> |
764 | 103 | <field name="name"/> | 103 | <field name="name"/> |
765 | 104 | <field name="date_order"/> | 104 | <field name="date_order"/> |
767 | 105 | <field name="shipped"/> | 105 | <field name="company_id" groups="base.group_multi_company" readonly="1"/> |
768 | 106 | <field name="partner_id" on_change="onchange_partner_id(partner_id)" required="1" colspan="4"/> | ||
769 | 106 | <field name="client_order_ref"/> | 107 | <field name="client_order_ref"/> |
772 | 107 | <field name="shop_id" on_change="onchange_shop_id(shop_id)" widget="selection"/> | 108 | <field domain="[('partner_id','=',partner_id)]" name="partner_invoice_id" colspan="4"/> |
773 | 108 | <field name="invoiced"/> | 109 | <newline/> |
774 | 109 | </group> | 110 | </group> |
775 | 110 | <notebook colspan="5"> | 111 | <notebook colspan="5"> |
776 | 111 | <page string="Sale Order"> | 112 | <page string="Sale Order"> |
781 | 112 | <field name="partner_id" on_change="onchange_partner_id(partner_id)" required="1"/> | 113 | <group col="6" colspan="4"> |
782 | 113 | <field domain="[('partner_id','=',partner_id)]" name="partner_order_id"/> | 114 | <field domain="[('partner_id','=',partner_id)]" name="partner_shipping_id" colspan="4"/> |
783 | 114 | <field domain="[('partner_id','=',partner_id)]" name="partner_invoice_id" groups="base.group_extended"/> | 115 | <field name="shipped"/> |
784 | 115 | <field domain="[('partner_id','=',partner_id)]" name="partner_shipping_id" groups="base.group_extended"/> | 116 | <!-- FIXME here we should see the contact - base_contact issue? --> |
785 | 117 | <field domain="[('partner_id','=',partner_id)]" name="partner_order_id" colspan="4"/> | ||
786 | 118 | <field name="invoiced"/> | ||
787 | 119 | <field name="shop_id" on_change="onchange_shop_id(shop_id)" widget="selection"/> | ||
788 | 120 | <label align="0.0" string="(Expected date)" colspan="2"/> | ||
789 | 121 | <field name="paid"/> | ||
790 | 116 | <field domain="[('type','=','sale')]" name="pricelist_id" groups="base.group_extended"/> | 122 | <field domain="[('type','=','sale')]" name="pricelist_id" groups="base.group_extended"/> |
794 | 117 | <field name="project_id" | 123 | <field name="payment_term" widget="selection"/> |
795 | 118 | context="{'partner_id':partner_id, 'contact_id':partner_order_id, 'pricelist_id':pricelist_id, 'default_name':name}" | 124 | <label align="0.0" string="backorder" colspan="2"/> |
796 | 119 | groups="base.group_extended" domain="[('parent_id','!=',False)]" /> | 125 | </group> |
797 | 120 | <newline/> | 126 | <newline/> |
798 | 121 | <field colspan="4" mode="tree,form,graph" name="order_line" nolabel="1" widget="one2many_list"> | 127 | <field colspan="4" mode="tree,form,graph" name="order_line" nolabel="1" widget="one2many_list"> |
799 | 122 | <form string="Sale Order Lines"> | 128 | <form string="Sale Order Lines"> |
800 | @@ -143,11 +149,11 @@ | |||
801 | 143 | domain="[('product_id','=',product_id)]" | 149 | domain="[('product_id','=',product_id)]" |
802 | 144 | groups="base.group_extended"/> | 150 | groups="base.group_extended"/> |
803 | 145 | 151 | ||
805 | 146 | <field name="company_id" groups="base.group_multi_company" readonly="1"/> | 152 | |
806 | 147 | <field colspan="4" name="name"/> | 153 | <field colspan="4" name="name"/> |
807 | 148 | <field name="price_unit"/> | 154 | <field name="price_unit"/> |
808 | 149 | <field name="discount"/> | 155 | <field name="discount"/> |
810 | 150 | <field name="type" groups="base.group_extended"/> | 156 | <field name="type" groups="base.group_extended"/> |
811 | 151 | <field name="delay" groups="base.group_extended"/> | 157 | <field name="delay" groups="base.group_extended"/> |
812 | 152 | <newline/> | 158 | <newline/> |
813 | 153 | <separator colspan="5" string="Taxes"/> | 159 | <separator colspan="5" string="Taxes"/> |
814 | @@ -228,9 +234,10 @@ | |||
815 | 228 | </group> | 234 | </group> |
816 | 229 | <group colspan="2" col="2" groups="base.group_extended"> | 235 | <group colspan="2" col="2" groups="base.group_extended"> |
817 | 230 | <separator string="Conditions" colspan="2"/> | 236 | <separator string="Conditions" colspan="2"/> |
819 | 231 | <field name="payment_term" widget="selection"/> | 237 | <field name="project_id" |
820 | 238 | context="{'partner_id':partner_id, 'contact_id':partner_order_id, 'pricelist_id':pricelist_id, 'default_name':name}" | ||
821 | 239 | groups="base.group_extended" domain="[('parent_id','!=',False)]" /> | ||
822 | 232 | <field name="fiscal_position" widget="selection"/> | 240 | <field name="fiscal_position" widget="selection"/> |
823 | 233 | <field name="company_id" widget="selection" groups="base.group_multi_company"/> | ||
824 | 234 | </group> | 241 | </group> |
825 | 235 | <group colspan="2" col="2" groups="base.group_extended"> | 242 | <group colspan="2" col="2" groups="base.group_extended"> |
826 | 236 | <separator string="Dates" colspan="2"/> | 243 | <separator string="Dates" colspan="2"/> |
827 | 237 | 244 | ||
828 | === modified file 'sale/stock_view.xml' | |||
829 | --- sale/stock_view.xml 2010-08-25 19:07:01 +0000 | |||
830 | +++ sale/stock_view.xml 2010-09-07 06:36:14 +0000 | |||
831 | @@ -7,25 +7,37 @@ | |||
832 | 7 | <field name="type">form</field> | 7 | <field name="type">form</field> |
833 | 8 | <field name="inherit_id" ref="stock.view_picking_form"/> | 8 | <field name="inherit_id" ref="stock.view_picking_form"/> |
834 | 9 | <field name="arch" type="xml"> | 9 | <field name="arch" type="xml"> |
836 | 10 | <field name="active" position="after"> | 10 | <field name="backorder_id" position="after"> |
837 | 11 | <field name="sale_id"/> | 11 | <field name="sale_id"/> |
838 | 12 | </field> | 12 | </field> |
839 | 13 | </field> | 13 | </field> |
840 | 14 | </record> | 14 | </record> |
842 | 15 | 15 | ||
843 | 16 | <!-- Adding Sale Order Reference to outgoing picking --> | 16 | <!-- Adding Sale Order Reference to outgoing picking --> |
845 | 17 | 17 | ||
846 | 18 | <record id="stock_picking_out_inherit_sale" model="ir.ui.view"> | 18 | <record id="stock_picking_out_inherit_sale" model="ir.ui.view"> |
847 | 19 | <field name="name">Outgoing picking Inherited</field> | 19 | <field name="name">Outgoing picking Inherited</field> |
848 | 20 | <field name="model">stock.picking</field> | 20 | <field name="model">stock.picking</field> |
849 | 21 | <field name="type">form</field> | 21 | <field name="type">form</field> |
850 | 22 | <field name="inherit_id" ref="stock.view_picking_out_form"/> | 22 | <field name="inherit_id" ref="stock.view_picking_out_form"/> |
851 | 23 | <field name="arch" type="xml"> | 23 | <field name="arch" type="xml"> |
853 | 24 | <field name="move_type" position="after"> | 24 | <field name="backorder_id" position="after"> |
854 | 25 | <field name="sale_id"/> | 25 | <field name="sale_id"/> |
855 | 26 | </field> | 26 | </field> |
856 | 27 | </field> | 27 | </field> |
857 | 28 | </record> | 28 | </record> |
858 | 29 | 29 | ||
859 | 30 | <!-- | ||
860 | 31 | see https://bugs.launchpad.net/openobject-server/+bug/601480 | ||
861 | 32 | --> | ||
862 | 33 | <act_window | ||
863 | 34 | domain="[('sale_id', '=', active_id),('type','=','out')]" | ||
864 | 35 | id="act_purchase_order_2_stock_picking" | ||
865 | 36 | view_id="view.picking.out.tree" | ||
866 | 37 | name="Outgoing Orders" | ||
867 | 38 | res_model="stock.picking" | ||
868 | 39 | src_model="sale.order" | ||
869 | 40 | context="{'contact_display': 'partner'}" /> | ||
870 | 41 | |||
871 | 30 | </data> | 42 | </data> |
872 | 31 | </openerp> | 43 | </openerp> |
873 | 32 | 44 | ||
874 | === modified file 'sale_order_dates/sale_order_dates_view.xml' | |||
875 | --- sale_order_dates/sale_order_dates_view.xml 2010-06-30 10:31:08 +0000 | |||
876 | +++ sale_order_dates/sale_order_dates_view.xml 2010-09-07 06:36:14 +0000 | |||
877 | @@ -11,11 +11,21 @@ | |||
878 | 11 | <field name="date_confirm" position="after"> | 11 | <field name="date_confirm" position="after"> |
879 | 12 | <field name="commitment_date"/> | 12 | <field name="commitment_date"/> |
880 | 13 | <field name="effective_date"/> | 13 | <field name="effective_date"/> |
881 | 14 | </field> | ||
882 | 15 | </field> | ||
883 | 16 | </record> | ||
884 | 17 | |||
885 | 18 | <record id="view_sale_orderfor_a" model="ir.ui.view"> | ||
886 | 19 | <field name="name">sale.order.form.inherit5a</field> | ||
887 | 20 | <field name="model">sale.order</field> | ||
888 | 21 | <field name="type">form</field> | ||
889 | 22 | <field name="inherit_id" ref="view_sale_orderfor"/> | ||
890 | 23 | <field name="arch" type="xml"> | ||
891 | 24 | <field name="partner_invoice_id" position="after"> | ||
892 | 14 | <field name="requested_date"/> | 25 | <field name="requested_date"/> |
893 | 15 | </field> | 26 | </field> |
894 | 16 | </field> | 27 | </field> |
895 | 17 | </record> | 28 | </record> |
896 | 18 | 29 | ||
897 | 19 | |||
898 | 20 | </data> | 30 | </data> |
899 | 21 | </openerp> | 31 | </openerp> |
900 | 22 | 32 | ||
901 | === modified file 'stock/stock_view.xml' | |||
902 | --- stock/stock_view.xml 2010-09-03 06:17:18 +0000 | |||
903 | +++ stock/stock_view.xml 2010-09-07 06:36:14 +0000 | |||
904 | @@ -564,17 +564,21 @@ | |||
905 | 564 | <field name="name">stock.picking.form</field> | 564 | <field name="name">stock.picking.form</field> |
906 | 565 | <field name="model">stock.picking</field> | 565 | <field name="model">stock.picking</field> |
907 | 566 | <field name="type">form</field> | 566 | <field name="type">form</field> |
908 | 567 | <field eval="12" name="priority"/> | ||
909 | 567 | <field name="arch" type="xml"> | 568 | <field name="arch" type="xml"> |
910 | 568 | <form string="Picking list"> | 569 | <form string="Picking list"> |
911 | 569 | <group colspan="4" col="6"> | 570 | <group colspan="4" col="6"> |
912 | 570 | <field name="name" readonly="1"/> | 571 | <field name="name" readonly="1"/> |
913 | 572 | <field name="date"/> | ||
914 | 573 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
915 | 574 | <field name="address_id" required="1" colspan="4"/> | ||
916 | 571 | <field name="origin"/> | 575 | <field name="origin"/> |
917 | 576 | <newline/> | ||
918 | 577 | <field name="min_date"/> | ||
919 | 572 | <field name="backorder_id" groups="base.group_extended" readonly="1"/> | 578 | <field name="backorder_id" groups="base.group_extended" readonly="1"/> |
923 | 573 | <field name="date"/> | 579 | <newline/> |
924 | 574 | <field name="min_date"/> | 580 | <field name="type" readonly="1"/> |
922 | 575 | <field name="type"/> | ||
925 | 576 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | 581 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> |
926 | 577 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
927 | 578 | </group> | 582 | </group> |
928 | 579 | <notebook colspan="4"> | 583 | <notebook colspan="4"> |
929 | 580 | <page string="General Information"> | 584 | <page string="General Information"> |
930 | @@ -741,14 +745,15 @@ | |||
931 | 741 | <form string="Picking list"> | 745 | <form string="Picking list"> |
932 | 742 | <group col="6" colspan="4" attrs="{'readonly': [('state','not in',['draft','auto'])]}"> | 746 | <group col="6" colspan="4" attrs="{'readonly': [('state','not in',['draft','auto'])]}"> |
933 | 743 | <field name="name" readonly="1"/> | 747 | <field name="name" readonly="1"/> |
935 | 744 | <field name="address_id" required="1"/> | 748 | <field name="date"/> |
936 | 749 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
937 | 750 | <field name="address_id" required="1" colspan="4"/> | ||
938 | 745 | <field name="origin"/> | 751 | <field name="origin"/> |
939 | 752 | <field name="min_date"/> | ||
940 | 746 | <field name="backorder_id" groups="base.group_extended" readonly="1"/> | 753 | <field name="backorder_id" groups="base.group_extended" readonly="1"/> |
943 | 747 | <field name="date" /> | 754 | <newline/> |
944 | 748 | <field name="min_date"/> | 755 | <field name="type" readonly="1"/> |
945 | 749 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | 756 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> |
946 | 750 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
947 | 751 | <field name="type" invisible="1"/> | ||
948 | 752 | </group> | 757 | </group> |
949 | 753 | <notebook colspan="4"> | 758 | <notebook colspan="4"> |
950 | 754 | <page string="General Information"> | 759 | <page string="General Information"> |
951 | @@ -830,7 +835,7 @@ | |||
952 | 830 | </page> | 835 | </page> |
953 | 831 | <page string="Return Picking History"> | 836 | <page string="Return Picking History"> |
954 | 832 | <field name="move_stock_return_history" nolabel="1"/> | 837 | <field name="move_stock_return_history" nolabel="1"/> |
956 | 833 | </page> | 838 | </page> |
957 | 834 | </notebook> | 839 | </notebook> |
958 | 835 | </form> | 840 | </form> |
959 | 836 | </field> | 841 | </field> |
960 | @@ -944,16 +949,18 @@ | |||
961 | 944 | <field name="type">form</field> | 949 | <field name="type">form</field> |
962 | 945 | <field name="arch" type="xml"> | 950 | <field name="arch" type="xml"> |
963 | 946 | <form string="Picking list"> | 951 | <form string="Picking list"> |
966 | 947 | <group col="6" colspan="4"> | 952 | <group col="6" colspan="4"> |
967 | 948 | <field name="address_id" required="1" /> | 953 | <field name="name" readonly="1"/> |
968 | 954 | <field name="date"/> | ||
969 | 955 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
970 | 956 | <field name="address_id" required="1" colspan="4"/> | ||
971 | 957 | <field name="origin" readonly="1"/> | ||
972 | 949 | <field name="min_date"/> | 958 | <field name="min_date"/> |
974 | 950 | <field name="name" readonly="1"/> | 959 | <field name="backorder_id" readonly="1"/> |
975 | 960 | <newline/> | ||
976 | 961 | <field name="type" readonly="1"/> | ||
977 | 962 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | ||
978 | 951 | <field name="invoice_state"/> | 963 | <field name="invoice_state"/> |
979 | 952 | <field name="backorder_id" readonly="1"/> | ||
980 | 953 | <field name="origin" readonly="1"/> | ||
981 | 954 | <field name="type" invisible="1"/> | ||
982 | 955 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | ||
983 | 956 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
984 | 957 | </group> | 964 | </group> |
985 | 958 | <notebook colspan="4"> | 965 | <notebook colspan="4"> |
986 | 959 | <page string="General Information"> | 966 | <page string="General Information"> |
987 | @@ -1143,15 +1150,15 @@ | |||
988 | 1143 | <form string="Input Picking List"> | 1150 | <form string="Input Picking List"> |
989 | 1144 | <group colspan="4" col="6"> | 1151 | <group colspan="4" col="6"> |
990 | 1145 | <field name="name" readonly="1"/> | 1152 | <field name="name" readonly="1"/> |
992 | 1146 | <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" required="1" /> | 1153 | <field name="date"/> |
993 | 1154 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
994 | 1155 | <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" required="1" colspan="4"/> | ||
995 | 1147 | <field name="origin"/> | 1156 | <field name="origin"/> |
996 | 1157 | <field name="min_date" readonly="1"/> | ||
997 | 1148 | <field name="backorder_id" readonly="1" groups="base.group_extended"/> | 1158 | <field name="backorder_id" readonly="1" groups="base.group_extended"/> |
1001 | 1149 | <field name="date"/> | 1159 | <field name="type" readonly="1"/> |
1002 | 1150 | <field name="type"/> | 1160 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> |
1000 | 1151 | <field name="min_date" readonly="1"/> | ||
1003 | 1152 | <field name="invoice_state" string="Invoice Control"/> | 1161 | <field name="invoice_state" string="Invoice Control"/> |
1004 | 1153 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | ||
1005 | 1154 | <field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
1006 | 1155 | </group> | 1162 | </group> |
1007 | 1156 | <notebook colspan="4"> | 1163 | <notebook colspan="4"> |
1008 | 1157 | <page string="General Information"> | 1164 | <page string="General Information"> |
1009 | @@ -1221,7 +1228,7 @@ | |||
1010 | 1221 | <page string="Return Picking History"> | 1228 | <page string="Return Picking History"> |
1011 | 1222 | <field name="move_stock_return_history" nolabel="1"/> | 1229 | <field name="move_stock_return_history" nolabel="1"/> |
1012 | 1223 | </page> | 1230 | </page> |
1014 | 1224 | 1231 | ||
1015 | 1225 | </notebook> | 1232 | </notebook> |
1016 | 1226 | </form> | 1233 | </form> |
1017 | 1227 | </field> | 1234 | </field> |
1018 | @@ -1444,7 +1451,7 @@ | |||
1019 | 1444 | </page> | 1451 | </page> |
1020 | 1445 | <page string="Return Picking History"> | 1452 | <page string="Return Picking History"> |
1021 | 1446 | <field name="move_stock_return_history" nolabel="1"/> | 1453 | <field name="move_stock_return_history" nolabel="1"/> |
1023 | 1447 | </page> | 1454 | </page> |
1024 | 1448 | </notebook> | 1455 | </notebook> |
1025 | 1449 | <group col="6" colspan="4"> | 1456 | <group col="6" colspan="4"> |
1026 | 1450 | <field name="state"/> | 1457 | <field name="state"/> |
1027 | @@ -1604,7 +1611,7 @@ | |||
1028 | 1604 | </page> | 1611 | </page> |
1029 | 1605 | <page string="Return Picking History"> | 1612 | <page string="Return Picking History"> |
1030 | 1606 | <field name="move_stock_return_history" nolabel="1"/> | 1613 | <field name="move_stock_return_history" nolabel="1"/> |
1032 | 1607 | </page> | 1614 | </page> |
1033 | 1608 | </notebook> | 1615 | </notebook> |
1034 | 1609 | </form> | 1616 | </form> |
1035 | 1610 | </field> | 1617 | </field> |
1036 | @@ -1744,7 +1751,7 @@ | |||
1037 | 1744 | <field name="name">Products</field> | 1751 | <field name="name">Products</field> |
1038 | 1745 | <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/> | 1752 | <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/> |
1039 | 1746 | <field eval="True" name="object"/> | 1753 | <field eval="True" name="object"/> |
1041 | 1747 | </record> | 1754 | </record> |
1042 | 1748 | 1755 | ||
1043 | 1749 | 1756 | ||
1044 | 1750 | <record id="ir_act_product_location_open" model="ir.values"> | 1757 | <record id="ir_act_product_location_open" model="ir.values"> |
1045 | @@ -1753,7 +1760,7 @@ | |||
1046 | 1753 | <field name="name">Open Products</field> | 1760 | <field name="name">Open Products</field> |
1047 | 1754 | <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/> | 1761 | <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/> |
1048 | 1755 | <field eval="True" name="object"/> | 1762 | <field eval="True" name="object"/> |
1050 | 1756 | </record> | 1763 | </record> |
1051 | 1757 | 1764 | ||
1052 | 1758 | <!-- Graph Views --> | 1765 | <!-- Graph Views --> |
1053 | 1759 | <!-- Products To Received Vs Planned --> | 1766 | <!-- Products To Received Vs Planned --> |
Hello Ferdinand,
i think that something went wrong with your branches, all your branches related to SOPO seems to share the same diff.
Besides, there are not onyl changes related to xml changes (but also in .py files).
And i must admit that even if the 2 above points would be fixed i'm not sure we would accept this branch. You certainly have noticed that we improved a lot the usability in v6 and, due to our slowness, your suggestion are probably deprecated now.
But thank you a lot for your interest and contribution,
Quentin