Strart work search family

This commit is contained in:
michel 2018-01-11 10:03:55 +01:00
parent 485a45f217
commit 6eb8b69ad9
2 changed files with 15 additions and 1 deletions

View File

@ -40,5 +40,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field> </field>
</record> </record>
<!-- searches -->
<record model="ir.ui.view" id="golem_family_search_inherit_golem_membership">
<field name="name">GOLEM family search adaptations</field>
<field name="model">golem.member</field>
<field name="inherit_id" ref="golem_member.golem_member_search" />
<field name="arch" type="xml">
<filter name="group_city" position="after">
<separator />
<filter name="family_id" string="Family"
domain="[('family_id', 'ilike', self)]" />
</filter>
</field>
</record>
</data> </data>
</odoo> </odoo>

View File

@ -30,7 +30,7 @@ class GolemSeason(models.Model):
name = fields.Char('Season name', copy=False) name = fields.Char('Season name', copy=False)
membership_id = fields.Many2one('product.template', 'Membership type', membership_id = fields.Many2one('product.template', 'Membership type',
domain="[('membership', '=', True)]" ) domain="[('membership', '=', True)]")
member_counter = fields.Integer('Counter for member number generation', member_counter = fields.Integer('Counter for member number generation',