Merge lp:~cv.clearcorp/openerp-ccorp-addons/7.0-account_payment_term_security into lp:openerp-ccorp-addons/7.0
- 7.0-account_payment_term_security
- Merge into 7.0
Proposed by
Carlos Vásquez (ClearCorp)
Status: | Merged |
---|---|
Merged at revision: | 876 |
Proposed branch: | lp:~cv.clearcorp/openerp-ccorp-addons/7.0-account_payment_term_security |
Merge into: | lp:openerp-ccorp-addons/7.0 |
Diff against target: |
443 lines (+237/-42) 11 files modified
account_invoice_payment_term_date_due_security/__init__.py (+2/-1) account_invoice_payment_term_date_due_security/__openerp__.py (+2/-1) account_invoice_payment_term_date_due_security/account_invoice_inherit.py (+1/-0) account_invoice_payment_term_date_due_security/account_invoice_inherit.xml (+60/-3) account_invoice_payment_term_date_due_security/i18n/account_invoice_payment_term_date_due_security.pot (+11/-8) account_invoice_payment_term_date_due_security/i18n/es.po (+13/-7) account_invoice_payment_term_date_due_security/purchase_order_inherit.py (+58/-0) account_invoice_payment_term_date_due_security/purchase_order_inherit.xml (+51/-0) account_invoice_payment_term_date_due_security/sale_order_inherit.py (+12/-3) account_invoice_payment_term_date_due_security/sale_order_inherit.xml (+6/-5) account_invoice_payment_term_date_due_security/security/account_invoice_payment_term_date_due_security.xml (+21/-14) |
To merge this branch: | bzr merge lp:~cv.clearcorp/openerp-ccorp-addons/7.0-account_payment_term_security |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ClearCorp drivers | Pending | ||
Review via email: mp+222968@code.launchpad.net |
Commit message
Description of the change
[FIX] Fix bug in sale order view
[ADD] Add security in purchase order and supplier invoice for payment_term field
To post a comment you must log in.
- 875. By Carlos Vásquez (ClearCorp)
-
[FIX] Fix translations for account_
invoice_ payment_ term_date_ due_security report - 876. By Carlos Vásquez (ClearCorp)
-
[FIX] Fix translations (again) for account_
invoice_ payment_ term_date_ due_security module
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'account_invoice_payment_term_date_due_security/__init__.py' |
2 | --- account_invoice_payment_term_date_due_security/__init__.py 2014-06-11 14:33:23 +0000 |
3 | +++ account_invoice_payment_term_date_due_security/__init__.py 2014-06-12 17:51:37 +0000 |
4 | @@ -21,4 +21,5 @@ |
5 | ############################################################################## |
6 | |
7 | import account_invoice_inherit |
8 | -import sale_order_inherit |
9 | \ No newline at end of file |
10 | +import sale_order_inherit |
11 | +import purchase_order_inherit |
12 | \ No newline at end of file |
13 | |
14 | === modified file 'account_invoice_payment_term_date_due_security/__openerp__.py' |
15 | --- account_invoice_payment_term_date_due_security/__openerp__.py 2014-06-11 14:33:23 +0000 |
16 | +++ account_invoice_payment_term_date_due_security/__openerp__.py 2014-06-12 17:51:37 +0000 |
17 | @@ -32,11 +32,12 @@ |
18 | it adds security on payment term in sale order |
19 | """, |
20 | 'website' : 'http://clearcorp.co.cr', |
21 | - 'depends' : ['base','account','sale'], |
22 | + 'depends' : ['base','account','sale','purchase'], |
23 | 'data' : [ |
24 | 'security/account_invoice_payment_term_date_due_security.xml', |
25 | 'account_invoice_inherit.xml', |
26 | 'sale_order_inherit.xml', |
27 | + 'purchase_order_inherit.xml', |
28 | ], |
29 | 'installable': True, |
30 | 'auto_install': False, |
31 | |
32 | === modified file 'account_invoice_payment_term_date_due_security/account_invoice_inherit.py' |
33 | --- account_invoice_payment_term_date_due_security/account_invoice_inherit.py 2014-06-11 14:33:23 +0000 |
34 | +++ account_invoice_payment_term_date_due_security/account_invoice_inherit.py 2014-06-12 17:51:37 +0000 |
35 | @@ -68,6 +68,7 @@ |
36 | #Call method to change date_due |
37 | res = super(accountInvoiceinherit, self).onchange_payment_term_date_invoice(cr, uid, ids, payment_term_visible, date_invoice) |
38 | res['value'].update({'payment_term':payment_term_visible}) |
39 | + res['value'].update({'date_due_visible': res['value']['date_due']}) |
40 | |
41 | return res |
42 | |
43 | |
44 | === modified file 'account_invoice_payment_term_date_due_security/account_invoice_inherit.xml' |
45 | --- account_invoice_payment_term_date_due_security/account_invoice_inherit.xml 2014-06-11 14:33:23 +0000 |
46 | +++ account_invoice_payment_term_date_due_security/account_invoice_inherit.xml 2014-06-12 17:51:37 +0000 |
47 | @@ -23,7 +23,7 @@ |
48 | </data> |
49 | </field> |
50 | </record> |
51 | - |
52 | + |
53 | <record id="account_invoice_payment_term_no_group" model="ir.ui.view"> |
54 | <field name="name">account.invoice.payment.no.group</field> |
55 | <field name="model">account.invoice</field> |
56 | @@ -55,7 +55,64 @@ |
57 | <attribute name="readonly">0</attribute> |
58 | </field> |
59 | </field> |
60 | - </record> |
61 | - |
62 | + </record> |
63 | + |
64 | + <record id="account_invoice_payment_term_date_due_inherit_supplier" model="ir.ui.view"> |
65 | + <field name="name">account.invoice.payment.term.date.due.inherit.supplier</field> |
66 | + <field name="model">account.invoice</field> |
67 | + <field name="type">form</field> |
68 | + <field name="inherit_id" ref="account.invoice_supplier_form"/> |
69 | + <field name="arch" type="xml"> |
70 | + <data> |
71 | + <field name = "date_due" position="attributes"> |
72 | + <attribute name="attrs">{'invisible': True}</attribute> |
73 | + </field> |
74 | + <field name = "date_due" position="after" version="7.0"> |
75 | + <field name="date_due_visible" /> |
76 | + </field> |
77 | + <field name = "payment_term" position="attributes"> |
78 | + <attribute name="attrs">{'invisible': True}</attribute> |
79 | + </field> |
80 | + <field name = "payment_term" position="after" version="7.0"> |
81 | + <field name="payment_term_visible" on_change="onchange_payment_term_visible(payment_term_visible, date_invoice)" class="oe_inline"/> |
82 | + </field> |
83 | + </data> |
84 | + </field> |
85 | + </record> |
86 | + |
87 | + <record id="account_invoice_payment_term_no_group_supplier" model="ir.ui.view"> |
88 | + <field name="name">account.invoice.payment.no.group.supplier</field> |
89 | + <field name="model">account.invoice</field> |
90 | + <field name="type">form</field> |
91 | + <field name="priority" eval="10"/> |
92 | + <field name="inherit_id" ref="account_invoice_payment_term_date_due_inherit_supplier"/> |
93 | + <field name="arch" type="xml"> |
94 | + <field name="date_due_visible" position="attributes"> |
95 | + <attribute name="readonly">1</attribute> |
96 | + </field> |
97 | + <field name="payment_term_visible" position="attributes"> |
98 | + <attribute name="readonly">1</attribute> |
99 | + </field> |
100 | + </field> |
101 | + </record> |
102 | + |
103 | + <record id="account_invoice_payment_term_group_supplier" model="ir.ui.view"> |
104 | + <field name="name">account.invoice.payment.group.supplier</field> |
105 | + <field name="model">account.invoice</field> |
106 | + <field name="type">form</field> |
107 | + <field name="priority" eval="20"/> |
108 | + <field name="groups_id" eval="[(4, ref('account_invoice_payment_term_date_due_security.group_account_payment_term_date_due_security'))]"/> |
109 | + <field name="inherit_id" ref="account_invoice_payment_term_date_due_inherit_supplier"/> |
110 | + <field name="arch" type="xml"> |
111 | + <field name="date_due_visible" position="attributes"> |
112 | + <attribute name="readonly">0</attribute> |
113 | + </field> |
114 | + <field name="payment_term_visible" position="attributes"> |
115 | + <attribute name="readonly">0</attribute> |
116 | + </field> |
117 | + </field> |
118 | + </record> |
119 | + |
120 | + |
121 | </data> |
122 | </openerp> |
123 | |
124 | === modified file 'account_invoice_payment_term_date_due_security/i18n/account_invoice_payment_term_date_due_security.pot' |
125 | --- account_invoice_payment_term_date_due_security/i18n/account_invoice_payment_term_date_due_security.pot 2014-06-11 14:33:23 +0000 |
126 | +++ account_invoice_payment_term_date_due_security/i18n/account_invoice_payment_term_date_due_security.pot 2014-06-12 17:51:37 +0000 |
127 | @@ -6,8 +6,8 @@ |
128 | msgstr "" |
129 | "Project-Id-Version: OpenERP Server 7.0\n" |
130 | "Report-Msgid-Bugs-To: \n" |
131 | -"POT-Creation-Date: 2014-06-11 01:22+0000\n" |
132 | -"PO-Revision-Date: 2014-06-11 01:22+0000\n" |
133 | +"POT-Creation-Date: 2014-06-12 17:06+0000\n" |
134 | +"PO-Revision-Date: 2014-06-12 17:06+0000\n" |
135 | "Last-Translator: <>\n" |
136 | "Language-Team: \n" |
137 | "MIME-Version: 1.0\n" |
138 | @@ -21,12 +21,6 @@ |
139 | msgstr "" |
140 | |
141 | #. module: account_invoice_payment_term_date_due_security |
142 | -#: view:account.invoice:0 |
143 | -#: view:sale.order:0 |
144 | -msgid "{'invisible': True}" |
145 | -msgstr "" |
146 | - |
147 | -#. module: account_invoice_payment_term_date_due_security |
148 | #: field:account.invoice,date_due_visible:0 |
149 | msgid "Due Date" |
150 | msgstr "" |
151 | @@ -57,3 +51,12 @@ |
152 | msgid "Sales Order" |
153 | msgstr "" |
154 | |
155 | +#. module: account_invoice_payment_term_date_due_security |
156 | +#: model:res.groups,name:account_invoice_payment_term_date_due_security.group_sale_order_payment_term_security |
157 | +msgid "Sale Order Payment Term Security" |
158 | +msgstr "" |
159 | + |
160 | +#. module: account_invoice_payment_term_date_due_security |
161 | +#: model:res.groups,name:account_invoice_payment_term_date_due_security.group_purchase_order_payment_term_security |
162 | +msgid "Purchase Order Payment Term Security" |
163 | +msgstr "" |
164 | |
165 | === modified file 'account_invoice_payment_term_date_due_security/i18n/es.po' |
166 | --- account_invoice_payment_term_date_due_security/i18n/es.po 2014-06-11 14:33:23 +0000 |
167 | +++ account_invoice_payment_term_date_due_security/i18n/es.po 2014-06-12 17:51:37 +0000 |
168 | @@ -6,8 +6,8 @@ |
169 | msgstr "" |
170 | "Project-Id-Version: OpenERP Server 7.0\n" |
171 | "Report-Msgid-Bugs-To: \n" |
172 | -"POT-Creation-Date: 2014-06-11 01:22+0000\n" |
173 | -"PO-Revision-Date: 2014-06-11 01:22+0000\n" |
174 | +"POT-Creation-Date: 2014-06-12 17:07+0000\n" |
175 | +"PO-Revision-Date: 2014-06-12 17:07+0000\n" |
176 | "Last-Translator: <>\n" |
177 | "Language-Team: \n" |
178 | "MIME-Version: 1.0\n" |
179 | @@ -18,11 +18,7 @@ |
180 | #. module: account_invoice_payment_term_date_due_security |
181 | #: help:account.invoice,date_due_visible:0 |
182 | msgid "If you use payment terms, the due date will be computed automatically at the generation of accounting entries. The payment term may compute several due dates, for example 50% now and 50% in one month, but if you want to force a due date, make sure that the payment term is not set on the invoice. If you keep the payment term and the due date empty, it means direct payment." |
183 | -msgstr "Si utiliza los plazos de pago, la fecha de vencimiento será calculada " |
184 | -"automáticamente en la generación de los asientos contables. Si se mantiene " |
185 | -"el plazo de pago y la fecha de vencimiento vacía, significa que es un pago " |
186 | -"directo. El plazo de pago podrá calcular varias fechas de vencimiento, por " |
187 | -"ejemplo, 50% ahora, 50% en un mes." |
188 | +msgstr "Si utiliza los plazos de pago, la fecha de vencimiento será calculada automáticamente en la generación de los asientos contables. Si se mantiene el plazo de pago y la fecha de vencimiento vacía, significa que es un pago directo. El plazo de pago podrá calcular varias fechas de vencimiento, por ejemplo, 50% ahora, 50% en un mes." |
189 | |
190 | #. module: account_invoice_payment_term_date_due_security |
191 | #: field:account.invoice,date_due_visible:0 |
192 | @@ -37,6 +33,7 @@ |
193 | #. module: account_invoice_payment_term_date_due_security |
194 | #: field:account.invoice,payment_term_visible:0 |
195 | #: field:sale.order,payment_term_visible:0 |
196 | +#: field:purchase.order,payment_term_visible:0 |
197 | msgid "Payment Term" |
198 | msgstr "Plazo de pago" |
199 | |
200 | @@ -55,3 +52,12 @@ |
201 | msgid "Sales Order" |
202 | msgstr "Pedido de venta" |
203 | |
204 | +#. module: account_invoice_payment_term_date_due_security |
205 | +#: model:res.groups,name:account_invoice_payment_term_date_due_security.group_sale_order_payment_term_security |
206 | +msgid "Sale Order Payment Term Security" |
207 | +msgstr "Orden de Venta: Seguridad Plazo de Pago" |
208 | + |
209 | +#. module: account_invoice_payment_term_date_due_security |
210 | +#: model:res.groups,name:account_invoice_payment_term_date_due_security.group_purchase_order_payment_term_security |
211 | +msgid "Purchase Order Payment Term Security" |
212 | +msgstr "Orden de Compra: Seguridad Plazo de Pago" |
213 | |
214 | === added file 'account_invoice_payment_term_date_due_security/purchase_order_inherit.py' |
215 | --- account_invoice_payment_term_date_due_security/purchase_order_inherit.py 1970-01-01 00:00:00 +0000 |
216 | +++ account_invoice_payment_term_date_due_security/purchase_order_inherit.py 2014-06-12 17:51:37 +0000 |
217 | @@ -0,0 +1,58 @@ |
218 | +# -*- coding: utf-8 -*- |
219 | +############################################################################## |
220 | +# |
221 | +# OpenERP, Open Source Management Solution |
222 | +# Addons modules by CLEARCORP S.A. |
223 | +# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). |
224 | +# |
225 | +# This program is free software: you can redistribute it and/or modify |
226 | +# it under the terms of the GNU Affero General Public License as |
227 | +# published by the Free Software Foundation, either version 3 of the |
228 | +# License, or (at your option) any later version. |
229 | +# |
230 | +# This program is distributed in the hope that it will be useful, |
231 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
232 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
233 | +# GNU Affero General Public License for more details. |
234 | +# |
235 | +# You should have received a copy of the GNU Affero General Public License |
236 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
237 | +# |
238 | +############################################################################## |
239 | + |
240 | +from osv import orm, osv, fields |
241 | +from tools.translate import _ |
242 | + |
243 | +class purchaseOrderinherit(orm.Model): |
244 | + |
245 | + _inherit = 'purchase.order' |
246 | + |
247 | + def _get_payment_term(self, cr, uid, ids, fields, arg, context=None): |
248 | + res = {} |
249 | + for purchase in self.browse(cr, uid, ids, context=context): |
250 | + if purchase.payment_term_id: |
251 | + res[purchase.id] = purchase.payment_term_id.id |
252 | + return res |
253 | + |
254 | + _columns = { |
255 | + 'payment_term_visible': fields.function(_get_payment_term, type='many2one', relation='account.payment.term', |
256 | + store={'purchase.order': (lambda self, cr, uid, ids, c={}: ids, ['payment_term_id'], 10),}, string="Payment Term",), |
257 | + } |
258 | + |
259 | + def onchange_partner_id(self, cr, uid, ids, partner_id): |
260 | + res = super(purchaseOrderinherit, self).onchange_partner_id(cr, uid, ids, partner_id) |
261 | + |
262 | + if 'payment_term_id' in res['value'].keys(): |
263 | + res['value'].update({'payment_term_visible': res['value']['payment_term_id']}) |
264 | + |
265 | + return res |
266 | + |
267 | + def onchange_payment_term_visible(self, cr, uid, ids, payment_term_visible): |
268 | + res = {} |
269 | + res['value'] = {} |
270 | + |
271 | + if payment_term_visible: |
272 | + res['value'].update({'payment_term_id':payment_term_visible}) |
273 | + |
274 | + return res |
275 | + |
276 | \ No newline at end of file |
277 | |
278 | === added file 'account_invoice_payment_term_date_due_security/purchase_order_inherit.xml' |
279 | --- account_invoice_payment_term_date_due_security/purchase_order_inherit.xml 1970-01-01 00:00:00 +0000 |
280 | +++ account_invoice_payment_term_date_due_security/purchase_order_inherit.xml 2014-06-12 17:51:37 +0000 |
281 | @@ -0,0 +1,51 @@ |
282 | +<?xml version="1.0" encoding="utf-8"?> |
283 | +<openerp> |
284 | + <data> |
285 | + |
286 | + <record id="view_purchase_order_form_payment_term_inherit" model="ir.ui.view"> |
287 | + <field name="name">view.purchase.order.form.payment.term.inherit</field> |
288 | + <field name="model">purchase.order</field> |
289 | + <field name="type">form</field> |
290 | + <field name="inherit_id" ref="purchase.purchase_order_form"/> |
291 | + <field name="arch" type="xml"> |
292 | + <data> |
293 | + <field name = "payment_term_id" position="attributes"> |
294 | + <attribute name="attrs">{'invisible': True}</attribute> |
295 | + </field> |
296 | + <field name="payment_term_id" position="after"> |
297 | + <field name="payment_term_visible" on_change="onchange_payment_term_visible(payment_term_visible)"/> |
298 | + </field> |
299 | + </data> |
300 | + </field> |
301 | + </record> |
302 | + |
303 | + |
304 | + <record id="purchase_order_payment_term_no_group" model="ir.ui.view"> |
305 | + <field name="name">purchase.order.payment.term.no.group</field> |
306 | + <field name="model">purchase.order</field> |
307 | + <field name="type">form</field> |
308 | + <field name="priority" eval="10"/> |
309 | + <field name="inherit_id" ref="view_purchase_order_form_payment_term_inherit"/> |
310 | + <field name="arch" type="xml"> |
311 | + <field name="payment_term_visible" position="attributes"> |
312 | + <attribute name="readonly">1</attribute> |
313 | + </field> |
314 | + </field> |
315 | + </record> |
316 | + |
317 | + <record id="purchase_order_payment_term_group" model="ir.ui.view"> |
318 | + <field name="name">purchase.order.payment.term.group</field> |
319 | + <field name="model">purchase.order</field> |
320 | + <field name="type">form</field> |
321 | + <field name="priority" eval="20"/> |
322 | + <field name="groups_id" eval="[(4, ref('account_invoice_payment_term_date_due_security.group_purchase_order_payment_term_security'))]"/> |
323 | + <field name="inherit_id" ref="view_purchase_order_form_payment_term_inherit"/> |
324 | + <field name="arch" type="xml"> |
325 | + <field name="payment_term_visible" position="attributes"> |
326 | + <attribute name="readonly">0</attribute> |
327 | + </field> |
328 | + </field> |
329 | + </record> |
330 | + |
331 | + </data> |
332 | +</openerp> |
333 | |
334 | === modified file 'account_invoice_payment_term_date_due_security/sale_order_inherit.py' |
335 | --- account_invoice_payment_term_date_due_security/sale_order_inherit.py 2014-06-11 14:33:23 +0000 |
336 | +++ account_invoice_payment_term_date_due_security/sale_order_inherit.py 2014-06-12 17:51:37 +0000 |
337 | @@ -23,7 +23,7 @@ |
338 | from osv import orm, osv, fields |
339 | from tools.translate import _ |
340 | |
341 | -class accountInvoiceinherit(orm.Model): |
342 | +class saleOrderinherit(orm.Model): |
343 | |
344 | _inherit = 'sale.order' |
345 | |
346 | @@ -40,10 +40,19 @@ |
347 | } |
348 | |
349 | def onchange_partner_id(self, cr, uid, ids, part, context=None): |
350 | - res = super(accountInvoiceinherit, self).onchange_partner_id(cr, uid, ids, part, context) |
351 | + res = super(saleOrderinherit, self).onchange_partner_id(cr, uid, ids, part, context=context) |
352 | |
353 | if 'payment_term' in res['value'].keys(): |
354 | res['value'].update({'payment_term_visible': res['value']['payment_term']}) |
355 | |
356 | - return res |
357 | + return res |
358 | + |
359 | + def onchange_payment_term_visible(self, cr, uid, ids, payment_term_visible): |
360 | + res = {} |
361 | + res['value'] = {} |
362 | + |
363 | + if payment_term_visible: |
364 | + res['value'].update({'payment_term':payment_term_visible}) |
365 | + |
366 | + return res |
367 | |
368 | \ No newline at end of file |
369 | |
370 | === modified file 'account_invoice_payment_term_date_due_security/sale_order_inherit.xml' |
371 | --- account_invoice_payment_term_date_due_security/sale_order_inherit.xml 2014-06-11 14:33:23 +0000 |
372 | +++ account_invoice_payment_term_date_due_security/sale_order_inherit.xml 2014-06-12 17:51:37 +0000 |
373 | @@ -12,13 +12,14 @@ |
374 | <field name = "payment_term" position="attributes"> |
375 | <attribute name="attrs">{'invisible': True}</attribute> |
376 | </field> |
377 | - <xpath expr="/form/sheet/notebook/page[@string='Other Information']/group/group[@name='sale_pay']" position="inside" version="7.0"> |
378 | - <field name="payment_term_visible" widget="selection"/> |
379 | - </xpath> |
380 | + <field name="payment_term" position="after"> |
381 | + <field name="payment_term_visible" on_change="onchange_payment_term_visible(payment_term_visible)"/> |
382 | + </field> |
383 | </data> |
384 | </field> |
385 | </record> |
386 | - |
387 | + |
388 | + |
389 | <record id="sale_order_payment_term_no_group" model="ir.ui.view"> |
390 | <field name="name">sale.order.payment.term.no.group</field> |
391 | <field name="model">sale.order</field> |
392 | @@ -45,6 +46,6 @@ |
393 | </field> |
394 | </field> |
395 | </record> |
396 | - |
397 | + |
398 | </data> |
399 | </openerp> |
400 | |
401 | === modified file 'account_invoice_payment_term_date_due_security/security/account_invoice_payment_term_date_due_security.xml' |
402 | --- account_invoice_payment_term_date_due_security/security/account_invoice_payment_term_date_due_security.xml 2014-06-11 14:33:23 +0000 |
403 | +++ account_invoice_payment_term_date_due_security/security/account_invoice_payment_term_date_due_security.xml 2014-06-12 17:51:37 +0000 |
404 | @@ -1,17 +1,24 @@ |
405 | <?xml version="1.0" encoding="utf-8"?> |
406 | <openerp> |
407 | -<data> |
408 | - <record id="group_account_payment_term_date_due_security" model="res.groups"> |
409 | - <field name="name">Payment Term Date Due Security</field> |
410 | - <field name="category_id" ref="base.module_category_accounting_and_finance"/> |
411 | - <field name="users" eval="[(4, ref('base.user_root'))]"/> |
412 | - </record> |
413 | - |
414 | - <record id="group_sale_order_payment_term_security" model="res.groups"> |
415 | - <field name="name">Sale Order Payment Term Security</field> |
416 | - <field name="category_id" ref="base.module_category_sales_management"/> |
417 | - <field name="users" eval="[(4, ref('base.user_root'))]"/> |
418 | - </record> |
419 | - |
420 | -</data> |
421 | + <data> |
422 | + |
423 | + <record id="group_account_payment_term_date_due_security" model="res.groups"> |
424 | + <field name="name">Payment Term Date Due Security</field> |
425 | + <field name="category_id" ref="base.module_category_accounting_and_finance"/> |
426 | + <field name="users" eval="[(4, ref('base.user_root'))]"/> |
427 | + </record> |
428 | + |
429 | + <record id="group_sale_order_payment_term_security" model="res.groups"> |
430 | + <field name="name">Sale Order Payment Term Security</field> |
431 | + <field name="category_id" ref="base.module_category_sales_management"/> |
432 | + <field name="users" eval="[(4, ref('base.user_root'))]"/> |
433 | + </record> |
434 | + |
435 | + <record id="group_purchase_order_payment_term_security" model="res.groups"> |
436 | + <field name="name">Purchase Order Payment Term Security</field> |
437 | + <field name="category_id" ref="base.module_category_sales_management"/> |
438 | + <field name="users" eval="[(4, ref('base.user_root'))]"/> |
439 | + </record> |
440 | + |
441 | + </data> |
442 | </openerp> |
443 | \ No newline at end of file |