Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Community: Framework

by
Martin Trigaux (mat)
- 04/28/2016 07:16:41
I see that Omar can not understand the basics of the netiquette and 
refused to follow other people advises so I had to remove him from the 
mailing lists.

Sorry for the inconvenience.

Martin

On 28/04/16 13:10, Ermin Trevisan wrote:
> Please stop spamming the list! Don't you read the comments you have
> already got several times?
>
> On 27.04.2016 11:56, omar frikha wrote:
>> my object is to create a module to display all product variant so I
>> chose a product template
>> i try this code aims do not function
>> class.py
>>
>> product_mod class (models.Model)
>>     _name = "product.product.inherit"
>>     _inherit = "product.product"
>>       produit_templet = fields.Many2one ( "product.template")
>>     var = fields.One2many ( "product.product ',' name ')
>>     @ api.multi
>>     def produit_get_var (self):
>>         produit_obj self.env = [ 'product.product']
>>         self.pr
>>         produit_obj.search products = ([( 'product_templ_id', '=='
>> self.produit_templet.id )])
>>         i = 1
>>         for products produced in:
>>
>>             produit.write ({ 'id': [(0.0, { 'produit.id
>> ' :( i)})]})
>>             i + = 1
>>         return True
>>
>> view.xml
>>
>>
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>

-- 
Martin Trigaux
Odoo
https://odoo.com
https://github.com/mart-e